Skip to content

Commit

Permalink
build(lint): update config to check dependencies
Browse files Browse the repository at this point in the history
* working locally
  • Loading branch information
HarshPatel5940 committed Jan 9, 2024
1 parent 4bfc998 commit 9701783
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
}
]
}
11 changes: 9 additions & 2 deletions apps/api-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
}
}
11 changes: 9 additions & 2 deletions apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
11 changes: 9 additions & 2 deletions apps/cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 9 additions & 2 deletions apps/web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
Expand Down
11 changes: 9 additions & 2 deletions packages/sdk-node/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9701783

Please sign in to comment.