generated from mdingena/typescript-npm-package
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
41 lines (41 loc) · 1.06 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
{
"root": true,
"env": { "node": true },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json", "./scripts/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".js"],
"extensionAlias": {
".js": [".ts"]
},
"project": ["./tsconfig.json"]
}
}
},
"rules": {
"no-return-await": "off",
"@typescript-eslint/return-await": ["error", "always"],
"import/no-unresolved": "error",
"import/extensions": ["error", "never", { "js": "always" }],
"import/order": [
"warn",
{
"alphabetize": { "order": "asc", "caseInsensitive": false },
"groups": ["type", ["builtin", "external", "internal"], "parent", "sibling", "index", "object"],
"newlines-between": "always"
}
]
}
}