当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 60

lexing / vue-xuAdmin
关闭

forked from ggb / vue-xuAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'indent': [2, 2], //缩进风格
"no-multiple-empty-lines": [1, {"max": 2}], //空行最多不能超过2行
"camelcase": 2, //强制驼峰法命名
"init-declarations": 0, //声明时必须赋初值
"space-before-function-paren": [2, "always"], //函数定义时括号前面要不要有空格
"no-spaced-func": 2, //函数调用时 函数名与()之间不能有空格
"no-undef": 1, //不能有未定义的变量
"no-redeclare": 2,//禁止重复声明变量
"eqeqeq": [2, "allow-null"], // 使用 === 替代 ==
"quotes": [ 2, "double"], // 使用双引号
"semi": [2, "never"] // 不使用分号
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ilexing/vue-xuAdmin.git
git@gitee.com:ilexing/vue-xuAdmin.git
ilexing
vue-xuAdmin
vue-xuAdmin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891