You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You"ll first need to install [ESLint](http://eslint.org):
8
+
9
+
```
10
+
$ npm i eslint --save-dev
11
+
```
12
+
13
+
Next, install `eslint-plugin-verdaccio`:
14
+
15
+
```
16
+
$ npm install eslint-plugin-verdaccio --save-dev
17
+
```
18
+
19
+
**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-verdaccio` globally.
20
+
21
+
## Usage
22
+
23
+
Add `verdaccio` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
24
+
25
+
```json
26
+
{
27
+
"plugins": [
28
+
"verdaccio"
29
+
]
30
+
}
31
+
```
32
+
33
+
34
+
Then configure the rules you want to use under the rules section.
35
+
36
+
```json
37
+
{
38
+
"rules": {
39
+
"verdaccio/jsx-spread": "error",
40
+
"verdaccio/jsx-no-style": "error",
41
+
"verdaccio/jsx-no-classname-object": "error"
42
+
}
43
+
}
44
+
```
45
+
46
+
## Supported Rules
47
+
48
+
*[verdaccio/jsx-spread](docs/rules/jsx-spread.md): Enforce don"t use of spread operators with JSX components.
49
+
*[verdaccio/jsx-no-style](docs/rules/jsx-no-style.md): Enforce don"t use of style attribute with JSX components.
50
+
*[verdaccio/jsx-no-classname-object](docs/rules/jsx-no-classname-object.md): Enforce don"t use of nested objects on className attribute with JSX components.
0 commit comments