lint: format
This commit is contained in:
32
eslint.config.mjs
Normal file
32
eslint.config.mjs
Normal file
@@ -0,0 +1,32 @@
|
||||
import process from "node:process";
|
||||
import antfu from "@antfu/eslint-config";
|
||||
|
||||
export default antfu({
|
||||
vue: true,
|
||||
typescript: true,
|
||||
jsonc: false,
|
||||
gitignore: true,
|
||||
ignores: [
|
||||
"ios",
|
||||
"android",
|
||||
"dist",
|
||||
"coverage",
|
||||
"node_modules",
|
||||
],
|
||||
stylistic: {
|
||||
semi: true,
|
||||
quotes: "double",
|
||||
},
|
||||
formatters: {
|
||||
css: "prettier",
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
},
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"vue/no-deprecated-slot-attribute": "off",
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user