@ctlyst-test/eslint-plugin-test-id

1.0.1 • Public • Published

ctlyst-eslint-config

ESLint config data-test-id used at ctlyst.id

This is the common ESLint config data-test-id config used by projects at ctlyst.id.

Installation

Install eslint and @ctlyst.id/eslint-config-test-id using your favourite package manager:

# yarn
yarn add --dev eslint @ctlyst.id/eslint-config-test-id
# npm
npm install --save-dev eslint @ctlyst.id/eslint-config-test-id

Then, in your .eslintrc file, extend @ctlyst.id/eslint-config-test-id.

{
  "extends": ["@ctlyst.id/eslint-config-test-id"],
  "rules": {
    "@ctlyst.id/eslint-config-test-id-test-id/pages_container-data-test-id": [
      "error",
      {
        "testIdPattern": "^CT_([a-zA-Z0-9\\[\\]\\/]*)_{fileName}_([a-zA-Z0-9\\[\\]\\/]*)?$",
        "dataTestId": "data-test-id"
      }
    ]
  }
}

For more setups, take a look at the templates directory

Versioning

Note that this package does not specifically follow Semantic Versioning, since all changes in this package are relative to the changes in our Development Standard. Major version bumps will occur when we transition into a new major version of ESLint.

To recap:

  • major: Will be bumped when we transition to a new major version of ESLint
  • minor: Potentially breaking changes that's still within the same major version of ESLint
  • patch: Minor patches/bugfixes

Contributing

Issues and Pull Requests welcome! Please read the Contributing Guidelines beforehand.

License

MIT (c) ctlyst.id

Maintainers

  • Fahmi Idris – ctlyst.id

Readme

Keywords

none

Package Sidebar

Install

npm i @ctlyst-test/eslint-plugin-test-id

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.08 kB

Total Files

5

Last publish

Collaborators

  • fahmi-idris