forked from L33Z22L11/blog-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
39 lines (38 loc) · 1017 Bytes
/
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
import antfu from '@antfu/eslint-config'
export default antfu({
stylistic: {
indent: 4,
},
rules: {
'jsonc/indent': ['error', 2],
'vue/block-lang': ['warn', {
script: { lang: ['ts', 'tsx'] },
style: { lang: ['scss'] },
}],
'vue/enforce-style-attribute': ['warn', {
allow: ['scoped'],
}],
'yaml/indent': ['error', 2],
},
}, {
files: ['**/*.json'],
ignores: ['content/**'],
rules: {
'style/eol-last': ['warn', 'never'],
},
}, {
files: ['content/**'],
rules: {
'antfu/consistent-list-newline': 'off',
'eqeqeq': 'off',
'jsonc/comma-dangle': ['warn', 'always'],
'no-irregular-whitespace': 'off',
'no-sequences': 'off',
'prefer-arrow-callback': 'off',
'prefer-template': 'off',
'style/no-seqences': 'off',
'style/quotes': 'off',
'style/semi': 'off',
'unicorn/prefer-includes': 'off',
},
})