react typescript eslint插件-文件(.svg)的扩展名是非标准的

react typescript eslint插件-文件(.svg)的扩展名是非标准的,typescript,eslint,Typescript,Eslint,我对打字脚本有反应 我正在尝试向我的项目中添加一些eslint,但在使用纱线lint时出现了此错误 (eslint src/**--ext.ts、.tsx”) 我在css上也遇到了一些错误 0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser. The file does not match your project config: src/logo.svg.

我对打字脚本有反应

我正在尝试向我的项目中添加一些eslint,但在使用纱线lint时出现了此错误

(eslint src/**--ext.ts、.tsx”)

我在css上也遇到了一些错误

  0:0  error  Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src/logo.svg.
The extension for the file (.svg) is non-standard. You should add "parserOptions.extraFileExtensions" to your config
与.css相同

我的eslint基于这篇文章 使用
eslint src--ext.ts、.tsx为我修复了它

有关更多背景信息,请参阅