-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 1.64 KB
/
.eslintrc.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
module.exports = {
'env': {
'browser': true,
'es2021': true,
},
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 12,
'sourceType': 'module',
},
'settings': {
'import/resolver': {
'node': {
'extensions': ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
'plugins': ['@typescript-eslint'],
'rules': {
'arrow-parens': ['error', 'always'],
'brace-style': ['error', '1tbs'],
'complexity': 'off',
'constructor-super': 'error',
'dot-notation': 'off',
'eol-last': 'error',
'guard-for-in': 'off',
'lines-between-class-members': [
'error',
'always',
{ 'exceptAfterSingleLine': true },
],
'max-classes-per-file': 'off',
'max-statements-per-line': 'error',
'member-ordering': 'off',
'new-parens': 'error',
'no-console': 'warn',
'no-bitwise': 'error',
'no-caller': 'error',
'no-cond-assign': 'error',
'no-empty': 'error',
'no-empty-function': 'off',
'no-eval': 'error',
'no-fallthrough': 'off',
'no-invalid-this': 'off',
'no-multiple-empty-lines': 'error',
'no-new-wrappers': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-unsafe-finally': 'error',
'no-unused-labels': 'error',
'object-shorthand': 'off',
'one-var': 'off',
'prefer-const': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'radix': 'error',
'space-before-function-paren': [
'error',
{ 'anonymous': 'always', 'named': 'ignore', 'asyncArrow': 'always' },
],
'use-isnan': 'error',
'valid-typeof': 'off',
},
};