Eslint rules for @adeira/sx
You'll first need to install ESLint:
yarn add --dev eslint
Next, install eslint-plugin-sx
:
yarn add --dev eslint-plugin-sx
Add sx
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["sx"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sx/no-concatenated-classes": 2,
"sx/no-unused-stylesheet": 2,
"sx/use-logical-properties": 2,
"sx/valid-usage": 2
}
}