-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy patheslint.config.js
82 lines (80 loc) · 2.01 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import vue from 'eslint-plugin-vue';
export default tseslint.config(
{
ignores: [
'docs/.vitepress/cache/**',
'docs/.vitepress/dist/**',
],
},
eslint.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
plugins: {
vue,
},
rules: {
"array-bracket-spacing": [
"error",
"never"
],
"brace-style": "error",
"camelcase": [
"warn",
{
"properties": "never",
"ignoreDestructuring": true
}
],
"dot-notation": "warn",
"eol-last": "warn",
"func-call-spacing": [
"warn",
"never"
],
"indent": [
"warn",
4
],
"no-duplicate-imports": [
"error",
{
"includeExports": true
}
],
"no-empty-function": "warn",
"no-trailing-spaces": "warn",
"no-unused-vars": "warn",
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"quotes": [
"error",
"single"
],
"semi": [
"warn",
"never"
],
"space-before-function-paren": "warn",
"spaced-comment": "warn",
"vue/html-indent": [
"warn",
4
],
"vue/multi-word-component-names": "warn"
}
},
);