-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
eslint.config.js
58 lines (57 loc) · 1.34 KB
/
eslint.config.js
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
const rubiin = require("@antfu/eslint-config").default;
module.exports = rubiin({
stylistic: {
semi: false,
quotes: "double",
}, // enable stylistic rules
yaml: true, // enable yaml rules,
jsonc: true, // enable jsonc rules
markdown: false, // enable markdown rules
gitignore: true, // enable gitignore rules,
typescript: {
tsconfigPath: "tsconfig.json"
},
overrides: {
test: {
"ts/unbound-method": "off",
"ts/no-unsafe-assignment": "off",
"ts/no-unsafe-call": "off",
},
typescript:
{
"ts/no-unsafe-assignment": "off",
"ts/no-unsafe-call": "off",
"ts/strict-boolean-expressions":"off",
"ts/no-misused-promises": [
"error",
{
checksVoidReturn: false,
},
],
"ts/no-floating-promises":["error",{
"ignoreIIFE": true
}],
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": [
"error",
{
ignore: [
"\\.e2e*",
"\\.spec*",
"\\.decorator*",
"\\*idx*",
],
allowList: {
ProcessEnv: true,
UUIDParam: true,
},
},
],
},
},
// `.eslintignore` is no longer supported in Flat config, use `ignores` instead
ignores: [
'**/typings',
"i18n-generated.ts",
]
});