-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
67 lines (67 loc) · 1.82 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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked"
],
"plugins": ["ban", "@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["**/*.test.ts", "**/build.js", "**/dist/*"],
"rules": {
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": true,
"ts-ignore": "allow-with-description",
"ts-nocheck": true,
"ts-check": "allow-with-description",
"minimumDescriptionLength": 1
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"fixStyle": "inline-type-imports"
}
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/switch-exhaustiveness-check": [
"error",
{
"considerDefaultExhaustiveForUnions": true
}
],
"ban/ban": [
"error",
{
"name": "parseInt",
"message": "Use Number() constructor"
}
],
"eqeqeq": "error",
"no-console": "error",
"no-throw-literal": "error"
}
}