File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,22 @@ npm install eslint-plugin-eslint-plugin --save-dev
32
32
33
33
## <a name =' Usage ' ></a >Usage
34
34
35
- Add ` eslint-plugin ` to the plugins section of your ` .eslintrc ` configuration file. You can omit the ` eslint-plugin- ` prefix :
35
+ Here's an example ESLint configuration that :
36
36
37
- ``` json
38
- {
39
- "plugins" : [
40
- " eslint-plugin"
41
- ]
42
- }
43
- ```
44
-
45
- Then configure the rules you want to use under the rules section.
37
+ * Sets ` sourceType ` to ` script ` for CJS plugins (most users) (use ` module ` for ESM/TypeScript)
38
+ * Enables the ` recommended ` configuration
39
+ * Enables an optional/non-recommended rule
46
40
47
41
``` json
48
42
{
43
+ "parserOptions" : {
44
+ "sourceType" : " script"
45
+ },
46
+ "extends" : [
47
+ " plugin:eslint-plugin/recommended"
48
+ ],
49
49
"rules" : {
50
- "eslint-plugin/no-deprecated-report-api " : " error"
50
+ "eslint-plugin/require-meta-docs-description " : " error"
51
51
}
52
52
}
53
53
```
You can’t perform that action at this time.
0 commit comments