npm run lint-staged throws the error:
C:\Users\user\src\myApp.eslintrc.js
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: .eslintrc.js.
The file must be included in at least one of the projects provided
yarn create umi myApp and select the options:npm run lint-stagednpm run lint-staged runs with no errors
-Ant Design Pro version: 4.0.0
-Umi version: 3.2.0
-Windows 10
在 tsconfig 中 include 一下 myApp.eslintrc.js
Solved by adding .eslintignore
/.
在 tsconfig 中 include 一下 myApp.eslintrc.js
在 tsconfig 中 include 之后,报错的文件更多了,怎么解决?
在 tsconfig 中 include 一下 myApp.eslintrc.js
我也没解决,报错更多了
Most helpful comment
在 tsconfig 中 include 一下 myApp.eslintrc.js