簡體   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

我曾經做過從 tslint 到 eslint 的遷移。 我關注了這篇文章: https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration

我不知道為什么我會收到這個錯誤。

有人可以幫忙嗎?

我有同樣的問題,並通過更改 angular.json 中的一些行來修復它。 我在選項中修復了它:

"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/**/*"] 
      }
    }
}

我刪除了“tsConfig”和“exclude”行並添加了:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM