-
-
Notifications
You must be signed in to change notification settings - Fork 365
/
eslint.dogfooding.config.mjs
53 lines (50 loc) · 1.12 KB
/
eslint.dogfooding.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Run all unicorn rules on codebase */
/*
! If you're making a new rule, you can ignore this before review.
*/
import eslintPluginUnicorn from './index.js';
const config = [
eslintPluginUnicorn.configs['flat/all'],
{
linterOptions: {
reportUnusedDisableDirectives: false,
},
// Fake rule to allow inline config to disable
plugins: {
n: {
rules: {'no-unsupported-features/es-syntax': {}},
},
},
},
{
ignores: [
'coverage',
'test/integration/fixtures',
'test/integration/fixtures-local',
'rules/utils/lodash.js',
],
},
{
rules: {
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1109#issuecomment-782689255
'unicorn/consistent-destructuring': 'off',
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2341
'unicorn/escape-case': 'off',
'unicorn/no-hex-escape': 'off',
// Buggy
'unicorn/custom-error-definition': 'off',
'unicorn/consistent-function-scoping': 'off',
// Annoying
'unicorn/no-keyword-prefix': 'off',
},
},
{
files: [
'**/*.js',
],
rules: {
'unicorn/prefer-module': 'off',
},
},
];
export default config;