-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
47 lines (46 loc) · 1.13 KB
/
eslint.config.js
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
import antfu from '@antfu/eslint-config';
export default antfu(
{
ignores: [
'**/shims-uni-app.d.ts',
],
},
{
// style
rules: {
'style/quote-props': ['error', 'as-needed'],
'style/semi': ['error', 'always'],
'style/max-statements-per-line': ['error', { max: 1 }],
curly: ['warn', 'all'],
'style/member-delimiter-style': ['warn', {
multiline: { delimiter: 'semi', requireLast: true },
singleline: { delimiter: 'semi', requireLast: false },
multilineDetection: 'brackets',
}],
'import/order': [
'warn',
{
groups: ['type', 'builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object'],
alphabetize: { order: 'asc', caseInsensitive: true },
warnOnUnassignedImports: false,
},
],
},
},
{
files: [
'packages/playground/**/*.vue',
'packages/playground/**/*.ts',
],
rules: {
'no-console': 'off',
},
},
{
files: ['**/manifest.json', '**/pages.json'],
rules: {
indent: ['error', 4],
'jsonc/indent': ['error', 4],
},
},
);