-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
61 lines (59 loc) · 1.72 KB
/
.eslintrc
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
{
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:import/typescript",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
// allow special triple slashes comment: "/// <reference />"
"spaced-comment": [2, "always", { "line": { "markers": ["/"] }, "block": { "balanced": true } }],
// override original rules
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [2, { "args": "none" }],
"no-array-constructor": 0,
"@typescript-eslint/no-array-constructor": 2,
"@typescript-eslint/adjacent-overload-signatures": 2,
"@typescript-eslint/ban-ts-comment": [
2,
{
"ts-expect-error": false,
"ts-ignore": true,
"ts-nocheck": false,
"ts-check": false
}
],
"@typescript-eslint/consistent-type-assertions": 2,
"@typescript-eslint/consistent-type-imports": 0,
"@typescript-eslint/no-namespace": [2, { "allowDeclarations": true }],
"@typescript-eslint/no-non-null-asserted-optional-chain": 2,
// allow require for power-assert
// '@typescript-eslint/no-require-imports': 2,
"@typescript-eslint/no-var-requires": 2,
"@typescript-eslint/prefer-literal-enum-member": 2,
"@typescript-eslint/prefer-namespace-keyword": 2
},
"settings": {
"jsdoc": {
"mode": "typescript"
},
"node": {
"tryExtensions": [".ts", ".js", ".json", ".node"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".json", ".ts"]
},
"typescript": {}
}
}
}