@@ -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,12 +164,10 @@ 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 }
150170 ] ,
151- 'eslint-plugin/require-meta-schema-description' : 'off' ,
152171 'eslint-plugin/report-message-format' : [ 'error' , "^[A-Z`'{].*\\.$" ] ,
153172
154173 'no-debugger' : 'error' ,
@@ -185,18 +204,6 @@ module.exports = [
185204 'error' ,
186205 { checkArrowFunctions : false }
187206 ] ,
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' ,
200207
201208 'internal/require-eslint-community' : [ 'error' ]
202209 }
0 commit comments