-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
96 lines (96 loc) · 3.25 KB
/
.eslintrc.json
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
{
"parserOptions": {
"ecmaVersion": 2020
},
"extends": "airbnb-base",
"env": {
"browser": true,
"es6": true
},
"globals": {
"globalThis": false
},
"rules": {
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-cycle": "off",
"import/newline-after-import": "off",
"max-classes-per-file": "off",
"constructor-super": "error",
"class-methods-use-this": "off",
"no-this-before-super": "warn",
"no-use-before-define": "off",
"no-param-reassign": "off",
"no-multi-assign": "off",
"no-new": "off",
"no-restricted-syntax": "off",
"no-inner-declarations": "off",
"no-nested-ternary": "off",
"no-loop-func": "off",
"no-lonely-if": "warn",
"no-continue": "off",
"prefer-destructuring": "off",
"prefer-const": "warn",
"prefer-spread": "warn",
"no-return-assign": "off",
"no-tabs": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-prototype-builtins": "warn",
"no-debugger": "warn",
"no-await-in-loop": "warn",
"no-console": "off",
"no-confusing-arrow": "off",
"no-cond-assign": ["error", "except-parens"],
"no-fallthrough": ["error", { "commentPattern": "fall through" }],
"indent": "off",
"space-before-blocks": ["warn"],
"padded-blocks": "off",
"nonblock-statement-body-position": "warn",
"no-mixed-spaces-and-tabs": "off",
"max-len": "off",
"spaced-comment": "off",
"no-var": "warn",
"vars-on-top": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"keyword-spacing": "warn",
"arrow-spacing": "off",
"arrow-parens": ["warn", "as-needed"],
"arrow-body-style": "off",
"block-spacing": "off",
"object-curly-spacing": "off",
"computed-property-spacing": "off",
"object-property-newline": "off",
"object-curly-newline": "off",
"brace-style": "off",
"array-bracket-spacing": "off",
"wrap-iife": "off",
"function-paren-newline": "off",
"curly": "off",
"no-mixed-operators": "off",
"func-names": "off",
"prefer-arrow-callback": "warn",
"space-infix-ops": "off",
"space-before-function-paren": ["warn", {"anonymous": "ignore", "named": "never", "asyncArrow": "always"}],
"space-in-parens": "off",
"no-multi-spaces": "off",
"no-multiple-empty-lines": ["warn", { "max": 2 }],
"key-spacing": "off",
"comma-spacing": "off",
"comma-dangle": "off",
"quotes": "off",
"quote-props": "off",
"prefer-template": "off",
"no-plusplus": "off",
"no-floating-decimal": "off",
"no-bitwise": "off",
"camelcase": "off",
"guard-for-in": "off",
"dot-notation": "off",
"no-underscore-dangle": "off",
"lines-between-class-members": "off",
"operator-linebreak": "off",
"linebreak-style": "off",
"semi": ["error", "always", { "omitLastInOneLineBlock": true }]
}
}