[英]Remove squiggly lines from displaying for Prettier/ESlint
How to remove squiggly lines from showing on VS Code for ESlint & Prettier setup.如何从 VS Code 中删除显示在 ESlint & Prettier 设置中的波浪线。 I want ESlint to do its work, format and fix errors on save but don't want to see the squiggly lines.
我希望 ESlint 在保存时完成它的工作、格式化和修复错误,但不想看到波浪线。 Not sure if its even possible as I couldn't find any info on this.
不确定它是否可能,因为我找不到任何有关此的信息。 Looks like Prettier is causing all the unwanted squiggly lines
看起来 Prettier 导致了所有不需要的波浪线
See this answer here .在这里看到这个答案。 You edit
settings.json
and set "eslint.enable": false
in VS Code.您编辑
settings.json
并在 VS Code 中设置"eslint.enable": false
。 There is an extension that does it too.有一个扩展也可以做到这一点。
This disables it in VS Code.这会在 VS Code 中禁用它。 Then you run eslint as a background task using https://www.npmjs.com/package/eslint-watch or similar.
然后您使用https://www.npmjs.com/package/eslint-watch或类似工具将 eslint 作为后台任务运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.