This repository has been moved to a monorepo you can find in verdaccio/monorepo. This package is located in tools/eslint-plugin-verdaccio
folder
verdaccio code guide lines
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.
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"
}
}
- 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.