-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
32 lines (32 loc) · 801 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
{
"root": true,
"env": { "node": true },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:import/recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".js"],
"extensionAlias": {
".js": [".ts"]
}
}
}
},
"rules": {
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "always"],
"import/no-unresolved": "error",
"import/extensions": ["error", "never", { ".js": "always" }],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowedNames": ["that"]
}
]
}
}