-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
58 lines (56 loc) · 1.69 KB
/
eslint.config.mjs
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';
import { FlatCompat } from '@eslint/eslintrc';
import autoImport from './eslint.config.autoImport.json' assert { type: 'json' };
const compat = new FlatCompat();
export default antfu(
{ vue: true },
...compat.config({
extends: ['@vue/eslint-config-prettier'],
...autoImport,
}),
{
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-useless-return': 'warn',
'symbol-description': 'off',
'unused-imports/no-unused-vars': 'warn',
'import/order': [
'warn',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
pathGroups: [
{
pattern: '@/**',
group: 'internal',
},
],
pathGroupsExcludedImportTypes: [],
},
],
'vue/block-order': ['error', { order: ['template', 'script', 'style[scoped]', 'style:not([scoped])'] }],
'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',
},
],
},
},
);