-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
129 lines (129 loc) · 3.86 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"env": {
"es2021": true,
"node": true,
"mocha": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
},
"project": "tsconfig.json"
},
"plugins": ["import", "@typescript-eslint", "prettier"],
"root": true,
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/no-empty-function": [
"warn",
{
"allow": ["constructors"]
}
],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-inferrable-types": [
"warn",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_$"
}
],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/unbound-method": "off",
"arrow-parens": ["error", "as-needed"],
"brace-style": [
"warn",
"1tbs",
{
"allowSingleLine": true
}
],
"comma-dangle": ["error", "only-multiline"],
"complexity": "off",
"curly": "error",
"dot-notation": "error",
"eqeqeq": ["error", "smart"],
"eol-last": "error",
"import/no-dynamic-require": "error",
"import/no-default-export": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
"import/no-unresolved": [
"warn",
{
"ignore": ["vscode"]
}
],
"max-classes-per-file": ["error", 1],
"max-len": [
"error",
{
"code": 120
}
],
"no-bitwise": "error",
"no-console": "off",
"no-duplicate-imports": "error",
"no-inner-declarations": "off",
"no-invalid-this": "error",
"no-trailing-spaces": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-numeric-literals": "error",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prettier/prettier": "error",
"quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"radix": "error",
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"spaced-comment": ["error", "always"],
"space-in-parens": ["error", "never"],
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}
],
"yoda": "error"
}
}