Use // eslint-disable-next-line to ignore the next line.解决办法

npm start 启动服务的时候,出现了一下报错:

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
都是因为开启了eslint 编码规范检查


You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
 


解决办法:

1.找到webpack.base.conf.js文件:

找到这行代码注释掉就可以了!!


 //...(config.dev.useEslint ? [createLintingRule()] : []),
示例如下:

Use // eslint-disable-next-line to ignore the next line.解决办法

 2.npm start 执行之后就正常运行了!!
————————————————
版权声明:本文为****博主「S筱潇S四维Smile」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.****.net/qq_29483485/article/details/83062765