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

Viewed 800
1 Answers

I had the same sssue, and fixed it by change some lines in 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:

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