-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
85 lines (85 loc) · 2.2 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
{
"plugins": [
"@typescript-eslint"
],
"env": {
"browser": true,
"es2021": true
},
"extends": [
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"max-len": [
2,
80,
4,
{
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true
}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"semi": [
"error",
"always"
],
"@typescript-eslint/consistent-type-imports": 2,
"@typescript-eslint/consistent-type-exports": 2,
"@typescript-eslint/member-delimiter-style": 2,
"@typescript-eslint/no-confusing-non-null-assertion": 2,
"@typescript-eslint/no-misused-new": 2,
"@typescript-eslint/no-require-imports": 2,
"@typescript-eslint/prefer-for-of": 2,
"@typescript-eslint/restrict-plus-operands": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/no-base-to-string": 2,
"@typescript-eslint/prefer-nullish-coalescing": 1,
"@typescript-eslint/require-array-sort-compare": 1,
"@typescript-eslint/no-empty-interface": 1,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"no-async-promise-executor": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/ban-ts-comment": 0,
"no-constant-condition": 0,
"no-prototype-builtins": 0,
"no-control-regex": 0,
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"object": false,
"Function": false
},
"extendDefaults": true
}
]
}
}