We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b58b35a commit 2e86892Copy full SHA for 2e86892
README.md
@@ -85,6 +85,23 @@ Presets are enabled by adding a line to the `extends` list in your config file.
85
}
86
```
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
105
* `recommended` enables all recommended rules from this plugin.
106
* `rules-recommended` enables all recommended rules that are aimed at linting ESLint rule files.
107
* `tests-recommended` enables all recommended rules that are aimed at linting ESLint test files.
0 commit comments