-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.config.js
45 lines (44 loc) · 1015 Bytes
/
eslintrc.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
const custom = require('@antfu/eslint-config').default;
module.exports = custom({
stylistic: {
semi: true,
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',
},
typescript: {
'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,
},
},
],
},
},
});