-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
48 lines (47 loc) · 1.41 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn",
"curly": "warn",
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"no-console": "warn",
"no-throw-literal": "warn",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"semi": "off"
},
"overrides": [
{
"files": ["*.ts"],
// Since parserOptions.project is used, can't include files outside of
// the listed tsconfig files and seems silly to add a tsconfig just for
// the one file. It will still be linted by the base config above. It just
// won't be included in this overrides section.
"excludedFiles": ["vitest.config.ts"],
"parserOptions": {
"project": [
"./tsconfig.json",
"./e2e/tsconfig.json",
"./tsconfig.unit.json",
"./packages/*/tsconfig.json"
]
},
"rules": {
"no-return-await": "off",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-misused-promises": [
"error",
{ "checksVoidReturn": false }
]
}
}
],
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}