Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
294 views
in Technique[技术] by (71.8m points)

vscode不显示eslint错误

刚才用create-react-app创建了一个项目,发现没有波浪线错误提示了?打开之前创建的其它项目还是有提示的。

ps:这两个项目根目录都没有.eslintrc文件,都是通过create-react-app创建的,只是时间不同。

image.png
image.png

--- 20200520 补充 ---

验证了好久,发现用vscode同时打开多个项目会出现此问题。从第2个项目开始就没有eslint提示了。不知道是出于性能考虑特地优化的,还是bug。

image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

解决了,我太难了

{
  "eslint.workingDirectories": [
    "./app/",
    "./my-app/",
    "./my-app2/"
  ]
}

https://marketplace.visualstu...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...