-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
59 lines (59 loc) · 1.7 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
{
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/unified-signatures": "off",
"@typescript-eslint/unbound-method": [
"warn",
{
"ignoreStatic": true
}
],
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/promise-function-async": ["error"],
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
"@typescript-eslint/prefer-namespace-keyword": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/no-useless-constructor": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-unnecessary-type-assertion": ["warn"],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreProperties": true,
"ignoreParameters": true
}
],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowedNames": ["self"],
"allowDestructuring": false
}
],
"@typescript-eslint/no-extra-parens": ["error"],
"no-extra-parens": "off",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true
}
]
},
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser"
}