Maintainer: Serhii Petkun
This plugin includes:
- ESLint configurations, which help following coding conventions.
- A plugin to enforce
qa-...
classes on required HTML elements.
This rule requires qa-* CSS classes to be provided class on specific HTML elements and to follow naming conventions.
This rule is not enabled by default. To use it you need to enable it manually, just update your ESLint configuration accordingly to the following example.
"rules": {
"@motoinsight/motoinsight/require-qa-class": [
"error",
{
"elements": ["button", "input", "select", "textarea"],
}
]
}
Name | Type | Default | Description |
---|---|---|---|
elements | string[] |
["button", "input", "select", "textarea"] |
Sets the list of elements to check. |
Versions are published as git tags. Use following commands to publish a new version:
git checkout develop
git fetch
git reset --hard origin/develop
yarn version --new-version major
git push --follow-tags