-
Notifications
You must be signed in to change notification settings - Fork 13
/
eslint.config.mjs
59 lines (58 loc) · 1.2 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
59
// eslint.config.mjs
import antfu from '@antfu/eslint-config'
export default antfu(
// Configures for antfu's config
{
unocss: true,
ignores: [
'**/node_modules/*',
'!**/.vuepress/**',
'**/.vuepress/.cache/**',
'**/.vuepress/.temp/**',
'**/.vuepress/dist/**',
'**/*.md',
],
},
{
rules: {
'no-console': 'off',
'node/prefer-global/process': 'off',
'symbol-description': 'off',
},
},
{
files: ['**/*.vue'],
rules: {
'vue/valid-attribute-name': 'off',
'vue/block-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'vue/html-comment-content-spacing': [
'error',
'always',
{
exceptions: [],
},
],
'vue/no-deprecated-model-definition': [
'error',
{
allowVue3Compat: true,
},
],
'vue/component-name-in-template-casing': [
'error',
'PascalCase',
{
registeredComponentsOnly: false,
ignores: ['/^n-/'],
globals: [],
},
],
'vue/define-props-declaration': ['error', 'type-based'],
},
},
)