-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
118 lines (116 loc) · 4.26 KB
/
eslint.config.js
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// ESLint Flat Configuration File
// https://eslint.org/docs/latest/use/configure
import js from '@eslint/js';
export default [
js.configs.all,
{
rules: {
'array-bracket-newline': 'off',
'array-element-newline': 'off',
'arrow-body-style': 'off',
'arrow-parens': 'off',
'arrow-spacing': 'off',
'brace-style': 'off',
'camelcase': 'off',
'capitalized-comments': 'off',
'class-methods-use-this': 'off',
'comma-spacing': 'off',
'complexity': 'off',
'consistent-return': 'off',
'consistent-this': 'off',
'curly': 'off',
'default-case': 'off',
'dot-location': 'off',
'func-names': 'off',
'func-style': 'off',
'function-call-argument-newline': 'off',
'function-paren-newline': 'off',
'guard-for-in': 'off',
'id-length': 'off',
'import/no-anonymous-default-export': 'off',
'indent': 'off',
'init-declarations': 'off',
'line-comment-position': 'off',
'linebreak-style': ['error', 'windows'],
'lines-around-comment': 'off',
'lines-between-class-members': 'off',
'max-classes-per-file': 'off',
'max-depth': 'off',
'max-len': 'off',
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': 'off',
'multiline-comment-style': 'off',
'multiline-ternary': 'off',
'newline-per-chained-call': 'off',
'new-cap': 'off',
'no-async-promise-executor': 'off',
'no-await-in-loop': 'off',
'no-bitwise': 'off',
'no-case-declarations': 'off',
'no-cond-assign': 'off',
'no-console': 'off',
'no-constant-condition': 'off',
'no-continue': 'off',
'no-control-regex': 'off',
'no-eval': 'off',
'no-extra-parens': 'off',
'no-implicit-coercion': 'off',
'no-inline-comments': 'off',
'no-invalid-this': 'off',
'no-lonely-if': 'off',
'no-magic-numbers': 'off',
'no-misleading-character-class': 'off',
'no-mixed-operators': 'off',
'no-multi-spaces': 'off',
'no-multiple-empty-lines': 'off',
'no-negated-condition': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-promise-executor-return': 'off',
'no-prototype-builtins': 'off',
'no-return-assign': 'off',
'no-return-await': 'off',
'no-sequences': 'off',
'no-shadow': 'off',
'no-ternary': 'off',
'no-throw-literal': 'off',
'no-undefined': 'off',
'no-underscore-dangle': 'off',
'no-unused-expressions': 'off',
'no-unused-vars': ['warn', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_'
}],
'no-use-before-define': 'off',
'no-useless-call': 'off',
'no-useless-constructor': 'off',
'no-warning-comments': 'off',
'nonblock-statement-body-position': 'off',
'object-curly-spacing': 'off',
'object-property-newline': 'off',
'one-var': 'off',
'one-var-declaration-per-line': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'prefer-destructuring': 'off',
'prefer-named-capture-group': 'off',
'prefer-template': 'off',
'quote-props': 'off',
'quotes': ['error', 'single'],
'radix': 'off',
'require-await': 'off',
'semi': ['error', 'always'],
'sort-imports': 'off',
'sort-keys': 'off',
'space-before-function-paren': 'off',
'space-infix-ops': 'off',
'space-unary-ops': 'off',
'spaced-comment': 'off',
'yield-star-spacing': 'off'
}
}
];