加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
Canace 提交于 2020-02-17 19:08 . refactor:重构代码
module.exports = {
root: true,
env: {
node: true
},
extends: ["plugin:vue/essential", "@vue/airbnb"],
parserOptions: {
parser: "babel-eslint"
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"import/prefer-default-export": "off",
quotes: [2, "single", "avoid-escape"],
indent: [
2,
2,
{
SwitchCase: 1
}
],
"function-paren-newline": "off",
"no-unused-expressions": "off",
"import/no-unresolved": "off",
"no-mixed-operators": "off",
"import/extensions": "off",
"no-param-reassign": "off",
"comma-dangle": "off",
"arrow-parens": "off",
"no-plusplus": "off",
"no-tabs": 0,
"linebreak-style": [0, "error", "windows"],
"prefer-destructuring": ["error", { object: true, array: false }]
},
overrides: [
{
files: ["**/__tests__/*.{j,t}s?(x)", "**/tests/unit/**/*.spec.{j,t}s?(x)"],
env: {
jest: true
}
}
]
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化