-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
43 lines (40 loc) · 904 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
41
42
43
import eslintConfig from "@antfu/eslint-config";
import nuxtConfig from "./.nuxt/eslint.config.mjs";
export default eslintConfig(
// General
{
typescript: true,
vue: true,
stylistic: {
indent: "tab",
quotes: "double"
},
rules: {
curly: "off",
"no-console": "off",
"no-new-func": "off",
"style/semi": ["error", "always"],
"style/indent": ["error", "tab"],
"style/quote-props": ["warn", "as-needed"],
"style/comma-dangle": ["warn", "never"],
"style/brace-style": ["warn", "1tbs"],
"style/arrow-parens": ["error", "always"],
"vue/block-order": ["error", {
order: ["template", "script", "style"]
}],
"vue/script-indent": ["error", "tab", {
baseIndent: 1
}],
"antfu/top-level-function": "off",
"node/prefer-global/process": ["off"]
}
},
// Vue
{
files: ["**/*.vue"],
rules: {
"style/indent": "off"
}
},
nuxtConfig()
);