-
Notifications
You must be signed in to change notification settings - Fork 160
/
.eslintrc.json
111 lines (105 loc) · 3.1 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"extends": [
"plugin:import/recommended",
"airbnb-base",
"prettier"
],
"plugins": ["import"],
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"amd" : true,
"jasmine": true,
"browser": true
},
"globals": {
"inject": true,
"module": true,
"requirejs": true
},
"rules": {
"indent": ["error", 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"SwitchCase": 1,
"flatTernaryExpressions": true,
"MemberExpression": "off",
"FunctionDeclaration": {"parameters": "first"},
"FunctionExpression": {"parameters": "first"},
"CallExpression": {"arguments": "first"}
}],
"no-warning-comments": 0,
"no-unneeded-ternary": ["error", {"defaultAssignment": false}],
"no-nested-ternary": 0,
"no-constant-condition": ["error", {"checkLoops": false}],
"camelcase": 0,
"no-undef": 1,
"no-eq-null": 0,
"quote-props": 0,
"eqeqeq": ["error", "allow-null"],
"no-implicit-coercion": ["error", {"allow": ["!!", "+"]}],
"no-unused-vars": ["warn", {"args": "none"}],
"no-negated-condition": 0,
"max-len": [2, 120, 2],
"linebreak-style": "off",
"no-return-assign": 0,
"max-statements-per-line": ["error", {"max": 2}],
"no-multi-spaces": [
"error",
{
"exceptions": {
"Property": true,
"AssignmentExpression": true,
"LogicalExpression": true,
"VariableDeclarator": true,
"ImportDeclaration": true
}
}
],
"no-unmodified-loop-condition": 0,
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"curly": [0, "multi-line", "consistent"],
"key-spacing": ["error", {"mode": "minimum"}],
"keyword-spacing": [
"error",
{
"overrides": {
"if": { "after": false },
"for": { "after": false },
"switch": { "after": false },
"catch": { "after": false },
"while": { "after": false }
}
}
],
"operator-linebreak": [
"error", "after", {"overrides": {"?": "ignore", ":": "ignore"}}
],
"padded-blocks": "off",
"quotes": ["error", "double", { "avoidEscape": true }],
"object-curly-spacing": ["error", "never"],
"block-scoped-var": 0,
"consistent-return": "warn",
"capitalized-comments": ["warn", "always", {
"ignoreInlineComments": true,
"ignoreConsecutiveComments": true,
"ignorePattern": "region|endregion|assert|noinspection|end|break|null|undefined|nully"
}],
"newline-per-chained-call": ["error", {"ignoreChainWithDepth": 2}],
"padding-line-between-statements": ["error",
{"blankLine": "always", "prev": "block-like", "next": "return"},
{"blankLine": "always", "prev": "directive", "next": "*"},
{"blankLine": "any", "prev": "directive", "next": "directive"}
],
"no-restricted-syntax": "off",
"no-plusplus": ["warn", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"import/no-amd": "off",
"prefer-rest-params": "off",
"prefer-spread": "off"
}
}