@ctlyst-test/eslint-plugin-test-id
v1.0.1
Published
ESLint config data-test-id used at ctlyst.id
Downloads
2
Readme
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 ESLintminor
: Potentially breaking changes that's still within the same major version of ESLintpatch
: 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