您的位置:首页 > 其它

eslint 人性化配置

2017-03-14 09:48 316 查看
错误列表:

http://www.zystudios.cn/blog/post/70.Shtml


人性化一点。别老虐我啊晓梦大师

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': {
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
// 李钊鸿:允许tab缩进
"no-tabs":"off",
// 关闭tab或space造成的indent缩进错误
'indent': 0
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: