-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
25 lines (24 loc) · 1.01 KB
/
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
import withNuxt from "./.nuxt/eslint.config.mjs";
export default withNuxt(
{
rules: {
"eqeqeq": ["error", "always"],
"no-console": "warn",
"no-lonely-if": "error",
"no-unused-vars": ["warn"],
"no-useless-rename": "error",
"prefer-const": "error",
"require-await": "error",
"vue/block-lang": ["error", { script: { lang: "ts" }, style: { lang: "scss" } }],
"vue/block-order": ["error", { order: ["script", "template", "style"] }],
"vue/html-indent": ["error", 4],
"vue/max-attributes-per-line": ["error", { singleline: { max: 5 }, multiline: { max: 1 } }],
"vue/multi-word-component-names": "off",
"@stylistic/comma-dangle": ["error", "never"],
"@stylistic/indent": ["error", 4],
"@stylistic/quotes": ["error", "double"],
"@stylistic/semi": ["error", "always"],
"@stylistic/semi-style": ["error", "last"]
}
}
);