Fix eslint setup
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
import { antfu as eslintConfig } from "@antfu/eslint-config";
|
||||
import withNuxt from "./.nuxt/eslint.config.mjs";
|
||||
import eslintConfig from "@antfu/eslint-config";
|
||||
import nuxtConfig from "./.nuxt/eslint.config.mjs";
|
||||
|
||||
export default withNuxt(
|
||||
eslintConfig(
|
||||
// General
|
||||
{
|
||||
typescript: true,
|
||||
vue: true,
|
||||
unocss: 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"]
|
||||
}
|
||||
export default eslintConfig(
|
||||
// General
|
||||
{
|
||||
typescript: true,
|
||||
vue: true,
|
||||
unocss: true,
|
||||
stylistic: {
|
||||
indent: "tab",
|
||||
quotes: "double"
|
||||
},
|
||||
|
||||
// Vue
|
||||
{
|
||||
files: ["**/*.vue"],
|
||||
rules: {
|
||||
"style/indent": "off"
|
||||
}
|
||||
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()
|
||||
);
|
||||
|
Reference in New Issue
Block a user