Update webpack, components for eslint. Adjust effected settings and code.

This commit is contained in:
NI
2021-07-09 17:28:47 +08:00
parent 52b33cc793
commit d66053a0dc
15 changed files with 412 additions and 704 deletions

View File

@@ -1,6 +1,6 @@
module.exports = {
parserOptions: {
parser: "babel-eslint",
parser: "@babel/eslint-parser",
},
root: true,
env: {
@@ -14,8 +14,9 @@ module.exports = {
],
rules: {
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"no-unused-vars": process.env.NODE_ENV === "production" ? "warn" : "error",
},
globals: {
$nuxt: true,