Commit 6a58eae0 authored by gengshaojing's avatar gengshaojing

update: eslint prettier 规则

parent 15262b30
......@@ -11,5 +11,7 @@ module.exports = {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"prettier/prettier": "error",
"vue/script-setup-uses-vars": "off",
"no-unused-vars": "off",
},
};
......@@ -67,11 +67,9 @@
},
"lint-staged": {
"src/**/*.{js,vue}": [
"prettier --write",
"eslint --fix"
],
"server/**/*.js": [
"prettier --write",
"eslint --fix"
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment