wisetc / practice

Practice conclusion
5 stars 0 forks source link

eslint 关闭某规则 #1

Open wisetc opened 6 years ago

wisetc commented 6 years ago

eslint可以关闭不允许行尾逗号的规则,叫做comma-dangledisallow trailing comma,设置.eslintrc.js的rules属性,增加comma-dangle属性,设置其值为0。

image

重启一下开发服务。


其他规则还有

space-before-function-paren 函数之前的空格。参考