方法一:
在 .eslintrc.js 配置你的规则rule
rules: {
···
"quotes": [1, "single"], //引号类型 `` "" ''
···
}
方法二
万能方法,就是在报错的JS文件中第一行写上
/* eslint-disable */
Use /* eslint-disable */ to ignore all warnings in a file.
博客介绍了两种方法,但未提及具体内容。
在 .eslintrc.js 配置你的规则rule
rules: {
···
"quotes": [1, "single"], //引号类型 `` "" ''
···
}
万能方法,就是在报错的JS文件中第一行写上
/* eslint-disable */
Use /* eslint-disable */ to ignore all warnings in a file.
5945

被折叠的 条评论
为什么被折叠?