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
|
import eslint from "@eslint/js"
import tseslint from "typescript-eslint"
import stylistic from "@stylistic/eslint-plugin"
import pluginVue from "eslint-plugin-vue"
export default tseslint.config({
ignores: [".vitepress/cache/*"],
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/recommended"],
stylistic.configs.customize({
semi: false,
indent: 4,
quotes: "double",
}),
],
rules: {
"vue/multi-word-component-names": ["off"],
"vue/html-indent": ["error", 4],
"vue/max-attributes-per-line": ["error", {
singleline: {
max: 2,
},
multiline: {
max: 1,
},
}],
},
})
|