[英]visual studio warning: (ESLint) Failed to load config "defaults/configurations/eslint" to extend from. Referenced from C:\Users\{username}\.eslintrc
In Visual Studio 2019 Community ver.在 Visual Studio 2019 社区版中。 16.5.4 there are warnings displayed for typescript files with import and export declarations.
16.5.4 对带有进出口声明的 typescript 文件显示警告。
Warnings are not shown if files are not opened.如果未打开文件,则不会显示警告。 But when I open a typescript file, then warning apears.
但是当我打开 typescript 文件时,会出现警告。
It is a starter template of angular 9. I added to it a few packages (bootstrap, jwt-decode, fontawesome, jquery, popper.js)它是 angular 9 的入门模板。我添加了几个包(bootstrap、jwt-decode、fontawesome、jquery、popper.js)
Visual Studio's ESLinter is attempting to load a global config file that is referenced in C:\Users\Adam - go there and look for a file named .eslintrc
. Visual Studio 的 ESLinter 正在尝试加载C:\Users\Adam - go 中引用的全局配置文件并查找名为
.eslintrc
的文件。 You may remove it.你可以删除它。
After you remove it I believe VS will use it's default ESLint config and you may see warnings that apply to Typescript but don't really make sense in the context of Angular.删除它后,我相信 VS 会使用它的默认 ESLint 配置,您可能会看到适用于 Typescript 但在 Angular 的上下文中没有意义的警告。
If you want to disable ESLint entirely for that project in VS:如果你想在 VS 中完全禁用该项目的 ESLint:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.