-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy patheslint.config.ts
More file actions
53 lines (52 loc) · 1.5 KB
/
eslint.config.ts
File metadata and controls
53 lines (52 loc) · 1.5 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
import { defineConfig } from '@moeru/eslint-config'
export default defineConfig({
masknet: false,
preferArrow: false,
perfectionist: false,
sonarjs: false,
typescript: true,
}, {
ignores: [
'cspell.config.yaml',
'cspell.config.yml',
'.vscode/settings.json',
'.golangci.yml',
],
}, {
rules: {
'antfu/import-dedupe': 'error',
// TODO: remove this
'depend/ban-dependencies': 'warn',
'import/order': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'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',
},
],
'style/padding-line-between-statements': 'error',
'yaml/plain-scalar': 'off',
},
})