-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
eslint.config.js
58 lines (54 loc) · 1.67 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
import antfu from '@antfu/eslint-config';
export default antfu({
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }],
'node/prefer-global/process': 'off',
'style/brace-style': ['error', '1tbs'],
'style/comma-dangle': ['error', 'always-multiline'],
'style/eol-last': ['error', 'always'],
'style/linebreak-style': ['error', 'unix'],
'style/quote-props': ['error', 'as-needed'],
'style/quotes': ['error', 'single', { avoidEscape: true }],
curly: ['error', 'all'],
'import/order': 'off',
'unused-imports/no-unused-imports': 'warn',
'perfectionist/sort-imports': [
'error',
{
type: 'alphabetical',
order: 'asc',
ignoreCase: true,
newlinesBetween: 'always',
groups: [
['builtin-type', 'type'],
'builtin',
'external',
'internal-type',
'internal',
['parent-type', 'sibling-type', 'index-type'],
['parent', 'sibling', 'index'],
'side-effect',
'object',
'style',
'unknown',
],
internalPattern: [
'#components/**',
'#shared/**',
'#layouts/**',
'#lib/**',
],
},
],
},
stylistic: {
indent: 4,
semi: true,
},
ignores: [
'.vscode',
'out',
'node_modules',
],
yaml: false,
});