1 Star 0 Fork 0

kevin/wepy-weui-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 932 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gcaufy 提交于 2017-05-23 10:29 . first init
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.wpy files
plugins: [
'html'
],
settings: {
'html/html-extensions': ['.html', '.wpy']
},
'globals': {
'wx': true
},
// add your custom rules here
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
"semi": [
"error",
"always"
],
'comma-dangle': ["error", "only-multiline"],
'padded-blocks': 0,
'one-var': 0,
'no-return-assign': 0,
'indent': ['error', 4],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'space-before-function-paren': 0
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangxin1999/wepy-weui-demo.git
git@gitee.com:huangxin1999/wepy-weui-demo.git
huangxin1999
wepy-weui-demo
wepy-weui-demo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385