-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
77 lines (77 loc) · 2.93 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/array-type": "error",
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"@typescript-eslint/naming-convention":[
"error",
{
"selector": "typeParameter",
"format": ["PascalCase"],
"prefix": ["T"]
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": { "delimiter": "semi", "requireLast": true },
"singleline": { "delimiter": "semi", "requireLast": true }
}
],
"@typescript-eslint/no-extra-parens": ["error", "all", {"nestedBinaryExpressions": false }],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"array-bracket-spacing": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"camelcase": "error",
"comma-dangle": ["error", "never"],
"curly": "error",
"func-call-spacing": "error",
"generator-star-spacing": ["error", { "before": false, "after": true, "anonymous": "neither" }],
"indent": ["error", 4, { "SwitchCase": 1 }],
"key-spacing": "error",
"max-len": ["error", { "code": 120 }],
"max-statements-per-line": ["error", { "max": 1 }],
"no-console": "error",
"no-dupe-keys": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-extra-semi": "error",
"no-irregular-whitespace": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-negated-condition": "error",
"no-self-assign": "error",
"no-trailing-spaces": "error",
"no-unexpected-multiline": "error",
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-useless-return": "error",
"no-var": "error",
"no-with": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": "error",
"one-var": ["error", "never"],
"one-var-declaration-per-line": "error",
"operator-assignment": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
"require-yield": "error",
"rest-spread-spacing": "error",
"quotes": ["error", "single"],
"semi-spacing": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"switch-colon-spacing": "error"
}
}