我按照Angular 的步骤将我们的代码库更新为 Eslint
除了现在我所有的 TS 文件在 VSCode 中都有这个错误:
Parsing error: Cannot read {file '/users/steve/github/myproject/tsconfig.json'.
与主要进口一致
项目结构是这样的(简化):
- package.json
- .eslintrc.json
- client
- tsconfig.json
- package.json
- .eslintrc.json
- angular.json
- projects
--someotherproject
- src
- app
- [all of the main app's code]
当我运行时ng lint myproject,我会收到我希望看到的 eslint/prettier 警告。我仍然收到不推荐使用 tslint 并更新到 eslint 的提示。
我没有收到 tslint.config 错误,因为文件在那里。
