1 Star 0 Fork 21

mafic/openskyline

forked from 浪潮开源/openskyline 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
gaofei 提交于 2021-04-07 15:01 . 项目初始化提交
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
'rules': {
"indent": ['warn', 2], //warn error
"no-unused-vars": [0, { "vars": "all", "args": "none" }],
// allow paren-less arrow functions
'arrow-parens': 0,
'no-undef': 0,
'spaced-comment': [0, "never"],
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
//'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-debugger': 2,
'semi': [1, "always"],
'func-call-spacing': [0, "never"],
"space-before-function-paren": [0, "always"],
"key-spacing": ["warn", { "afterColon": true }],
"quotes": [0, "single"],
"eqeqeq": ["warn", "always"],
"space-in-parens": [0, "never"],
"space-infix-ops": [0, {"int32Hint": false}],
"yoda": [0, "never", { "exceptRange": true }],
"handle-callback-err": [0, "error"],
"no-extra-bind": [0, "error"],
"no-eval": 0,
"no-useless-escape": 0,
// allow async-await
'generator-star-spacing': 0,
'no-control-regex': 0
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mafic/openskyline.git
git@gitee.com:mafic/openskyline.git
mafic
openskyline
openskyline
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385