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.
1、在 .eslintrc.js 配置你的规则rule
rules: {
···
"quotes": [1, "single"], //引号类型 `` "" ''
···
}
2、万能方法,就是在报错的JS文件中第一行写上
/* eslint-disable */
Use /* eslint-disable */ to ignore all warnings in a file.