json - 将 Angular 11 项目转换为 eslint 后出错
问题描述
我按照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 错误,因为文件在那里。
解决方案
推荐阅读
- ms-access - 请协助将用户的 Text34 值添加到 MS ACCESS 上的 thisParcel 表达式中。运行代码时出现 3075 运行时错误
- java - 获取注解泛型方法参数
- node.js - AWS Lambda 的 SQL Server 数据库访问问题
- verilog - Verilog inout 端口分配导致 X
- python - pyqtgraph 图像点选择
- reactjs - 当用户单击 React js 中的图像或 [] 图标时,如何在全屏中预览 swiper 幻灯片?
- json - 如何使用 JSON 请求 API 发送 Solr 空间查询
- javascript - 活动时将元素移动到视口
- r - 如何根据传递给 R 中函数的参数值重新评估因子中的元素?
- data-structures - 如何在数据库中使用归并排序算法