@@ -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,12 +164,10 @@ 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 }
150
170
] ,
151
- 'eslint-plugin/require-meta-schema-description' : 'off' ,
152
171
'eslint-plugin/report-message-format' : [ 'error' , "^[A-Z`'{].*\\.$" ] ,
153
172
154
173
'no-debugger' : 'error' ,
@@ -185,18 +204,6 @@ module.exports = [
185
204
'error' ,
186
205
{ checkArrowFunctions : false }
187
206
] ,
188
- 'unicorn/filename-case' : 'off' ,
189
- 'unicorn/no-null' : 'off' ,
190
- 'unicorn/no-array-callback-reference' : 'off' , // doesn't work well with TypeScript's custom type guards
191
- 'unicorn/no-useless-undefined' : 'off' ,
192
- 'unicorn/prefer-global-this' : 'off' ,
193
- 'unicorn/prefer-module' : 'off' ,
194
- 'unicorn/prefer-optional-catch-binding' : 'off' , // not supported by current ESLint parser version
195
- 'unicorn/prefer-at' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
196
- 'unicorn/prefer-node-protocol' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
197
- 'unicorn/prefer-string-replace-all' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
198
- 'unicorn/prefer-top-level-await' : 'off' , // turn off to prevent make breaking changes (ref: #2146)
199
- 'unicorn/prevent-abbreviations' : 'off' ,
200
207
201
208
'internal/require-eslint-community' : [ 'error' ]
202
209
}
0 commit comments