File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 13
13
},
14
14
15
15
"plugins": [
16
+ "eslint-comments",
16
17
"flowtype",
17
18
"prettier",
18
19
"react",
58
59
},
59
60
60
61
"rules": {
61
- // Flow Plugin
62
- // The following rules are made available via `eslint-plugin-flowtype`
63
- "flowtype/define-flow-type": 1,
64
- "flowtype/use-flow-type": 1,
65
-
66
62
// General
67
63
68
64
// This must be disallowed in this repo because the minimum supported
175
171
"no-restricted-modules": 1, // restrict usage of specified node modules (off by default)
176
172
"no-sync": 0, // disallow use of synchronous methods (off by default)
177
173
174
+ // ESLint Comments Plugin
175
+ // The following rules are made available via `eslint-plugin-eslint-comments`
176
+ 'eslint-comments/no-aggregating-enable': 1, // disallows eslint-enable comments for multiple eslint-disable comments
177
+ 'eslint-comments/no-unlimited-disable': 1, // disallows eslint-disable comments without rule names
178
+ 'eslint-comments/no-unused-disable': 1, // disallow disables that don't cover any errors
179
+ 'eslint-comments/no-unused-enable': 1, // // disallow enables that don't enable anything or enable rules that weren't disabled
180
+
181
+ // Flow Plugin
182
+ // The following rules are made available via `eslint-plugin-flowtype`
183
+ "flowtype/define-flow-type": 1,
184
+ "flowtype/use-flow-type": 1,
185
+
178
186
// Prettier Plugin
179
187
// https://github.com/prettier/eslint-plugin-prettier
180
188
"prettier/prettier": [2, "fb", "@format"],
Original file line number Diff line number Diff line change 204
204
"eslint" : " ^3.19.0" ,
205
205
"eslint-config-fb-strict" : " ^20.0.3" ,
206
206
"eslint-config-fbjs" : " ^1.1.1" ,
207
+ "eslint-plugin-eslint-comments" : " ^2.0.1" ,
207
208
"eslint-plugin-flowtype" : " ^2.33.0" ,
208
209
"eslint-plugin-jest" : " ^21.5.0" ,
209
210
"eslint-plugin-prettier" : " 2.1.1" ,
You can’t perform that action at this time.
0 commit comments