[英]How to disable prettier error highlitings in vscode
I'm not sure what I did to trigger this prettier code formatting thing.我不确定我做了什么来触发这个更漂亮的代码格式化事情。 all I know is I opened up vscode to keep working on the same project I've been working on for months and all of a sudden I'm getting error messages and highlights about my double quotes and spacing.
我所知道的是我打开了 vscode 以继续从事我几个月来一直在从事的同一个项目,突然间我收到了关于我的双引号和间距的错误消息和高亮显示。
here is what I've tried.这是我尝试过的。 first i stumbled across an answer to a similar question and looked for a file named
.prettierrc
edited it and set everything to false.首先,我偶然发现了一个类似问题的答案,并查找了一个名为
.prettierrc
的文件,对其进行了编辑并将所有内容设置为 false。 When that didn't work i deleted the file all in all.当那不起作用时,我完全删除了文件。 Still nothing changed.
仍然没有任何改变。 Then tried looking for prettier settings based on another suggestion of go to file>preferences>settings and searching for prettier.that also didn't work, no search results related to prettier.
然后尝试根据 go 到文件>首选项>设置的另一个建议寻找更漂亮的设置并搜索更漂亮的设置。这也没有用,没有与更漂亮相关的搜索结果。 I've been back and forth with this and tried other suggestions on disabling prettier but none seem to work.
我一直在来回处理这个问题,并尝试了其他关于禁用更漂亮的建议,但似乎都没有奏效。
here is what almost worked.adding the lines rules: { 'prettier/prettier': 0, },
to.eslintrc.js but it still lives some warnings of missing semi colon
among a few others.这几乎是有效的。添加行
rules: { 'prettier/prettier': 0, },
to.eslintrc.js 但它仍然存在一些关于missing semi colon
的警告。
also I don't believe in need to edit any of the files that were initially available to remove something that initially wasn't我也不认为需要编辑任何最初可用的文件来删除最初没有的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.