-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
32 lines (32 loc) · 1.12 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"prefer-arrow-callback": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"no-param-reassign": "error",
"no-shadow": "error",
"no-console": "error",
"max-classes-per-file": "error",
"complexity": "error",
"no-empty": "error",
"curly": "error",
"max-len": ["error", {"code": 132, "comments": 162}],
"max-lines": ["error", 1000],
"quotes": ["error", "single"],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-magic-numbers": ["error", { "ignore": [-1, 0, 1, 2] }],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"prettier/prettier": ["warn"]
}
}