-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy patheslint.config.js
More file actions
83 lines (82 loc) · 2.99 KB
/
eslint.config.js
File metadata and controls
83 lines (82 loc) · 2.99 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import globals from 'globals';
import { configs } from 'eslint-config-airbnb-extended/legacy';
export default [
...configs.base.recommended,
{
ignores: ['build/*', 'node_modules/*'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
},
},
rules: {
'array-bracket-spacing': ['off'],
'arrow-parens': ['off'],
'brace-style': ['off'],
'camelcase': ['off'],
'class-methods-use-this': ['off'],
'comma-dangle': ['error', {
'arrays': 'only-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'ignore',
}],
'curly': ['error', 'all'],
'dot-location': ['error', 'property'],
'dot-notation': ['error'],
'indent': ['error', 4],
'import/extensions': ['off'],
'import/prefer-default-export': ['off'],
'import/no-named-as-default': ['off'],
'import/no-named-as-default-member': ['off'],
'import/no-unresolved': ['off'],
'import/no-extraneous-dependencies': ['off'],
'max-len': ['off'],
'new-cap': ['off'],
'no-case-declarations': ['error'],
'no-console': ['off'],
'no-continue': ['off'],
'no-confusing-arrow': ['off'],
'no-else-return': ['off'],
'no-lonely-if': ['off'],
'no-mixed-operators': ['off'],
'no-multi-spaces': ['off'],
'no-multiple-empty-lines': ['error', { 'max': 3 }],
'no-param-reassign': ['off'],
'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
'no-restricted-syntax': [
2,
'DebuggerStatement',
'LabeledStatement',
'WithStatement'
],
'no-shadow': ['off'],
'no-trailing-spaces': ['off'],
'no-use-before-define': ['off'],
'no-underscore-dangle': ['off'],
'no-unused-vars': [
'error',
{
args: 'none',
caughtErrors: 'none',
varsIgnorePattern: '^i$|^j$|^unused|^junk|^counter|^_',
}
],
'object-curly-spacing': ['off'],
'object-property-newline': ['off'],
'operator-linebreak': ['error', 'before'],
'padded-blocks': ['off'],
'prefer-destructuring': ['off'],
'prefer-template': ['off'],
'quote-props': ['off'],
'radix': ['off'],
'space-infix-ops': ['off'],
'spaced-comment': ['off'],
'strict': ['error', 'global'],
'yoda': ['error', 'never', { 'exceptRange': true }],
},
},
];