-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (43 loc) · 808 Bytes
/
Copy patheslint.config.js
File metadata and controls
44 lines (43 loc) · 808 Bytes
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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
unocss: true,
ignores: [
'**/public',
'**/dist*',
'**/*.md',
'.vitepress/cache',
'.vitepress/dist',
],
},
{
rules: {
'e18e/prefer-static-regex': 'off',
'eslint-comments/no-unlimited-disable': 'off',
'curly': ['error', 'all'],
'ts/no-unused-expressions': ['error', {
allowShortCircuit: true,
allowTernary: true,
}],
},
},
{
files: [
'**/*.vue',
],
rules: {
'vue/block-order': ['error', {
order: ['route', 'i18n', 'script', 'template', 'style'],
}],
},
},
{
files: [
'pnpm-workspace.yaml',
],
rules: {
'pnpm/yaml-enforce-settings': 'off',
},
},
)