报错: error Strings must use singlequote quotes

格式化代码之后会将单引号变为双引号,最后还会加上逗号,末尾的分号于是会导致三种错误:

报错: error  Strings must use singlequote  quotes

1.Strings must use singlequote  quotes---双引号

2. Extra semicolon               semi ----末尾分号

3.error  Unexpected trailing comma     comma-dangle---逗号

 

 

 

报错: error  Strings must use singlequote  quotes

 

解决方法:配置文件eslintrc.js中设置

报错: error  Strings must use singlequote  quotes

上一篇:「对比Python学习Go」- 基本数据结构


下一篇:JDK1.8新特性(一):stream