eslint检测规则中,括弧和函数名之间去掉空格的配置

在.eslintrc.js中配置:

// add your custom rules here

rules: {

  // no space before function name

  "space-before-function-paren": 0

}

 

posted @ 2020-02-04 07:43  ladybug7  阅读(3255)  评论(0)    收藏  举报