diff --git a/.eslintrc.js b/.eslintrc.js index 21cb57c31e..ed0b098a2f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -27,12 +27,13 @@ module.exports = { // Forbid a module from importing itself 'import/no-self-import': 'error', - // Enable after https://github.com/benmosher/eslint-plugin-import/issues/1650 is fixed // Forbid the use of extraneous packages - // 'import/no-extraneous-dependencies': [ - // 'error', - // {devDependencies: ['**/*.test.js']} - // ] + 'import/no-extraneous-dependencies': [ + 'error', + { + devDependencies: ['**/*.test.js', '**/*.test.ts'], + }, + ], }, overrides: [ { diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 9a08965ffb..13df0602bc 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -34,11 +34,13 @@ }, "license": "MIT", "dependencies": { - "@commitlint/cli": "^11.0.0" + "@commitlint/cli": "^11.0.0", + "@commitlint/types": "^11.0.0" }, "devDependencies": { "@commitlint/test": "^11.0.0", - "@commitlint/utils": "^11.0.0" + "@commitlint/utils": "^11.0.0", + "execa": "^5.0.0" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" } diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index aef6281666..278a68231b 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -47,6 +47,7 @@ "@commitlint/lint": "^11.0.0", "@commitlint/load": "^11.0.0", "@commitlint/read": "^11.0.0", + "@commitlint/types": "^11.0.0", "get-stdin": "8.0.0", "lodash": "^4.17.19", "resolve-from": "5.0.0", diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 2f8fbded79..bbf2cf9aee 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -43,7 +43,7 @@ "@commitlint/execute-rule": "^11.0.0", "@commitlint/resolve-extends": "^11.0.0", "@commitlint/types": "^11.0.0", - "chalk": "4.1.0", + "chalk": "^4.0.0", "cosmiconfig": "^7.0.0", "lodash": "^4.17.19", "resolve-from": "^5.0.0" diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index 201986fba4..fc624eaab4 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -38,6 +38,7 @@ "@commitlint/utils": "^11.0.0" }, "dependencies": { + "@commitlint/types": "^11.0.0", "conventional-changelog-angular": "^5.0.11", "conventional-commits-parser": "^3.0.0" }, diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 9266b75a7d..43c7746fd2 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -41,6 +41,7 @@ }, "dependencies": { "@commitlint/load": "^11.0.0", + "@commitlint/types": "^11.0.0", "chalk": "^4.0.0", "lodash": "^4.17.19", "throat": "^5.0.0", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 2e85dfdf50..ec3dc30942 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -37,10 +37,12 @@ "@commitlint/test": "^11.0.0", "@commitlint/utils": "^11.0.0", "@types/fs-extra": "^9.0.1", - "@types/git-raw-commits": "^2.0.0" + "@types/git-raw-commits": "^2.0.0", + "execa": "^5.0.0" }, "dependencies": { "@commitlint/top-level": "^11.0.0", + "@commitlint/types": "^11.0.0", "fs-extra": "^9.0.0", "git-raw-commits": "^2.0.0" }, diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index c53bf93ea4..3973be3674 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -26,6 +26,9 @@ "email": "hello@herebecode.com" }, "license": "MIT", + "dependencies": { + "chalk": "^4.0.0" + }, "devDependencies": { "@commitlint/utils": "^11.0.0" }, diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 4e6834a5dc..8037e57acf 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -28,6 +28,7 @@ "license": "MIT", "dependencies": { "@types/tmp": "^0.2.0", + "jest-environment-node": "^26.6.2", "tmp": "0.2.1" }, "gitHead": "71f0194f33943954a8dac1c458be47e5049717cd" diff --git a/yarn.lock b/yarn.lock index 63473063de..7184e54906 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3033,14 +3033,6 @@ caseless@~0.12.0: resolved "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chalk@4.1.0, chalk@^4.0.0, chalk@^4.1.0: - version "4.1.0" - resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" - integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1: version "1.1.3" resolved "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -3069,6 +3061,14 @@ chalk@^3.0.0: ansi-styles "^4.1.0" supports-color "^7.1.0" +chalk@^4.0.0, chalk@^4.1.0: + version "4.1.0" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a" + integrity sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + char-regex@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf"