-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
32 lines (32 loc) · 838 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"lib": [ "ESNext", "DOM"]
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"env": {
"node": true
},
"rules": {
// it will cause incorrect error in typescript
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-imports": "warn"
},
"overrides": [
{
// testing file needs var require
"files": ["*.spec.ts"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}