-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
84 lines (84 loc) · 2.63 KB
/
.eslintrc.cjs
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
84
module.exports = {
'env': {
'browser': true,
'es2021': true,
'node': true
},
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module'
},
'ignorePatterns': ['.eslintrc.cjs'],
'extends': [
'eslint:recommended',
],
'plugins': [
'import',
'prefer-arrow'
],
'rules': {
indent: 'off',
'quotes': ['warn', 'single'],
'semi': ['warn', 'always'],
'semi-spacing': ['warn', {'before': false, 'after': true}],
'comma-spacing': ['warn', {'before': false, 'after': true}],
'space-infix-ops': 2,
'space-in-parens': [1, 'never'],
'spaced-comment': ['error', 'always'],
'array-bracket-spacing': ['warn', 'never'],
'object-curly-spacing': ['warn', 'always'],
'block-spacing': 'warn',
'arrow-spacing': 'warn',
'space-before-function-paren': ['warn', 'never'],
'keyword-spacing': ['warn', {'before': true}],
'linebreak-style': ['error', 'unix'],
'brace-style': ['error', 'allman'],
'prefer-const': ['warn'],
'max-len': [
'error',
{
'ignoreStrings': true,
'ignoreRegExpLiterals': true,
'code': 200
}
],
'no-shadow-restricted-names': 'error',
'no-sequences': 'error',
'no-new-wrappers': 'error',
'no-multiple-empty-lines': 'warn',
'no-eval': 'error',
'no-fallthrough': 'warn',
'no-invalid-this': 'off',
'no-cond-assign': 'error',
'no-duplicate-case': 'error',
'no-empty': 'off',
'no-caller': 'error',
'new-parens': 'error',
'max-lines': ['warn', 600],
'no-trailing-spaces': ['warn', {'ignoreComments': false, 'skipBlankLines': false}],
'no-unused-vars': 'off',
'no-prototype-builtins': 'warn',
'comma-dangle': ['error', {
'arrays': 'never',
'objects': 'never',
'imports': 'never',
'exports': 'never',
'functions': 'never'
}],
'prefer-template': 'error',
'no-throw-literal': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'off',
'no-unsafe-finally': 'error',
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
'object-shorthand': 'warn',
'one-var': ['warn', 'never'],
'prefer-object-spread': 'error',
'quote-props': ['error', 'consistent-as-needed'],
'radix': 'error',
'curly': 'warn',
'use-isnan': 'error',
'no-mixed-spaces-and-tabs': 0
}
};