小程序

ESLint:Strings must use single q

2018-04-24  本文已影响5216人  闹闹也会有脾气

ESLint:Strings must use single quote

1、在 .eslintrc.js 配置你的规则rule
rules: {
  ···
  "quotes": [1, "single"], //引号类型 `` "" ''
  ···
}
2、万能方法,就是在报错的JS文件中第一行写上 
/* eslint-disable */

Use /* eslint-disable */ to ignore all warnings in a file.
上一篇 下一篇

猜你喜欢

热点阅读