我对打字稿有反应。
我正在尝试在项目中添加一些夹板,并且在毛绒过程中出现此错误
(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相同
根据此帖子我的陪同 https://gist.github.com/1natsu172/a65a4b45faed2bd3fa74b24163e4256e
答案 0 :(得分:1)
使用eslint src --ext .ts,.tsx
为我修复了该问题。
有关更多背景信息,请参见https://stackoverflow.com/a/43742235/691083。