我的 .eslintrc.js 配置
我的 .eslintrc.js 配置
module.exports = {
root: true,
env: {
node: true,
},
extends: ["plugin:vue/essential", "@vue/standard"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
semi: 0,
"no-throw-literal": 0,
"keyword-spacing": [
"error",
{
before: true,
after: true,
},
],
"space-before-function-paren": 0,
quotes: [0, "double"],
},
parserOptions: {
parser: "babel-eslint",
},
};