-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
55 lines (54 loc) · 1.31 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
48
49
50
51
52
53
54
55
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',
}],
'style/brace-style': ['warn', '1tbs'],
'style/padded-blocks': 'off',
'no-console': 'off',
'unused-imports/no-unused-vars': [
'error',
{
vars: 'all',
args: 'none',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
},
{
files: [
'packages/playground/**/*.vue',
'packages/playground/**/*.ts',
],
rules: {
'no-console': 'off',
},
},
{
files: ['**/manifest.json', '**/pages.json'],
rules: {
indent: ['error', 4],
'jsonc/indent': ['error', 4],
},
},
);