码迷,mamicode.com
首页 > 其他好文 > 详细

eslint 人性化配置

时间:2017-03-14 10:30:02      阅读:174      评论:0      收藏:0      [点我收藏+]

标签:type   and   debugger   nbsp   www   允许   roo   ports   deb   

错误列表:

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
  }
}

 

eslint 人性化配置

标签:type   and   debugger   nbsp   www   允许   roo   ports   deb   

原文地址:http://www.cnblogs.com/CyLee/p/6546907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!