-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
107 lines (107 loc) · 2.93 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
101
102
103
104
105
106
107
{
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"ignorePatterns": ["dist"],
"plugins": ["import"],
"rules": {
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-unmodified-loop-condition": "error",
"accessor-pairs": [
"error",
{
"setWithoutGet": true,
"getWithoutSet": true
}
],
"arrow-body-style": "error",
"block-scoped-var": "error",
"camelcase": "off",
"class-methods-use-this": "error",
"consistent-return": [
"error",
{
"treatUndefinedAsUnspecified": true
}
],
"consistent-this": "error",
"curly": "off",
"default-case-last": "error",
"default-param-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"grouped-accessor-pairs": "error",
"guard-for-in": "error",
"init-declarations": "error",
"max-depth": "error",
"max-nested-callbacks": ["error", 3],
"no-array-constructor": "error",
"no-case-declarations": "error",
"no-delete-var": "error",
"no-div-regex": "error",
"no-else-return": "error",
"no-empty": "error",
"no-empty-static-block": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-extra-boolean-cast": "error",
"no-extra-label": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-magic-numbers": "off",
"no-nested-ternary": "error",
"no-nonoctal-decimal-escape": "error",
"no-object-constructor": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-underscore-dangle": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-useless-return": "error",
"no-var": "error",
"no-with": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-exponentiation-operator": "error",
"prefer-numeric-literals": "error",
"prefer-object-has-own": "error",
"prefer-regex-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-unicode-regexp": "error",
"symbol-description": "error",
"vars-on-top": "error",
"unicode-bom": ["error", "never"],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "always"
}
]
}
}