1 Star 0 Fork 0

d_benhua / ControlManage

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
d_benhua 提交于 2021-10-12 15:55 . 初始提交
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/strongly-recommended',
'@vue/standard',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
// enUS: all rules docs https://eslint.org/docs/rules/
// zhCN: 所有规则文档 https://eslint.bootcss.com/docs/rules/
// 基础规则 全部 ES 项目通用
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'quote-props': 'off',
// 结尾必须有逗号(主要缓解增加一行对象属性,导致 git 变更记录是两行的情况)
'comma-dangle': ['error', 'always-multiline'],
// 逗号必须在一行的结尾
'comma-style': ['error', 'last'],
// 禁止混合使用不同的操作符 'error','off'
'no-mixed-operators': 'off',
// 禁止未使用过的变量 default: ['error', { vars: 'local' }]
'no-unused-vars': ['off'],
/* vue 项目专用 */
'vue/require-default-prop': 'warn',
'vue/singleline-html-element-content-newline': ['off'],
'vue/max-attributes-per-line': [
2,
{
'singleline': 5,
'multiline': {
'max': 1,
'allowFirstLine': false,
},
},
],
// bug fix
'template-curly-spacing': 'off',
indent: 'off',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
jest: true,
},
},
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/d-benhua/control-manage.git
git@gitee.com:d-benhua/control-manage.git
d-benhua
control-manage
ControlManage
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891