File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,23 @@ Presets are enabled by adding a line to the `extends` list in your config file.
85
85
}
86
86
```
87
87
88
+ Or to apply linting only to the appropriate rule or test files:
89
+
90
+ ``` json
91
+ {
92
+ "overrides" : [
93
+ {
94
+ "files" : [" lib/rules/*.{js,ts}" ],
95
+ "extends" : [" plugin:eslint-plugin/rules-recommended" ]
96
+ },
97
+ {
98
+ "files" : [" tests/lib/rules/*.{js,ts}" ],
99
+ "extends" : [" plugin:eslint-plugin/tests-recommended" ]
100
+ },
101
+ ]
102
+ }
103
+ ```
104
+
88
105
* ` recommended ` enables all recommended rules from this plugin.
89
106
* ` rules-recommended ` enables all recommended rules that are aimed at linting ESLint rule files.
90
107
* ` tests-recommended ` enables all recommended rules that are aimed at linting ESLint test files.
You can’t perform that action at this time.
0 commit comments