ESLint rules to enforce consistent code.
npm install @remidy/eslint-plugin --save-dev
Add "@remidy" to the plugins section of your configuration file.
{
plugins: [
"@remidy"
]
}
Enable the rules that you would like to use.
Name | Description |
---|---|
jsx-no-duplicate-class-names | Disallow duplicate class names in JSX |
jsx-sort-class-names | Enforce class names alphabetical sorting |