-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
42 lines (41 loc) · 998 Bytes
/
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
import rubiin from "@antfu/eslint-config";
export default await rubiin(
{
stylistic: true, // enable stylistic rules
yaml: true, // enable yaml rules,
jsonc: true, // enable jsonc rules
markdown: true, // enable markdown rules
gitignore: true, // enable gitignore rules
typescript: {
tsconfigPath: 'tsconfig.json',
},
},
{
files: ["**/*.ts"],
rules: {
"ts/no-floating-promises": "off",
"ts/no-extraneous-class": "off",
"ts/unbound-method": "off",
"ts/require-await": "off", // optimize this
"ts/no-unsafe-assignment": "off", // optimize this
"ts/no-unsafe-member-access": "off", // optimize this
"unicorn/prefer-top-level-await": "off",
"ts/no-misused-promises": [
"error",
{
checksVoidReturn: false,
},
],
"unicorn/prevent-abbreviations": [
"error",
{
ignore: ["\\.e2e*", "\\.spec*", "\\.decorator*", "\\*idx*"],
allowList: {
ProcessEnv: true,
UUIDParam: true,
},
},
],
},
},
);