-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
100 lines (91 loc) · 2.56 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
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-implicit-any-catch": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-meaningless-void-operator": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/require-await": "error",
"@typescript-eslint/sort-type-union-intersection-members": "error",
"arrow-body-style": ["error", "as-needed"],
"curly": "error",
"eqeqeq": ["error", "smart"],
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-extra-boolean-cast": "error",
"no-implicit-coercion": "error",
"no-invalid-regexp": "error",
"no-lonely-if": "error",
"no-param-reassign": "error",
"no-unneeded-ternary": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"object-curly-newline": [
"error",
{
"ExportDeclaration": {
"consistent": true,
"minProperties": 4,
"multiline": true
},
"ObjectExpression": {
"consistent": true,
"minProperties": 4,
"multiline": true
}
}
],
"object-shorthand": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"next": ["return", "if", "for", "while", "switch", "throw"],
"prev": "*"
},
{
"blankLine": "always",
"next": "*",
"prev": [
"multiline-expression",
"multiline-block-like",
"multiline-const",
"multiline-let"
]
}
],
"prefer-const": "error",
"prefer-template": "error",
"quotes": ["error", "double", { "avoidEscape": true }]
}
}