-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
71 lines (70 loc) · 1.9 KB
/
eslint.config.ts
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
59
60
61
62
63
64
65
66
67
68
69
70
71
import antfu from '@antfu/eslint-config';
import type { Linter } from 'eslint';
import prettierConfig from 'eslint-config-prettier';
import autoImport from './eslint.config.autoImport.json';
export default antfu(
{
vue: {
overrides: {
'vue/block-order': ['error', { order: ['template', 'script', 'style[scoped]', 'style:not([scoped])'] }],
},
},
typescript: {
overrides: {
'ts/member-ordering': 'warn',
'ts/explicit-member-accessibility': ['warn', { accessibility: 'no-public' }],
'ts/consistent-type-imports': [
'warn',
{
prefer: 'type-imports',
disallowTypeAnnotations: false,
fixStyle: 'separate-type-imports',
},
],
},
},
jsonc: false,
yaml: false,
markdown: false,
},
prettierConfig as Linter.Config,
{
languageOptions: {
globals: autoImport.globals as any as Linter.Globals,
},
rules: {
'style/semi': 'off',
'style/member-delimiter-style': 'off',
'style/arrow-parens': ['warn', 'as-needed'],
'style/brace-style': ['warn', '1tbs'],
'style/indent': 'off',
'style/operator-linebreak': 'off',
'style/quote-props': 'off',
'antfu/if-newline': 'off',
'antfu/top-level-function': 'off',
'no-console': 'off',
'no-cond-assign': 'off',
'no-useless-return': 'warn',
'symbol-description': 'off',
'unused-imports/no-unused-vars': 'warn',
'perfectionist/sort-imports': [
'warn',
{
ignoreCase: false,
newlinesBetween: 'never',
internalPattern: ['^@/.*'],
groups: [
['side-effect-style', 'side-effect'],
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
],
},
],
},
},
);