-
Notifications
You must be signed in to change notification settings - Fork 253
/
.eslintrc.json
91 lines (91 loc) · 2.09 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
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"env": {
"node": true
},
"globals": {
"Promise": true,
"Uint8Array": true,
"ArrayBuffer": true,
"Set": true,
"Map": false
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"project": [
"./tsconfig.json"
]
},
"plugins": [
"prettier",
"eslint-plugin-tsdoc",
"no-bigint-usage"
],
"reportUnusedDisableDirectives": true,
"rules": {
"prettier/prettier": "error",
"tsdoc/syntax": "warn",
"no-console": "off",
"eqeqeq": [
"error",
"always",
{
"null": "ignore"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"strict": [
"error",
"global"
],
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
// Note: you must disable the base rule as it can report incorrect errors
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": false,
"fixStyle": "inline-type-imports"
}
],
"no-bigint-usage/no-bigint-literals": "error",
"no-restricted-globals": [
"error",
"BigInt",
"DataView"
]
},
"overrides": [
{
"parser": "espree",
"files": [
"*.mjs"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
}
}
]
}