-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
70 lines (70 loc) · 1.94 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"align-assignments"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/electron",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": "error",
"camelcase": "error",
"capitalized-comments": ["warn"],
"complexity": ["error", 5],
"func-style": ["error", "declaration"],
"logical-assignment-operators": ["error", "always"],
"max-depth": ["error", 5],
"no-irregular-whitespace": "error",
"spaced-comment": ["error", "always"],
"block-spacing": "error",
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": "error",
"no-eval": "error",
"no-extra-semi": "error",
"key-spacing": ["error", {
"multiLine": {
"beforeColon": false,
"afterColon":true
},
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon"
}
}],
"indent": ["error", 4, {
"SwitchCase": 1,
"VariableDeclarator": {"var": 1, "let": 1, "const": 1}
}],
"space-infix-ops": "error",
"keyword-spacing": ["error", { "overrides": {
"if": { "after": false },
"for": { "after": false },
"while": { "after": false },
"as": { "after": false },
"static": { "after": true },
"import": { "after": true }
} }],
"newline-after-var": ["error", "always"],
"align-assignments/align-assignments": [2, { "requiresOnly": false } ],
"one-var": ["error", "always"],
"max-len": ["error", { "code": 120 }]
}
}