1 Star 0 Fork 46

与你/vue-cms

forked from 小波/vue-cms 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 801 Bytes
一键复制 编辑 原始数据 按行查看 历史
小波 提交于 2022-01-23 09:44 . 完成eslint配置
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', '@vue/standard'],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
// 修正函数名和小括号之间的空格问题
// 参考文档:https://eslint.bootcss.com/docs/rules/space-before-function-paren
'space-before-function-paren': [
'error',
{
anonymous: 'always', // 匿名函数小括号前,需要空格。比如 setTimeout(function () {})
named: 'never', // 有名字的方法,不需要空格。比如 abc() {}
asyncArrow: 'always' // 箭头函数,需要空格
}
]
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li_with-you/vue-cms.git
git@gitee.com:li_with-you/vue-cms.git
li_with-you
vue-cms
vue-cms
master

搜索帮助