-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
57 lines (56 loc) · 1.62 KB
/
eslint.config.ts
File metadata and controls
57 lines (56 loc) · 1.62 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
53
54
55
56
57
import antfu from '@antfu/eslint-config'
export default await antfu(
{
unocss: true,
vue: true,
toml: false,
pnpm: false,
ignores: [
'build/**',
'cspell.config.yaml',
'cspell.config.yml',
'packages/umap-wasm/runtime.js', // Build output
],
rules: {
'vue/prefer-separate-static-class': 'off',
'yaml/plain-scalar': 'off',
'import/order': 'off',
'antfu/import-dedupe': 'error',
'style/padding-line-between-statements': 'error',
'perfectionist/sort-imports': [
'error',
{
groups: [
'type-builtin',
'type-import',
'type-internal',
['type-parent', 'type-sibling', 'type-index'],
'default-value-builtin',
'named-value-builtin',
'value-builtin',
'default-value-external',
'named-value-external',
'value-external',
'default-value-internal',
'named-value-internal',
'value-internal',
['default-value-parent', 'default-value-sibling', 'default-value-index'],
['named-value-parent', 'named-value-sibling', 'named-value-index'],
['wildcard-value-parent', 'wildcard-value-sibling', 'wildcard-value-index'],
['value-parent', 'value-sibling', 'value-index'],
'side-effect',
'style',
],
newlinesBetween: 'always',
},
],
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
},
},
{
files: ['**/tsconfig.json'],
rules: {
'jsonc/sort-keys': 'off',
},
},
)