-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy patheslint.config.js
More file actions
52 lines (51 loc) · 1.4 KB
/
eslint.config.js
File metadata and controls
52 lines (51 loc) · 1.4 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
50
51
52
import antfu from '@antfu/eslint-config'
export default antfu({
rules: {
'antfu/consistent-list-newline': 'off',
'curly': ['error'],
'new-cap': 'off',
'no-undef': 'error',
'perfectionist/sort-exports': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
['type-builtin', 'type-external', 'type-internal'],
['type-parent', 'type-sibling', 'type-index'],
'builtin',
'external',
'internal',
['parent', 'sibling', 'index'],
'side-effect',
'unknown',
],
internalPattern: ['^@/.*'],
order: 'asc',
type: 'natural',
newlinesBetween: 1,
},
],
'perfectionist/sort-named-exports': 'error',
'perfectionist/sort-named-imports': 'error',
'quotes': ['error', 'single'],
'sort-imports': 'off',
'style/brace-style': ['error', '1tbs'],
'style/quote-props': ['error', 'consistent-as-needed'],
'test/no-only-tests': 'error',
'unicorn/no-useless-spread': 'error',
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }],
},
typescript: true,
yaml: true,
formatters: {
markdown: true,
},
}, {
files: ['**/*.md'],
rules: {
'perfectionist/sort-exports': 'off',
'perfectionist/sort-imports': 'off',
'perfectionist/sort-named-exports': 'off',
'perfectionist/sort-named-imports': 'off',
},
})