@@ -42,6 +42,27 @@ module.exports = [
42
42
}
43
43
} ,
44
44
45
+ // turn off some rules from shared configs in all files
46
+ {
47
+ rules : {
48
+ 'eslint-plugin/require-meta-docs-recommended' : 'off' , // use `categories` instead
49
+ 'eslint-plugin/require-meta-schema-description' : 'off' ,
50
+
51
+ 'unicorn/filename-case' : 'off' ,
52
+ 'unicorn/no-null' : 'off' ,
53
+ 'unicorn/no-array-callback-reference' : 'off' , // doesn't work well with TypeScript's custom type guards
54
+ 'unicorn/no-useless-undefined' : 'off' ,
55
+ 'unicorn/prefer-global-this' : 'off' ,
56
+ 'unicorn/prefer-module' : 'off' ,
57
+ 'unicorn/prefer-optional-catch-binding' : 'off' , // not supported by current ESLint parser version
58
+ 'unicorn/prefer-at' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
59
+ 'unicorn/prefer-node-protocol' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
60
+ 'unicorn/prefer-string-replace-all' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
61
+ 'unicorn/prefer-top-level-await' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
62
+ 'unicorn/prevent-abbreviations' : 'off'
63
+ }
64
+ } ,
65
+
45
66
{
46
67
files : [ '**/*.js' ] ,
47
68
languageOptions : {
@@ -143,7 +164,6 @@ module.exports = [
143
164
'error' ,
144
165
{ pattern : '^(enforce|require|disallow).*[^.]$' }
145
166
] ,
146
- 'eslint-plugin/require-meta-docs-recommended' : 'off' , // use `categories` instead
147
167
'eslint-plugin/require-meta-fixable' : [
148
168
'error' ,
149
169
{ catchNoFixerButFixableProperty : true }
@@ -184,17 +204,6 @@ module.exports = [
184
204
'error' ,
185
205
{ checkArrowFunctions : false }
186
206
] ,
187
- 'unicorn/filename-case' : 'off' ,
188
- 'unicorn/no-null' : 'off' ,
189
- 'unicorn/no-array-callback-reference' : 'off' , // doesn't work well with TypeScript's custom type guards
190
- 'unicorn/no-useless-undefined' : 'off' ,
191
- 'unicorn/prefer-optional-catch-binding' : 'off' , // not supported by current ESLint parser version
192
- 'unicorn/prefer-module' : 'off' ,
193
- 'unicorn/prevent-abbreviations' : 'off' ,
194
- 'unicorn/prefer-at' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
195
- 'unicorn/prefer-node-protocol' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
196
- 'unicorn/prefer-string-replace-all' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
197
- 'unicorn/prefer-top-level-await' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
198
207
199
208
'internal/require-eslint-community' : [ 'error' ]
200
209
}
0 commit comments