您当前的位置: 首页 > 

大前端之旅

暂无认证

  • 4浏览

    0关注

    403博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

关于vue使用eslint规范报Trailing Spaces not Allowed错误解决办法!

大前端之旅 发布时间:2021-05-04 22:56:45 ,浏览量:4

Always Getting an Error of “Trailing Spaces not Allowed” in VueJS(在Vue中总会出现“不允许尾随空格”错误)

我认为这是一个vscode问题。请尝试以下方法:

  1. 在vscode中转到设置(ctrl +,)
  2. 在设置搜索栏中 type “trim trailing whitespace”
  3. 在下面选中 “trim trailing whitespace” option.
  4. 重新启动vscode。
  5. 现在,无论何时保存文件,vscode都会自动修剪尾随空格。

我是这样解决的,大家可以试一下

或者项目下:执行

npm run lint -- --fix
关注
打赏
1660524863
查看更多评论
立即登录/注册

微信扫码登录

0.0362s