-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
49 lines (48 loc) · 1.19 KB
/
eslint.config.js
File metadata and controls
49 lines (48 loc) · 1.19 KB
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
import antfu from '@antfu/eslint-config';
export default antfu({
typescript: {
tsconfigPath: './tsconfig.json',
},
jsx: true,
ignores: [
'node_modules/**',
'dist/**',
'.next/**',
'.nuxt/**',
'coverage/**',
],
rules: {
'style/semi': ['error', 'always'],
'style/quotes': ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true,
}],
'style/quote-props': ['error', 'as-needed'],
'style/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'style/arrow-parens': ['error', 'as-needed'],
'style/brace-style': 'off',
'no-console': 'off',
'node/prefer-global/process': 'off',
'ts/explicit-function-return-type': 'off',
'antfu/top-level-function': 'off',
'antfu/if-newline': 'off',
'perfectionist/sort-imports': 'off',
'no-template-curly-in-string': 'off',
'ts/no-unsafe-assignment': 'off',
'ts/no-unsafe-member-access': 'off',
'ts/no-unsafe-call': 'off',
'ts/no-floating-promises': 'off',
},
});