eslint-plugin-verdaccio
v10.0.0
Published
Verdaccio code guidelines
Downloads
863
Readme
eslint-plugin-verdaccio
verdaccio code guidelines
Installation
You"ll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-verdaccio
:
$ npm install eslint-plugin-verdaccio --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-verdaccio
globally.
Usage
Add verdaccio
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"verdaccio"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"verdaccio/jsx-spread": "error",
"verdaccio/jsx-no-style": "error",
"verdaccio/jsx-no-classname-object": "error"
}
}
Supported Rules
- verdaccio/jsx-spread: Enforce don"t use of spread operators with JSX components.
- verdaccio/jsx-no-style: Enforce don"t use of style attribute with JSX components.
- verdaccio/jsx-no-classname-object: Enforce don"t use of nested objects on className attribute with JSX components.