eslint-plugin-no-literal-classnames
v1.2.0
Published
Disallows the usage of string literals as classnames for React components
Downloads
1
Maintainers
Readme
eslint-plugin-no-literal-classnames
Disallows the use of string literals as classnames for React components.
Installation
Yarn
yarn add -D eslint-plugin-no-literal-classnames
Usage
Add no-literal-classnames
to your list of plugins and extend the
recommended configuration.
{
"extends": "plugin:no-literal-classnames/recommended",
"plugins": ["no-literal-classnames"]
}
Rules
Available rules: https://github.com/zignis/eslint-plugin-no-literal-classnames/blob/main/docs/rules/no-literal-classnames.md