-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patheslint.config.mjs
40 lines (39 loc) · 946 Bytes
/
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
import antfu from "@antfu/eslint-config";
export default antfu(
{
stylistic: {
indent: 2,
semi: true,
quotes: "double",
},
formatters: {
css: true,
},
vue: {
overrides: {
"vue/attributes-order": "error",
"vue/block-order": ["error", {
order: ["template", "script", "style"],
}],
"vue/component-definition-name-casing": "off",
"vue/multi-word-component-names": "off",
"vue/prefer-template": "off",
"vue/require-default-prop": "off",
},
// https://github.com/antfu/eslint-config/issues/367
sfcBlocks: {
blocks: {
styles: false,
},
},
vueVersion: 2,
},
ignores: ["**/vendor/**", "index.css", "index.js"],
},
{
rules: {
"style/brace-style": ["warn", "1tbs", { allowSingleLine: true }],
"regexp/no-super-linear-backtracking": "off",
},
},
);