From e9fe5199792562f0199b2461df0f4bd6d38fe23d Mon Sep 17 00:00:00 2001 From: Edouard Bozon Date: Tue, 22 Aug 2023 10:25:16 +0200 Subject: [PATCH] =?UTF-8?q?build:=20=F0=9F=9B=A0=20setup=20eslint=20depend?= =?UTF-8?q?ency-checks=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/semver/.eslintrc.json | 32 +++++++++++++++++++++++++++++++- packages/semver/package.json | 3 ++- packages/semver/project.json | 4 ++-- yarn.lock | 1 + 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/packages/semver/.eslintrc.json b/packages/semver/.eslintrc.json index 4ec7a9f25..434872c1c 100644 --- a/packages/semver/.eslintrc.json +++ b/packages/semver/.eslintrc.json @@ -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" + ] + } + ] + } + } + ] +} diff --git a/packages/semver/package.json b/packages/semver/package.json index d0ebb1033..6b83b4444 100644 --- a/packages/semver/package.json +++ b/packages/semver/package.json @@ -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", diff --git a/packages/semver/project.json b/packages/semver/project.json index 585bf1610..f47b8e7ba 100644 --- a/packages/semver/project.json +++ b/packages/semver/project.json @@ -34,7 +34,8 @@ "executor": "@nrwl/linter:eslint", "options": { "lintFilePatterns": [ - "packages/semver/**/*.ts" + "packages/semver/**/*.ts", + "packages/semver/**/*.json" ] } }, @@ -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", diff --git a/yarn.lock b/yarn.lock index 78ab5a653..d4c50abb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2279,6 +2279,7 @@ __metadata: rxjs: 7.8.1 peerDependencies: "@nx/devkit": ^16.0.0 + tslib: ^2.3.0 languageName: unknown linkType: soft