简体   繁体   English

在架构中找不到“tsconfig”-将 tslint 迁移到 eslint (Angular v11)

[英]'tsConfig' is not found in schema - Migrating tslint to eslint (Angular v11)

npx ng lint <projectName>

> nx run <projectName>:lint 
'tsConfig' is not found in schema

I used to do the Migration from tslint to eslint.我曾经做过从 tslint 到 eslint 的迁移。 I followed this article: https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration我关注了这篇文章: https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration

I don't know why I get this error.我不知道为什么我会收到这个错误。

Can anyone please help?有人可以帮忙吗?

I had the same sssue, and fixed it by change some lines in angular.json.我有同样的问题,并通过更改 angular.json 中的一些行来修复它。 I fixed it at options:我在选项中修复了它:

"architect": {
    "lint": {
      "builder": "@nrwl/linter:eslint",
      "options": {
        "tsConfig": [
          "libs/domain/tsconfig.lib.json",
          "libs/domain/tsconfig.spec.json"
        ],
        "exclude": ["**/node_modules/**", "!libs/backoffice-cockpit/domain/**/*"] 
      }
    }
}

i deleted the lines "tsConfig" & "exclude" and added:我删除了“tsConfig”和“exclude”行并添加了:

"lintFilePatterns": [
          "libs/domain/src/**/*.ts",
          "libs/domain/src/**/*.html"
        ]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 angular v11 + Scss 编译失败 - angular v11 + Scss failed to compile Angular V11:NullInjectorError:没有 ControlContainer 的提供程序 - Angular V11: NullInjectorError: No provider for ControlContainer Angular v8 到 v11 - 禁用常春藤的 entryComponents 问题 - Angular v8 to v11 - entryComponents issue with Ivy disabled 将 angular 更新到 v14 后,TSlint 规则变为 ESlint - TSlint rules to ESlint after update angular to v14 如何测试动态加载组件的 Angular (v11) 组件 - How test an Angular (v11) component that loads components dynamically 发生未处理的异常:无效的 lint 配置。 在 Angular 12 中将 Tslint 迁移到 eslint 后没有任何 lint - An unhandled exception occurred: invalid lint configuration. Nothing to lint after migrating Tslint to eslint in Angular 12 不支持:关键字“id”,使用“$id”作为模式 ID:TSLint(ng add @angular-eslint/schematics) - NOT SUPPORTED: keyword "id", use "$id" for schema ID : TSLint (ng add @angular-eslint/schematics) 从 TSLint 迁移到 ESLint 和 ESLint 导致解析错误:Unexpected token &lt; and does not check.ts files in angular v12 - Migrated from TSLint to ESLint and ESLint causes parsing error: Unexpected token < and does not check .ts files in angular v12 Angular 2+ (v11) 自动将 URL 中的片段 hash (#) 编码为 %23 - Angular 2+ (v11) automatically encode fragment hash (#) in URL into %23 如何解决这个错误? angular v11 原理图工作流程失败。 看上面 - How to solve this error ? angular v11 The Schematic workflow failed. See above
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM