-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
27 lines (26 loc) · 848 Bytes
/
eslint.config.mjs
File metadata and controls
27 lines (26 loc) · 848 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
import antfu from "@antfu/eslint-config";
export default antfu(
{
typescript: true,
vue: true,
ignores: ["**/*.d.ts"]
},
{
files: ["**/*.vue"],
rules: {
"vue/first-attribute-linebreak": ["error", { singleline: "beside", multiline: "below" }],
"vue/max-attributes-per-line": ["error", { singleline: { max: 3 }, multiline: { max: 1 } }],
"vue/html-closing-bracket-newline": ["error", { singleline: "never", multiline: "never", selfClosingTag: { singleline: "never", multiline: "never" } }]
}
},
{
// Without `files`, they are general rules for all files
rules: {
"style/indent": ["error", 2],
"style/semi": ["error", "always"],
"style/quotes": ["error", "double"],
"style/comma-dangle": ["error", "never"],
"style/brace-style": ["error", "1tbs"]
}
}
);