@@ -42,6 +42,27 @@ module.exports = [
4242 }
4343 } ,
4444
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+
4566 {
4667 files : [ '**/*.js' ] ,
4768 languageOptions : {
@@ -143,7 +164,6 @@ module.exports = [
143164 'error' ,
144165 { pattern : '^(enforce|require|disallow).*[^.]$' }
145166 ] ,
146- 'eslint-plugin/require-meta-docs-recommended' : 'off' , // use `categories` instead
147167 'eslint-plugin/require-meta-fixable' : [
148168 'error' ,
149169 { catchNoFixerButFixableProperty : true }
@@ -184,17 +204,6 @@ module.exports = [
184204 'error' ,
185205 { checkArrowFunctions : false }
186206 ] ,
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)
198207
199208 'internal/require-eslint-community' : [ 'error' ]
200209 }
0 commit comments