File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,30 @@ npm install -D eslint-plugin-proper-tests
14
14
15
15
## Usage
16
16
17
- Add ` proper-tests ` to the plugins section of your ` .eslintrc ` configuration file. You
18
- can omit the ` eslint-plugin- ` prefix:
17
+ Use the ` recommended ` shared config in your ` .eslintrc ` configuration file:
19
18
20
19
``` js
21
20
module .exports = {
22
- " plugins " : [" proper-tests" ]
21
+ " extends " : [" plugin: proper-tests/recommended " ]
23
22
}
24
23
```
25
24
26
- And then use the ` recommended ` shared configuration:
25
+ and you are good to go. Run ESLint and enjoy the results.
26
+
27
+ Or, alternatively, add ` proper-tests ` to the plugins section of your ` .eslintrc ` configuration file:
27
28
28
29
``` js
29
30
module .exports = {
30
- " extends" : [" plugin:proper-tests/recommended" ]
31
+ " plugins" : [" proper-tests" ],
32
+ // ...
31
33
}
32
34
```
33
35
34
- Or configure the rules one by one (not recommended) :
36
+ and configure the rules one by one:
35
37
36
38
``` js
37
39
module .exports = {
40
+ " plugins" : [" proper-tests" ],
38
41
" rules" : {
39
42
" proper-tests/no-useless-matcher-to-be-defined" : " error"
40
43
}
You can’t perform that action at this time.
0 commit comments