diff --git a/.eslintrc.json b/.eslintrc.json index 9f9ac4be..f3f431e9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -42,6 +42,20 @@ "jest": true }, "rules": {} + }, + { + "files": ["{package,project}.json"], + "parser": "jsonc-eslint-parser", + "rules": { + "@nx/dependency-checks": [ + "warn", + { + "checkMissingDependencies": true, + "checkObsoleteDependencies": true, + "checkVersionMismatches": true + } + ] + } } ] } diff --git a/apps/api-e2e/project.json b/apps/api-e2e/project.json index b3ac0470..062eec11 100644 --- a/apps/api-e2e/project.json +++ b/apps/api-e2e/project.json @@ -13,8 +13,15 @@ } }, "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/api-e2e/**/*.ts", + "apps/api-e2e/package.json", + "apps/api-e2e/project.json" + ] + } } } } diff --git a/apps/api/project.json b/apps/api/project.json index 3a3b524d..ac19b83e 100644 --- a/apps/api/project.json +++ b/apps/api/project.json @@ -38,8 +38,15 @@ } }, "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/api/**/*.ts", + "apps/api/package.json", + "apps/api/project.json" + ] + } }, "prettier:fix": { "command": "pnpx prettier -w .", diff --git a/apps/cli/project.json b/apps/cli/project.json index 403573cf..6b4369f0 100644 --- a/apps/cli/project.json +++ b/apps/cli/project.json @@ -15,8 +15,15 @@ } }, "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/cli/**/*.ts", + "apps/cli/package.json", + "apps/cli/project.json" + ] + } }, "test": { "executor": "@nx/jest:jest", diff --git a/apps/web/project.json b/apps/web/project.json index 1319f712..87cef463 100644 --- a/apps/web/project.json +++ b/apps/web/project.json @@ -45,8 +45,15 @@ } }, "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "apps/web/**/*.ts", + "apps/web/package.json", + "apps/web/project.json" + ] + } } }, "tags": [] diff --git a/packages/sdk-node/project.json b/packages/sdk-node/project.json index 2097c01b..1a787f4c 100644 --- a/packages/sdk-node/project.json +++ b/packages/sdk-node/project.json @@ -15,8 +15,15 @@ } }, "lint": { - "executor": "@nx/eslint:lint", - "outputs": ["{options.outputFile}"] + "executor": "@nx/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "packages/sdk-node/**/*.ts", + "packages/sdk-node/package.json", + "packages/sdk-node/project.json" + ] + } }, "test": { "executor": "@nx/jest:jest",