Skip to content

Commit

Permalink
build: 🛠 setup eslint dependency-checks rule
Browse files Browse the repository at this point in the history
  • Loading branch information
edbzn committed Aug 22, 2023
1 parent 40bc087 commit e9fe519
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
32 changes: 31 additions & 1 deletion packages/semver/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1 +1,31 @@
{ "extends": "../../.eslintrc.json", "ignorePatterns": ["!**/*", "node_modules"], "rules": {} }
{
"extends": "../../.eslintrc.json",
"ignorePatterns": ["!**/*", "node_modules"],
"overrides": [
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/nx-plugin-checks": "error",
"@nx/dependency-checks": [
"error",
{
"ignoredDependencies": [
"@types/conventional-changelog-config-spec",
"@nx/devkit",
"@nx/plugin",
"@nx/workspace",
"conventional-commits-parser",
"git-raw-commits",
"rimraf",
"tmp",
"git-semver-tags",
"semver",
"jest-extended"
]
}
]
}
}
]
}
3 changes: 2 additions & 1 deletion packages/semver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"migrations": "./migrations.json"
},
"peerDependencies": {
"@nx/devkit": "^16.0.0"
"@nx/devkit": "^16.0.0",
"tslib": "^2.3.0"
},
"dependencies": {
"chalk": "4.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/semver/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"packages/semver/**/*.ts"
"packages/semver/**/*.ts",
"packages/semver/**/*.json"
]
}
},
Expand All @@ -52,7 +53,6 @@
"tsConfig": "packages/semver/tsconfig.lib.json",
"packageJson": "packages/semver/package.json",
"main": "packages/semver/src/index.ts",
"updateBuildableProjectDepsInPackageJson": false,
"assets": [
"README.md",
"LICENSE",
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2279,6 +2279,7 @@ __metadata:
rxjs: 7.8.1
peerDependencies:
"@nx/devkit": ^16.0.0
tslib: ^2.3.0
languageName: unknown
linkType: soft

Expand Down

0 comments on commit e9fe519

Please sign in to comment.