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
Write in your ESLint configurations: http://eslint.org/docs/user-guide/configuring#using-the-configuration-from-a-plugin
25
25
26
26
### Example
27
27
28
28
**.eslintrc.json**
29
29
30
+
```json
31
+
{
32
+
"extends": [
33
+
"eslint:recommended",
34
+
"plugin:eslint-comments/recommended"
35
+
],
36
+
}
37
+
```
38
+
39
+
Or you can specify for each rule:
40
+
30
41
```json
31
42
{
32
43
"plugins": [
33
44
"eslint-comments"
34
45
],
35
46
"rules": {
36
-
"eslint-comments/disable-enable-pair": "error",
37
-
"eslint-comments/no-duplicate-disable": "error",
38
-
"eslint-comments/no-unlimited-disable": "error",
39
47
"eslint-comments/no-unused-disable": "error",
40
48
"eslint-comments/no-unused-enable": "error",
41
-
"eslint-comments/no-use": "error",
49
+
// ...
42
50
}
43
51
}
44
52
```
45
53
46
-
### Rules
54
+
## Rules
55
+
56
+
- 🌟 mark: the rule is enabled by `eslint-comments/recommended` preset.
57
+
- ✒️ mark: the rule is fixable by `eslint --fix` command.
58
+
59
+
<!--RULES_TABLE_START-->
60
+
### Best Practices
61
+
62
+
|| Rule ID | Description |
63
+
|:---|:--------|:------------|
64
+
| 🌟 |[eslint-comments/disable-enable-pair](./docs/rules/eslint-comments/disable-enable-pair.md)| requires a `eslint-enable` comment for every `eslint-disable` comment |
||[eslint-comments/no-restricted-disable](./docs/rules/eslint-comments/no-restricted-disable.md)| disallows `eslint-disable` comments about specific rules |
0 commit comments