-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
100 lines (100 loc) · 3.23 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint/eslint-plugin"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"node": true
},
"rules": {
"@typescript-eslint/comma-dangle": ["warn", "always-multiline"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-semi": "warn",
"@typescript-eslint/semi": ["warn", "always"],
"array-callback-return": ["error", { "checkForEach": false }],
"arrow-body-style": ["warn", "as-needed"],
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn",
"block-spacing": ["warn", "always"],
"camelcase": "warn",
"comma-dangle": "off",
"complexity": ["error", 15],
"consistent-return": "warn",
"curly": "error",
"default-case": "warn",
"default-case-last": "error",
"default-param-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"multiline-ternary": ["warn", "always-multiline"],
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extra-semi": "off",
"no-fallthrough": "off",
"no-implicit-coercion": ["error", { "allow": ["!!", "+"] }],
"no-lonely-if": "error",
"no-tabs": "warn",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "warn",
"no-unreachable-loop": "warn",
"no-unused-private-class-members": "error",
"no-useless-concat": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": ["error", { "destructuring": "all" }],
"prefer-destructuring": ["error", { "object": true, "array": false }],
"require-await": "error",
"semi": "off",
"@typescript-eslint/member-ordering": [
"error",
{
"default": [
"decorated-field",
"private-field",
"protected-field",
"public-field",
"constructor",
"decorated-get",
"decorated-set",
"decorated-method",
"public-get",
"public-set",
"public-method",
"protected-method",
"protected-get",
"protected-set",
"private-get",
"private-set",
"private-method"
]
}
],
"max-len": [
"warn",
{
"code": 140,
"ignoreComments": true
}
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "case", "next": "case" },
{ "blankLine": "always", "prev": "const", "next": "*" },
{ "blankLine": "any", "prev": "const", "next": "const" },
{ "blankLine": "always", "prev": "*", "next": "let" },
{ "blankLine": "any", "prev": "let", "next": "let" },
{ "blankLine": "always", "prev": "block", "next": "*" }
]
}
}