Closed HaasStefan closed 2 years ago
I have a Monorepo with Angular libraries and projects. I tried to run nx lint on a library that should actually have linting issues, but the linting command passes.
nx lint
.eslintrc.json
{ "root": true, "ignorePatterns": ["**/*"], "plugins": ["@nrwl/nx"], "overrides": [ { "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "rules": { "@nrwl/nx/enforce-module-boundaries": [ "error", { "enforceBuildableLibDependency": true, "allow": [], "depConstraints": [ { "sourceTag": "common:shared", "onlyDependOnLibsWithTags": [ ] }, { "sourceTag": "common:table", "onlyDependOnLibsWithTags": [ "common:shared" ] } ] } ] } }, { "files": ["*.ts", "*.tsx"], "extends": ["plugin:@nrwl/nx/typescript"], "rules": {} }, { "files": ["*.js", "*.jsx"], "extends": ["plugin:@nrwl/nx/javascript"], "rules": {} } ] }
project.json (common-table)
{ "$schema": "../../../node_modules/nx/schemas/project-schema.json", "projectType": "library", "sourceRoot": "libs/common/table/src", "prefix": "table", "targets": { "test": { "executor": "@nrwl/jest:jest", "outputs": [ "coverage/libs/common/table" ], "options": { "jestConfig": "libs/common/table/jest.config.ts", "passWithNoTests": true } }, "lint": { "executor": "@nrwl/linter:eslint", "options": { "lintFilePatterns": [ "libs/common/table/**/*.ts", "libs/common/table/**/*.html" ] } } }, "tags": [ "scope:common", "common:table" ] }
.eslintrc.json (common-table)
{ "extends": ["../../../.eslintrc.json"], "ignorePatterns": ["!**/*"], "overrides": [ { "files": ["*.ts"], "extends": [ "plugin:@nrwl/nx/angular", "plugin:@angular-eslint/template/process-inline-templates" ], "rules": { "@angular-eslint/directive-selector": [ "error", { "type": "attribute", "prefix": "table", "style": "camelCase" } ], "@angular-eslint/component-selector": [ "error", { "type": "element", "prefix": "table", "style": "kebab-case" } ] } }, { "files": ["*.html"], "extends": ["plugin:@nrwl/nx/angular-template"], "rules": {} } ] }
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
I have a Monorepo with Angular libraries and projects. I tried to run
nx lint
on a library that should actually have linting issues, but the linting command passes..eslintrc.json
project.json (common-table)
.eslintrc.json (common-table)