From 29c814a5ae2467e06db7d8b1775f5a8b8e648b17 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Mon, 13 Jul 2020 12:03:27 +0800 Subject: [PATCH 001/567] test(cli): update help output to 9.1.2 --- @commitlint/cli/src/cli.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@commitlint/cli/src/cli.test.ts b/@commitlint/cli/src/cli.test.ts index b19177c6e8..10f397cf4f 100644 --- a/@commitlint/cli/src/cli.test.ts +++ b/@commitlint/cli/src/cli.test.ts @@ -432,7 +432,7 @@ test('should print help', async () => { const cwd = await gitBootstrap('fixtures/default'); const actual = await cli(['--help'], {cwd})(); expect(actual.stdout).toMatchInlineSnapshot(` - "@commitlint/cli@9.1.1 - Lint your commit messages + "@commitlint/cli@9.1.2 - Lint your commit messages [input] reads from stdin if --edit, --env, --from and --to are omitted From 751f39f284ef232574a176c3c11b1982ee544166 Mon Sep 17 00:00:00 2001 From: hannes Date: Tue, 14 Jul 2020 11:00:25 +0800 Subject: [PATCH 002/567] refactor!: drop support for node 8 (#1999) * refactor!: drop support for node 8 BREAKING CHANGE: remove node 8 from circle-ci checks also remove node 13 because we do not support experimental versions * docs: update node v10 to latest LTS 10 version Co-authored-by: Cedric van Putten Co-authored-by: Cedric van Putten --- .circleci/config.yml | 12 ------------ @alias/commitlint-config-angular/package.json | 2 +- @alias/commitlint-config-lerna-scopes/package.json | 2 +- @alias/commitlint-config-patternplate/package.json | 2 +- @alias/commitlint/package.json | 2 +- @commitlint/cli/package.json | 2 +- @commitlint/config-angular-type-enum/package.json | 2 +- @commitlint/config-angular/package.json | 2 +- @commitlint/config-conventional/package.json | 2 +- @commitlint/config-lerna-scopes/package.json | 2 +- @commitlint/config-patternplate/package.json | 2 +- @commitlint/core/package.json | 2 +- @commitlint/ensure/package.json | 2 +- @commitlint/execute-rule/package.json | 2 +- @commitlint/format/package.json | 2 +- @commitlint/is-ignored/package.json | 2 +- @commitlint/lint/package.json | 2 +- @commitlint/load/package.json | 2 +- @commitlint/message/package.json | 2 +- @commitlint/parse/package.json | 2 +- @commitlint/prompt-cli/package.json | 2 +- @commitlint/prompt/package.json | 2 +- @commitlint/read/package.json | 2 +- @commitlint/resolve-extends/package.json | 2 +- @commitlint/rules/package.json | 2 +- @commitlint/to-lines/package.json | 2 +- @commitlint/top-level/package.json | 2 +- @commitlint/travis-cli/package.json | 2 +- @commitlint/types/package.json | 2 +- @packages/babel-preset-commitlint/package.json | 2 +- @packages/test-environment/package.json | 2 +- @packages/test/package.json | 2 +- @packages/utils/package.json | 2 +- README.md | 2 +- package.json | 2 +- 35 files changed, 34 insertions(+), 46 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index efaff23490..85b48d6452 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -76,11 +76,6 @@ commands: - build - test jobs: - v8: - docker: - - image: node:8 - steps: - - run-tests v10: docker: - image: node:10 @@ -91,11 +86,6 @@ jobs: - image: node:12 steps: - run-all - v13: - docker: - - image: node:13 - steps: - - run-all v14: docker: - image: node:14 @@ -109,9 +99,7 @@ jobs: workflows: node: jobs: - - v8 - v10 - v12 - - v13 - v14 - windows-v12 diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index 8fdcc09747..35361d386c 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "dependencies": { "@commitlint/config-angular": "^9.1.2" diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json index 3c0dfca1bb..50fd8bbece 100644 --- a/@alias/commitlint-config-lerna-scopes/package.json +++ b/@alias/commitlint-config-lerna-scopes/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "dependencies": { "@commitlint/config-lerna-scopes": "^9.1.2" diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index d0939cf123..459748b021 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "dependencies": { "@commitlint/config-patternplate": "^9.1.2" diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index 4d9f2eaa03..e4009cd9c7 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 94b16920c6..ed97530910 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -15,7 +15,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json index cc89a9ad12..9b1b9de520 100644 --- a/@commitlint/config-angular-type-enum/package.json +++ b/@commitlint/config-angular-type-enum/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "devDependencies": { "@commitlint/utils": "^9.1.2" diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index 90ffca5c5f..e429c81cca 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "devDependencies": { "@commitlint/utils": "^9.1.2" diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index cacb17a39f..5828af71e3 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "devDependencies": { "@commitlint/lint": "^9.1.2", diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index 0bdeba04e5..7dfe3d034d 100644 --- a/@commitlint/config-lerna-scopes/package.json +++ b/@commitlint/config-lerna-scopes/package.json @@ -29,7 +29,7 @@ "lerna": "^2.0.0 || ^3.0.0" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "dependencies": { "import-from": "3.0.0", diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index 3630dcd285..e2adc98a27 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "dependencies": { "@commitlint/config-angular": "^9.1.2", diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 72319906de..9358af4476 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index e9ee24f0ee..393f99da1c 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/execute-rule/package.json b/@commitlint/execute-rule/package.json index b1fcdd2ba7..25396cb8b5 100644 --- a/@commitlint/execute-rule/package.json +++ b/@commitlint/execute-rule/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json index 28caf017e8..e354d97c02 100644 --- a/@commitlint/format/package.json +++ b/@commitlint/format/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index 5c1e7a2bfa..e8077bb3b2 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index 340e268012..fdb2559fc8 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 36f4f3c81e..da3aaf051c 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/message/package.json b/@commitlint/message/package.json index c89296f17f..cf316699eb 100644 --- a/@commitlint/message/package.json +++ b/@commitlint/message/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index 6515448196..f603c2a427 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 507fe5abb0..e09ca5c7ef 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "devDependencies": { "@commitlint/test": "^9.1.2", diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index dd9068a1d0..79dee75476 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -45,7 +45,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "devDependencies": { "@babel/cli": "^7.7.7", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index d0a8ff065a..0dc0416d39 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index d3cf7adafc..c20bea7cbd 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index b6c160682d..f3fe46eb12 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/to-lines/package.json b/@commitlint/to-lines/package.json index 7c183d76fe..68fe101ab4 100644 --- a/@commitlint/to-lines/package.json +++ b/@commitlint/to-lines/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/top-level/package.json b/@commitlint/top-level/package.json index 1553b240ec..91917e77fb 100644 --- a/@commitlint/top-level/package.json +++ b/@commitlint/top-level/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 329c4271d2..7b7ff62c92 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -24,7 +24,7 @@ ] }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index b163f5edea..c2bdeaa187 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -11,7 +11,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@packages/babel-preset-commitlint/package.json b/@packages/babel-preset-commitlint/package.json index c83d9b3e3a..af920d6ba9 100644 --- a/@packages/babel-preset-commitlint/package.json +++ b/@packages/babel-preset-commitlint/package.json @@ -8,7 +8,7 @@ "index.js" ], "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 877d6bd299..3975755455 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@packages/test/package.json b/@packages/test/package.json index f3a010ab1a..91389f7820 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/@packages/utils/package.json b/@packages/utils/package.json index 6306889524..878ee8a09f 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -16,7 +16,7 @@ "pkg": "node pkg-check.js --skip-main" }, "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", diff --git a/README.md b/README.md index fd0d9e541d..a3821c56a5 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ is room and need for improvement. The items on the roadmap should enhance `commi ## Version Support -- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 8` +- Node.js [LTS](https://github.com/nodejs/LTS#lts-schedule) `>= 10.21.0` - git `>= 2.13.2` ## Related projects diff --git a/package.json b/package.json index 85d3f0f5d3..4530b6a6d5 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@packages/*" ], "engines": { - "node": ">=v8.17.0" + "node": ">=v10.21.0" }, "repository": { "type": "git", From 4c5994fbc1457b68a932446d7d0d86cce8652931 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 11:10:39 +0800 Subject: [PATCH 003/567] chore: update dependency ts-jest to v26.1.2 (#2000) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 49 +++++++++++++++++++++++++++++++++++-------------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 4530b6a6d5..3b2bb18fe2 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "lerna-v3": "npm:lerna@3", "lint-staged": "10.2.11", "prettier": "1.17.1", - "ts-jest": "26.1.1", + "ts-jest": "26.1.2", "typescript": "3.8.2" }, "husky": { diff --git a/yarn.lock b/yarn.lock index e04d44c23d..e5981ad8a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1338,6 +1338,16 @@ "@types/yargs" "^15.0.0" chalk "^3.0.0" +"@jest/types@^26.1.0": + version "26.1.0" + resolved "https://registry.npmjs.org/@jest/types/-/types-26.1.0.tgz#f8afaaaeeb23b5cad49dd1f7779689941dcb6057" + integrity sha512-GXigDDsp6ZlNMhXQDeuy/iYCDsRIHJabWtDzvnn36+aqFfG14JmFV0e/iXxY4SP9vbXSiPNOWdehU5MeqrYHBQ== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + "@lerna/add@3.20.0": version "3.20.0" resolved "https://registry.npmjs.org/@lerna/add/-/add-3.20.0.tgz#bea7edf36fc93fb72ec34cb9ba854c48d4abf309" @@ -5818,7 +5828,7 @@ got@^9.6.0: to-readable-stream "^1.0.0" url-parse-lax "^3.0.0" -graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0: +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4: version "4.2.4" resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== @@ -6966,6 +6976,17 @@ jest-snapshot@^25.1.0: pretty-format "^25.1.0" semver "^7.1.1" +jest-util@26.x: + version "26.1.0" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-26.1.0.tgz#80e85d4ba820decacf41a691c2042d5276e5d8d8" + integrity sha512-rNMOwFQevljfNGvbzNQAxdmXQ+NawW/J72dmddsK0E8vgxXCMtwQ/EH0BiWEIxh0hhMcTsxwAxINt7Lh46Uzbg== + dependencies: + "@jest/types" "^26.1.0" + chalk "^4.0.0" + graceful-fs "^4.2.4" + is-ci "^2.0.0" + micromatch "^4.0.2" + jest-util@^25.1.0: version "25.1.0" resolved "https://registry.npmjs.org/jest-util/-/jest-util-25.1.0.tgz#7bc56f7b2abd534910e9fa252692f50624c897d9" @@ -7739,14 +7760,6 @@ merge@^1.2.1: resolved "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145" integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ== -micromatch@4.x, micromatch@^4.0.2: - version "4.0.2" - resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" - integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== - dependencies: - braces "^3.0.1" - picomatch "^2.0.5" - micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" @@ -7766,6 +7779,14 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: snapdragon "^0.8.1" to-regex "^3.0.2" +micromatch@^4.0.2: + version "4.0.2" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" + integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== + dependencies: + braces "^3.0.1" + picomatch "^2.0.5" + mime-db@1.42.0: version "1.42.0" resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz#3e252907b4c7adb906597b4b65636272cf9e7bac" @@ -10535,18 +10556,18 @@ trim-off-newlines@^1.0.0: resolved "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= -ts-jest@26.1.1: - version "26.1.1" - resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.1.tgz#b98569b8a4d4025d966b3d40c81986dd1c510f8d" - integrity sha512-Lk/357quLg5jJFyBQLnSbhycnB3FPe+e9i7ahxokyXxAYoB0q1pPmqxxRPYr4smJic1Rjcf7MXDBhZWgxlli0A== +ts-jest@26.1.2: + version "26.1.2" + resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.2.tgz#dd2e832ffae9cb803361483b6a3010a6413dc475" + integrity sha512-V4SyBDO9gOdEh+AF4KtXJeP+EeI4PkOrxcA8ptl4o8nCXUVM5Gg/8ngGKneS5BsZaR9DXVQNqj9k+iqGAnpGow== dependencies: bs-logger "0.x" buffer-from "1.x" fast-json-stable-stringify "2.x" + jest-util "26.x" json5 "2.x" lodash.memoize "4.x" make-error "1.x" - micromatch "4.x" mkdirp "1.x" semver "7.x" yargs-parser "18.x" From f94a5c82861523aa1cf407ffe062f99ecbbfb4e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 13:13:53 +0800 Subject: [PATCH 004/567] fix: update dependency get-stdin to v8 (#1938) Co-authored-by: Renovate Bot --- @commitlint/cli/package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index ed97530910..8cb92a5cde 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -54,7 +54,7 @@ "@commitlint/read": "^9.1.2", "chalk": "4.1.0", "core-js": "^3.6.1", - "get-stdin": "7.0.0", + "get-stdin": "8.0.0", "lodash": "^4.17.19", "resolve-from": "5.0.0", "resolve-global": "1.0.0", diff --git a/yarn.lock b/yarn.lock index e5981ad8a2..e3855942a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5535,10 +5535,10 @@ get-port@^5.0.0: resolved "https://registry.npmjs.org/get-port/-/get-port-5.1.1.tgz#0469ed07563479de6efb986baf053dcd7d4e3193" integrity sha512-g/Q1aTSDOxFpchXC4i8ZWvxA1lnPqx/JHqcpIw0/LX9T8x/GBbi6YnlN5nhaKIFkT8oFsscUKgDJYxfwfS6QsQ== -get-stdin@7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-7.0.0.tgz#8d5de98f15171a125c5e516643c7a6d0ea8a96f6" - integrity sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ== +get-stdin@8.0.0: + version "8.0.0" + resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53" + integrity sha512-sY22aA6xchAzprjyqmSEQv4UbAAzRN0L2dQB0NlN5acTTK9Don6nhoc3eAbUnpZiCANAMfd/+40kVdKfFygohg== get-stdin@^4.0.1: version "4.0.1" From 2df49fac907993ae78199a1012e918b0e2ff5621 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 13:14:11 +0800 Subject: [PATCH 005/567] fix: update dependency fs-extra to v9 (#1018) Co-authored-by: Renovate Bot --- @commitlint/cli/package.json | 2 +- @commitlint/read/package.json | 4 ++-- @packages/test/package.json | 4 ++-- yarn.lock | 37 +++++++++++++++++++++++++++++++---- 4 files changed, 38 insertions(+), 9 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 8cb92a5cde..186546a012 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -44,7 +44,7 @@ "babel-preset-commitlint": "^9.1.2", "cross-env": "7.0.2", "execa": "^3.4.0", - "fs-extra": "^8.1.0" + "fs-extra": "^9.0.0" }, "dependencies": { "@babel/runtime": "^7.9.6", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 0dc0416d39..5250ebb0d9 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -36,12 +36,12 @@ "devDependencies": { "@commitlint/test": "^9.1.2", "@commitlint/utils": "^9.1.2", - "@types/fs-extra": "^8.0.1", + "@types/fs-extra": "^9.0.0", "@types/git-raw-commits": "^2.0.0" }, "dependencies": { "@commitlint/top-level": "^9.1.2", - "fs-extra": "^8.1.0", + "fs-extra": "^9.0.0", "git-raw-commits": "^2.0.0" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" diff --git a/@packages/test/package.json b/@packages/test/package.json index 91389f7820..da5bba4a92 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -30,10 +30,10 @@ }, "license": "MIT", "dependencies": { - "@types/fs-extra": "^8.0.1", + "@types/fs-extra": "^9.0.0", "@types/tmp": "^0.2.0", "execa": "^3.4.0", - "fs-extra": "^8.1.0", + "fs-extra": "^9.0.0", "pkg-dir": "4.2.0", "resolve-pkg": "2.0.0", "tmp": "0.2.1" diff --git a/yarn.lock b/yarn.lock index e3855942a3..1621ef491a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2517,10 +2517,10 @@ resolved "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g== -"@types/fs-extra@^8.0.1": - version "8.0.1" - resolved "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.0.1.tgz#a2378d6e7e8afea1564e44aafa2e207dadf77686" - integrity sha512-J00cVDALmi/hJOYsunyT52Hva5TnJeKP5yd1r+mH/ZU0mbYZflR0Z5kw5kITtKTRYMhm1JMClOFYdHnQszEvqw== +"@types/fs-extra@^9.0.0": + version "9.0.1" + resolved "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.1.tgz#91c8fc4c51f6d5dbe44c2ca9ab09310bd00c7918" + integrity sha512-B42Sxuaz09MhC3DDeW5kubRcQ5by4iuVQ0cRRWM2lggLzAa/KVom0Aft/208NgMvNQQZ86s5rVcqDdn/SH0/mg== dependencies: "@types/node" "*" @@ -3075,6 +3075,11 @@ asynckit@^0.4.0: resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + atob-lite@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696" @@ -5415,6 +5420,16 @@ fs-extra@^4.0.1: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@^9.0.0: + version "9.0.1" + resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc" + integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^1.0.0" + fs-minipass@^1.2.5: version "1.2.7" resolved "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" @@ -7156,6 +7171,15 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" +jsonfile@^6.0.1: + version "6.0.1" + resolved "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179" + integrity sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg== + dependencies: + universalify "^1.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsonparse@^1.2.0: version "1.3.1" resolved "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -10751,6 +10775,11 @@ universalify@^0.1.0: resolved "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" + integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== + unpipe@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" From be9a349ca80b64fc950eb899bb195330c5554d1d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 13:14:26 +0800 Subject: [PATCH 006/567] chore: update typescript-eslint monorepo to v3.6.1 (#2002) Co-authored-by: Renovate Bot --- yarn.lock | 60 +++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1621ef491a..f4baf55390 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2638,25 +2638,25 @@ "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^3.0.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.0.tgz#ba2b6cae478b8fca3f2e58ff1313e4198eea2d8a" - integrity sha512-ubHlHVt1lsPQB/CZdEov9XuOFhNG9YRC//kuiS1cMQI6Bs1SsqKrEmZnpgRwthGR09/kEDtr9MywlqXyyYd8GA== + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.1.tgz#5ced8fd2087fbb83a76973dea4a0d39d9cb4a642" + integrity sha512-06lfjo76naNeOMDl+mWG9Fh/a0UHKLGhin+mGaIw72FUMbMGBkdi/FEJmgEDzh4eE73KIYzHWvOCYJ0ak7nrJQ== dependencies: - "@typescript-eslint/experimental-utils" "3.6.0" + "@typescript-eslint/experimental-utils" "3.6.1" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@3.6.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.0.tgz#0138152d66e3e53a6340f606793fb257bf2d76a1" - integrity sha512-4Vdf2hvYMUnTdkCNZu+yYlFtL2v+N2R7JOynIOkFbPjf9o9wQvRwRkzUdWlFd2YiiUwJLbuuLnl5civNg5ykOQ== +"@typescript-eslint/experimental-utils@3.6.1": + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.1.tgz#b5a2738ebbceb3fa90c5b07d50bb1225403c4a54" + integrity sha512-oS+hihzQE5M84ewXrTlVx7eTgc52eu+sVmG7ayLfOhyZmJ8Unvf3osyFQNADHP26yoThFfbxcibbO0d2FjnYhg== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.6.0" - "@typescript-eslint/typescript-estree" "3.6.0" + "@typescript-eslint/types" "3.6.1" + "@typescript-eslint/typescript-estree" "3.6.1" eslint-scope "^5.0.0" eslint-utils "^2.0.0" @@ -2671,20 +2671,20 @@ eslint-utils "^2.0.0" "@typescript-eslint/parser@^3.0.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.0.tgz#79b5232e1a2d06f1fc745942b690cd87aca7b60e" - integrity sha512-taghDxuLhbDAD1U5Fk8vF+MnR0yiFE9Z3v2/bYScFb0N1I9SK8eKHkdJl1DAD48OGFDMFTeOTX0z7g0W6SYUXw== + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.1.tgz#216e8adf4ee9c629f77c985476a2ea07fb80e1dc" + integrity sha512-SLihQU8RMe77YJ/jGTqOt0lMq7k3hlPVfp7v/cxMnXA9T0bQYoMDfTsNgHXpwSJM1Iq2aAJ8WqekxUwGv5F67Q== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.6.0" - "@typescript-eslint/types" "3.6.0" - "@typescript-eslint/typescript-estree" "3.6.0" + "@typescript-eslint/experimental-utils" "3.6.1" + "@typescript-eslint/types" "3.6.1" + "@typescript-eslint/typescript-estree" "3.6.1" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/types@3.6.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.0.tgz#4bd6eee55d2f9d35a4b36c4804be1880bf68f7bc" - integrity sha512-JwVj74ohUSt0ZPG+LZ7hb95fW8DFOqBuR6gE7qzq55KDI3BepqsCtHfBIoa0+Xi1AI7fq5nCu2VQL8z4eYftqg== +"@typescript-eslint/types@3.6.1": + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.1.tgz#87600fe79a1874235d3cc1cf5c7e1a12eea69eee" + integrity sha512-NPxd5yXG63gx57WDTW1rp0cF3XlNuuFFB5G+Kc48zZ+51ZnQn9yjDEsjTPQ+aWM+V+Z0I4kuTFKjKvgcT1F7xQ== "@typescript-eslint/typescript-estree@2.34.0": version "2.34.0" @@ -2699,13 +2699,13 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/typescript-estree@3.6.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.0.tgz#9b4cab43f1192b64ff51530815b8919f166ce177" - integrity sha512-G57NDSABHjvob7zVV09ehWyD1K6/YUKjz5+AufObFyjNO4DVmKejj47MHjVHHlZZKgmpJD2yyH9lfCXHrPITFg== +"@typescript-eslint/typescript-estree@3.6.1": + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.1.tgz#a5c91fcc5497cce7922ff86bc37d5e5891dcdefa" + integrity sha512-G4XRe/ZbCZkL1fy09DPN3U0mR6SayIv1zSeBNquRFRk7CnVLgkC2ZPj8llEMJg5Y8dJ3T76SvTGtceytniaztQ== dependencies: - "@typescript-eslint/types" "3.6.0" - "@typescript-eslint/visitor-keys" "3.6.0" + "@typescript-eslint/types" "3.6.1" + "@typescript-eslint/visitor-keys" "3.6.1" debug "^4.1.1" glob "^7.1.6" is-glob "^4.0.1" @@ -2713,10 +2713,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.6.0": - version "3.6.0" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.0.tgz#44185eb0cc47651034faa95c5e2e8b314ecebb26" - integrity sha512-p1izllL2Ubwunite0ITjubuMQRBGgjdVYwyG7lXPX8GbrA6qF0uwSRz9MnXZaHMxID4948gX0Ez8v9tUDi/KfQ== +"@typescript-eslint/visitor-keys@3.6.1": + version "3.6.1" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.1.tgz#5c57a7772f4dd623cfeacc219303e7d46f963b37" + integrity sha512-qC8Olwz5ZyMTZrh4Wl3K4U6tfms0R/mzU4/5W3XeUZptVraGVmbptJbn6h2Ey6Rb3hOs3zWoAUebZk8t47KGiQ== dependencies: eslint-visitor-keys "^1.1.0" From 8efb44193058d286f7325327a6d33936b273ec91 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 14:22:13 +0800 Subject: [PATCH 007/567] fix: update dependency execa to v4 (#1936) Co-authored-by: Renovate Bot --- @commitlint/cli/package.json | 2 +- @commitlint/load/package.json | 2 +- @commitlint/prompt-cli/package.json | 2 +- @commitlint/travis-cli/package.json | 2 +- @packages/test/package.json | 2 +- @packages/utils/package.json | 2 +- yarn.lock | 17 ++++++++++++++++- 7 files changed, 22 insertions(+), 7 deletions(-) diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 186546a012..256566d603 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -43,7 +43,7 @@ "@types/yargs": "^15.0.3", "babel-preset-commitlint": "^9.1.2", "cross-env": "7.0.2", - "execa": "^3.4.0", + "execa": "^4.0.0", "fs-extra": "^9.0.0" }, "dependencies": { diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index da3aaf051c..c24264d87d 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -37,7 +37,7 @@ "@commitlint/test": "^9.1.2", "@commitlint/utils": "^9.1.2", "@types/lodash": "4.14.157", - "execa": "^3.4.0" + "execa": "^4.0.0" }, "dependencies": { "@commitlint/execute-rule": "^9.1.2", diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index e09ca5c7ef..391318b89b 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -36,7 +36,7 @@ }, "dependencies": { "@commitlint/prompt": "^9.1.2", - "execa": "^3.4.0" + "execa": "^4.0.0" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" } diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 7b7ff62c92..5bc0036330 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -55,7 +55,7 @@ "dependencies": { "@babel/runtime": "^7.9.6", "@commitlint/cli": "^9.1.2", - "execa": "^3.4.0" + "execa": "^4.0.0" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" } diff --git a/@packages/test/package.json b/@packages/test/package.json index da5bba4a92..b009d02c42 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -32,7 +32,7 @@ "dependencies": { "@types/fs-extra": "^9.0.0", "@types/tmp": "^0.2.0", - "execa": "^3.4.0", + "execa": "^4.0.0", "fs-extra": "^9.0.0", "pkg-dir": "4.2.0", "resolve-pkg": "2.0.0", diff --git a/@packages/utils/package.json b/@packages/utils/package.json index 878ee8a09f..10a112f76d 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -38,7 +38,7 @@ "license": "MIT", "dependencies": { "@commitlint/test": "^9.1.2", - "execa": "^3.4.0", + "execa": "^4.0.0", "is-builtin-module": "3.0.0", "meow": "4.0.1", "read-pkg": "5.2.0", diff --git a/yarn.lock b/yarn.lock index f4baf55390..5c2360184d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5004,7 +5004,7 @@ execa@^1.0.0: signal-exit "^3.0.0" strip-eof "^1.0.0" -execa@^3.2.0, execa@^3.4.0: +execa@^3.2.0: version "3.4.0" resolved "https://registry.npmjs.org/execa/-/execa-3.4.0.tgz#c08ed4550ef65d858fac269ffc8572446f37eb89" integrity sha512-r9vdGQk4bmCuK1yKQu1KTwcT2zwfWdbdaXfCtAh+5nU/4fSX+JAb7vZGvI5naJrQlvONrEB20jeruESI69530g== @@ -5020,6 +5020,21 @@ execa@^3.2.0, execa@^3.4.0: signal-exit "^3.0.2" strip-final-newline "^2.0.0" +execa@^4.0.0: + version "4.0.3" + resolved "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz#0a34dabbad6d66100bd6f2c576c8669403f317f2" + integrity sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + execa@^4.0.1: version "4.0.2" resolved "https://registry.npmjs.org/execa/-/execa-4.0.2.tgz#ad87fb7b2d9d564f70d2b62d511bee41d5cbb240" From 8ca84595eeeeabb11bc30c0bd4e3f9da184f239e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 15:22:05 +0800 Subject: [PATCH 008/567] chore: update dependency typescript to v3.9.6 (#1012) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3b2bb18fe2..2efb881c68 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "lint-staged": "10.2.11", "prettier": "1.17.1", "ts-jest": "26.1.2", - "typescript": "3.8.2" + "typescript": "3.9.6" }, "husky": { "hooks": { diff --git a/yarn.lock b/yarn.lock index 5c2360184d..e82536f9ea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10701,10 +10701,10 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.8.2: - version "3.8.2" - resolved "https://registry.npmjs.org/typescript/-/typescript-3.8.2.tgz#91d6868aaead7da74f493c553aeff76c0c0b1d5a" - integrity sha512-EgOVgL/4xfVrCMbhYKUQTdF37SQn4Iw73H5BgCrF1Abdun7Kwy/QZsE/ssAy0y4LxBbvua3PIbFsbRczWWnDdQ== +typescript@3.9.6: + version "3.9.6" + resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz#8f3e0198a34c3ae17091b35571d3afd31999365a" + integrity sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw== uglify-js@^3.1.4: version "3.7.3" From a370dd0c6b9dd113a1b024313a921e7c84013b3c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 15 Jul 2020 09:55:07 +0800 Subject: [PATCH 009/567] chore: update babel monorepo (#2010) Co-authored-by: Renovate Bot --- @commitlint/travis-cli/package.json | 4 +- yarn.lock | 331 ++++++++++------------------ 2 files changed, 121 insertions(+), 214 deletions(-) diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index 5bc0036330..c8550c216e 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -45,8 +45,8 @@ }, "license": "MIT", "devDependencies": { - "@babel/cli": "7.10.3", - "@babel/core": "7.10.3", + "@babel/cli": "7.10.5", + "@babel/core": "7.10.5", "@commitlint/test": "^9.1.2", "@commitlint/utils": "^9.1.2", "babel-preset-commitlint": "^9.1.2", diff --git a/yarn.lock b/yarn.lock index e82536f9ea..431d6175f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,16 +2,16 @@ # yarn lockfile v1 -"@babel/cli@7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/cli/-/cli-7.10.3.tgz#4ea83bd997d2a41c78d07263ada3ec466fb3764b" - integrity sha512-lWB3yH5/fWY8pi2Kj5/fA+17guJ9feSBw5DNjTju3/nRi9sXnl1JPh7aKQOSvdNbiDbkzzoGYtsr46M8dGmXDQ== +"@babel/cli@7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/cli/-/cli-7.10.5.tgz#57df2987c8cf89d0fc7d4b157ec59d7619f1b77a" + integrity sha512-j9H9qSf3kLdM0Ao3aGPbGZ73mEA9XazuupcS6cDGWuiyAcANoguhP0r2Lx32H5JGw4sSSoHG3x/mxVnHgvOoyA== dependencies: commander "^4.0.1" convert-source-map "^1.1.0" fs-readdir-recursive "^1.1.0" glob "^7.0.0" - lodash "^4.17.13" + lodash "^4.17.19" make-dir "^2.1.0" slash "^2.0.0" source-map "^0.5.0" @@ -34,27 +34,13 @@ optionalDependencies: chokidar "^2.1.8" -"@babel/code-frame@^7.0.0": +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4": version "7.10.4" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== dependencies: "@babel/highlight" "^7.10.4" -"@babel/code-frame@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.1.tgz#d5481c5095daa1c57e16e54c6f9198443afb49ff" - integrity sha512-IGhtTmpjGbYzcEDOw7DcQtbQSXcG9ftmAXtWTu9V936vDye4xjjekktFAtgZsWpzTj/X01jocB46mTywm/4SZw== - dependencies: - "@babel/highlight" "^7.10.1" - -"@babel/code-frame@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.10.3.tgz#324bcfd8d35cd3d47dae18cde63d752086435e9a" - integrity sha512-fDx9eNW0qz0WkUeqL6tXEXzVlPh6Y5aCDEZesl0xBGA8ndRukX91Uk44ZqnkECp01NAZUdCAl+aiQNGi0k88Eg== - dependencies: - "@babel/highlight" "^7.10.3" - "@babel/code-frame@^7.8.3": version "7.8.3" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" @@ -71,24 +57,24 @@ invariant "^2.2.4" semver "^5.5.0" -"@babel/core@7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/core/-/core-7.10.3.tgz#73b0e8ddeec1e3fdd7a2de587a60e17c440ec77e" - integrity sha512-5YqWxYE3pyhIi84L84YcwjeEgS+fa7ZjK6IBVGTjDVfm64njkR2lfDhVR5OudLk8x2GK59YoSyVv+L/03k1q9w== - dependencies: - "@babel/code-frame" "^7.10.3" - "@babel/generator" "^7.10.3" - "@babel/helper-module-transforms" "^7.10.1" - "@babel/helpers" "^7.10.1" - "@babel/parser" "^7.10.3" - "@babel/template" "^7.10.3" - "@babel/traverse" "^7.10.3" - "@babel/types" "^7.10.3" +"@babel/core@7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.10.5.tgz#1f15e2cca8ad9a1d78a38ddba612f5e7cdbbd330" + integrity sha512-O34LQooYVDXPl7QWCdW9p4NR+QlzOr7xShPPJz8GsuCU3/8ua/wqTr7gmnxXv+WBESiGU/G5s16i6tUvHkNb+w== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/generator" "^7.10.5" + "@babel/helper-module-transforms" "^7.10.5" + "@babel/helpers" "^7.10.4" + "@babel/parser" "^7.10.5" + "@babel/template" "^7.10.4" + "@babel/traverse" "^7.10.5" + "@babel/types" "^7.10.5" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.1" json5 "^2.1.2" - lodash "^4.17.13" + lodash "^4.17.19" resolve "^1.3.2" semver "^5.4.1" source-map "^0.5.0" @@ -124,24 +110,13 @@ lodash "^4.17.13" source-map "^0.5.0" -"@babel/generator@^7.10.1": - version "7.10.2" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.10.2.tgz#0fa5b5b2389db8bfdfcc3492b551ee20f5dd69a9" - integrity sha512-AxfBNHNu99DTMvlUPlt1h2+Hn7knPpH5ayJ8OqDWSeLld+Fi2AYBTC/IejWDM9Edcii4UzZRCsbUt0WlSDsDsA== - dependencies: - "@babel/types" "^7.10.2" - jsesc "^2.5.1" - lodash "^4.17.13" - source-map "^0.5.0" - -"@babel/generator@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.10.3.tgz#32b9a0d963a71d7a54f5f6c15659c3dbc2a523a5" - integrity sha512-drt8MUHbEqRzNR0xnF8nMehbY11b1SDkRw03PSNH/3Rb2Z35oxkddVSi3rcaak0YJQ86PCuE7Qx1jSFhbLNBMA== +"@babel/generator@^7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.10.5.tgz#1b903554bc8c583ee8d25f1e8969732e6b829a69" + integrity sha512-3vXxr3FEW7E7lJZiWQ3bM4+v/Vyr9C+hpolQ8BGFr9Y8Ri2tFLWTixmwKBafDujO1WVah4fhZBeU1bieKdghig== dependencies: - "@babel/types" "^7.10.3" + "@babel/types" "^7.10.5" jsesc "^2.5.1" - lodash "^4.17.13" source-map "^0.5.0" "@babel/helper-annotate-as-pure@^7.8.3": @@ -212,23 +187,14 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helper-function-name@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.1.tgz#92bd63829bfc9215aca9d9defa85f56b539454f4" - integrity sha512-fcpumwhs3YyZ/ttd5Rz0xn0TpIwVkN7X0V38B9TWNfVF42KEkhkAAuPCQ3oXmtTRtiPJrmZ0TrfS0GKF0eMaRQ== - dependencies: - "@babel/helper-get-function-arity" "^7.10.1" - "@babel/template" "^7.10.1" - "@babel/types" "^7.10.1" - -"@babel/helper-function-name@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.3.tgz#79316cd75a9fa25ba9787ff54544307ed444f197" - integrity sha512-FvSj2aiOd8zbeqijjgqdMDSyxsGHaMt5Tr0XjQsGKHD3/1FP3wksjnLAWzxw7lvXiej8W1Jt47SKTZ6upQNiRw== +"@babel/helper-function-name@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.10.4.tgz#d2d3b20c59ad8c47112fa7d2a94bc09d5ef82f1a" + integrity sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ== dependencies: - "@babel/helper-get-function-arity" "^7.10.3" - "@babel/template" "^7.10.3" - "@babel/types" "^7.10.3" + "@babel/helper-get-function-arity" "^7.10.4" + "@babel/template" "^7.10.4" + "@babel/types" "^7.10.4" "@babel/helper-function-name@^7.8.3": version "7.8.3" @@ -239,19 +205,12 @@ "@babel/template" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helper-get-function-arity@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.1.tgz#7303390a81ba7cb59613895a192b93850e373f7d" - integrity sha512-F5qdXkYGOQUb0hpRaPoetF9AnsXknKjWMZ+wmsIRsp5ge5sFh4c3h1eH2pRTTuy9KKAA2+TTYomGXAtEL2fQEw== - dependencies: - "@babel/types" "^7.10.1" - -"@babel/helper-get-function-arity@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.3.tgz#3a28f7b28ccc7719eacd9223b659fdf162e4c45e" - integrity sha512-iUD/gFsR+M6uiy69JA6fzM5seno8oE85IYZdbVVEuQaZlEzMO2MXblh+KSPJgsZAUx0EEbWXU0yJaW7C9CdAVg== +"@babel/helper-get-function-arity@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.10.4.tgz#98c1cbea0e2332f33f9a4661b8ce1505b2c19ba2" + integrity sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A== dependencies: - "@babel/types" "^7.10.3" + "@babel/types" "^7.10.4" "@babel/helper-get-function-arity@^7.8.3": version "7.8.3" @@ -267,12 +226,12 @@ dependencies: "@babel/types" "^7.8.3" -"@babel/helper-member-expression-to-functions@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.1.tgz#432967fd7e12a4afef66c4687d4ca22bc0456f15" - integrity sha512-u7XLXeM2n50gb6PWJ9hoO5oO7JFPaZtrh35t8RqKLT1jFKj9IWeD1zrcrYp1q1qiZTdEarfDWfTIP8nGsu0h5g== +"@babel/helper-member-expression-to-functions@^7.10.4": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.10.5.tgz#172f56e7a63e78112f3a04055f24365af702e7ee" + integrity sha512-HiqJpYD5+WopCXIAbQDG0zye5XYVvcO9w/DHp5GsaGkRUaamLj2bEtu6i8rnGGprAhHM3qidCMgp71HF4endhA== dependencies: - "@babel/types" "^7.10.1" + "@babel/types" "^7.10.5" "@babel/helper-member-expression-to-functions@^7.8.3": version "7.8.3" @@ -288,25 +247,25 @@ dependencies: "@babel/types" "^7.8.3" -"@babel/helper-module-imports@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.1.tgz#dd331bd45bccc566ce77004e9d05fe17add13876" - integrity sha512-SFxgwYmZ3HZPyZwJRiVNLRHWuW2OgE5k2nrVs6D9Iv4PPnXVffuEHy83Sfx/l4SqF+5kyJXjAyUmrG7tNm+qVg== +"@babel/helper-module-imports@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620" + integrity sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw== dependencies: - "@babel/types" "^7.10.1" + "@babel/types" "^7.10.4" -"@babel/helper-module-transforms@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.1.tgz#24e2f08ee6832c60b157bb0936c86bef7210c622" - integrity sha512-RLHRCAzyJe7Q7sF4oy2cB+kRnU4wDZY/H2xJFGof+M+SJEGhZsb+GFj5j1AD8NiSaVBJ+Pf0/WObiXu/zxWpFg== +"@babel/helper-module-transforms@^7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.10.5.tgz#120c271c0b3353673fcdfd8c053db3c544a260d6" + integrity sha512-4P+CWMJ6/j1W915ITJaUkadLObmCRRSC234uctJfn/vHrsLNxsR8dwlcXv9ZhJWzl77awf+mWXSZEKt5t0OnlA== dependencies: - "@babel/helper-module-imports" "^7.10.1" - "@babel/helper-replace-supers" "^7.10.1" - "@babel/helper-simple-access" "^7.10.1" - "@babel/helper-split-export-declaration" "^7.10.1" - "@babel/template" "^7.10.1" - "@babel/types" "^7.10.1" - lodash "^4.17.13" + "@babel/helper-module-imports" "^7.10.4" + "@babel/helper-replace-supers" "^7.10.4" + "@babel/helper-simple-access" "^7.10.4" + "@babel/helper-split-export-declaration" "^7.10.4" + "@babel/template" "^7.10.4" + "@babel/types" "^7.10.5" + lodash "^4.17.19" "@babel/helper-module-transforms@^7.8.3": version "7.8.3" @@ -320,12 +279,12 @@ "@babel/types" "^7.8.3" lodash "^4.17.13" -"@babel/helper-optimise-call-expression@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.1.tgz#b4a1f2561870ce1247ceddb02a3860fa96d72543" - integrity sha512-a0DjNS1prnBsoKx83dP2falChcs7p3i8VMzdrSbfLhuQra/2ENC4sbri34dz/rWmDADsmF1q5GbfaXydh0Jbjg== +"@babel/helper-optimise-call-expression@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.10.4.tgz#50dc96413d594f995a77905905b05893cd779673" + integrity sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg== dependencies: - "@babel/types" "^7.10.1" + "@babel/types" "^7.10.4" "@babel/helper-optimise-call-expression@^7.8.3": version "7.8.3" @@ -357,15 +316,15 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helper-replace-supers@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.1.tgz#ec6859d20c5d8087f6a2dc4e014db7228975f13d" - integrity sha512-SOwJzEfpuQwInzzQJGjGaiG578UYmyi2Xw668klPWV5n07B73S0a9btjLk/52Mlcxa+5AdIYqws1KyXRfMoB7A== +"@babel/helper-replace-supers@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.10.4.tgz#d585cd9388ea06e6031e4cd44b6713cbead9e6cf" + integrity sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A== dependencies: - "@babel/helper-member-expression-to-functions" "^7.10.1" - "@babel/helper-optimise-call-expression" "^7.10.1" - "@babel/traverse" "^7.10.1" - "@babel/types" "^7.10.1" + "@babel/helper-member-expression-to-functions" "^7.10.4" + "@babel/helper-optimise-call-expression" "^7.10.4" + "@babel/traverse" "^7.10.4" + "@babel/types" "^7.10.4" "@babel/helper-replace-supers@^7.8.3": version "7.8.3" @@ -377,13 +336,13 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helper-simple-access@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.1.tgz#08fb7e22ace9eb8326f7e3920a1c2052f13d851e" - integrity sha512-VSWpWzRzn9VtgMJBIWTZ+GP107kZdQ4YplJlCmIrjoLVSi/0upixezHCDG8kpPVTBJpKfxTH01wDhh+jS2zKbw== +"@babel/helper-simple-access@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz#0f5ccda2945277a2a7a2d3a821e15395edcf3461" + integrity sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw== dependencies: - "@babel/template" "^7.10.1" - "@babel/types" "^7.10.1" + "@babel/template" "^7.10.4" + "@babel/types" "^7.10.4" "@babel/helper-simple-access@^7.8.3": version "7.8.3" @@ -393,12 +352,12 @@ "@babel/template" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helper-split-export-declaration@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.1.tgz#c6f4be1cbc15e3a868e4c64a17d5d31d754da35f" - integrity sha512-UQ1LVBPrYdbchNhLwj6fetj46BcFwfS4NllJo/1aJsT+1dLTEnXJL0qHqtY7gPzF8S2fXBJamf1biAXV3X077g== +"@babel/helper-split-export-declaration@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.10.4.tgz#2c70576eaa3b5609b24cb99db2888cc3fc4251d1" + integrity sha512-pySBTeoUff56fL5CBU2hWm9TesA4r/rOkI9DyJLvvgz09MB9YtfIYe3iBriVaYNaPe+Alua0vBIOVOLs2buWhg== dependencies: - "@babel/types" "^7.10.1" + "@babel/types" "^7.10.4" "@babel/helper-split-export-declaration@^7.8.3": version "7.8.3" @@ -407,11 +366,6 @@ dependencies: "@babel/types" "^7.8.3" -"@babel/helper-validator-identifier@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.1.tgz#5770b0c1a826c4f53f5ede5e153163e0318e94b5" - integrity sha512-5vW/JXLALhczRCWP0PnFDMCJAchlBvM7f4uk/jXritBnIa6E1KmqmtrS3yn1LAnxFBypQ3eneLuXjsnfQsgILw== - "@babel/helper-validator-identifier@^7.10.3", "@babel/helper-validator-identifier@^7.10.4": version "7.10.4" resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2" @@ -427,14 +381,14 @@ "@babel/traverse" "^7.8.3" "@babel/types" "^7.8.3" -"@babel/helpers@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.1.tgz#a6827b7cb975c9d9cef5fd61d919f60d8844a973" - integrity sha512-muQNHF+IdU6wGgkaJyhhEmI54MOZBKsFfsXFhboz1ybwJ1Kl7IHlbm2a++4jwrmY5UYsgitt5lfqo1wMFcHmyw== +"@babel/helpers@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.10.4.tgz#2abeb0d721aff7c0a97376b9e1f6f65d7a475044" + integrity sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA== dependencies: - "@babel/template" "^7.10.1" - "@babel/traverse" "^7.10.1" - "@babel/types" "^7.10.1" + "@babel/template" "^7.10.4" + "@babel/traverse" "^7.10.4" + "@babel/types" "^7.10.4" "@babel/helpers@^7.8.4": version "7.8.4" @@ -445,16 +399,7 @@ "@babel/traverse" "^7.8.4" "@babel/types" "^7.8.3" -"@babel/highlight@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.1.tgz#841d098ba613ba1a427a2b383d79e35552c38ae0" - integrity sha512-8rMof+gVP8mxYZApLF/JgNDAkdKa+aJt3ZYxF8z6+j/hpeXL7iMsKCPHa2jNMHu/qqBwzQF4OHNoYi8dMA/rYg== - dependencies: - "@babel/helper-validator-identifier" "^7.10.1" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/highlight@^7.10.3", "@babel/highlight@^7.10.4": +"@babel/highlight@^7.10.4": version "7.10.4" resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143" integrity sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA== @@ -477,15 +422,10 @@ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.8.4.tgz#d1dbe64691d60358a974295fa53da074dd2ce8e8" integrity sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw== -"@babel/parser@^7.10.1": - version "7.10.2" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.10.2.tgz#871807f10442b92ff97e4783b9b54f6a0ca812d0" - integrity sha512-PApSXlNMJyB4JiGVhCOlzKIif+TKFTvu0aQAhnTvfP/z3vVSN6ZypH5bfUNwFXXjRQtUEBNFd2PtmCmG2Py3qQ== - -"@babel/parser@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.10.3.tgz#7e71d892b0d6e7d04a1af4c3c79d72c1f10f5315" - integrity sha512-oJtNJCMFdIMwXGmx+KxuaD7i3b8uS7TTFYW/FNG2BT8m+fmGHoiPYoH0Pe3gya07WuFmM5FCDIr1x0irkD/hyA== +"@babel/parser@^7.10.4", "@babel/parser@^7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.10.5.tgz#e7c6bf5a7deff957cec9f04b551e2762909d826b" + integrity sha512-wfryxy4bE1UivvQKSQDU4/X6dr+i8bctjUjj8Zyt3DQy7NtPizJXT8M52nqpNKL+nq2PW8lxk4ZqLj0fD4B4hQ== "@babel/plugin-proposal-async-generator-functions@^7.8.3": version "7.8.3" @@ -963,23 +903,14 @@ dependencies: regenerator-runtime "^0.13.4" -"@babel/template@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/template/-/template-7.10.1.tgz#e167154a94cb5f14b28dc58f5356d2162f539811" - integrity sha512-OQDg6SqvFSsc9A0ej6SKINWrpJiNonRIniYondK2ViKhB06i3c0s+76XUft71iqBEe9S1OKsHwPAjfHnuvnCig== - dependencies: - "@babel/code-frame" "^7.10.1" - "@babel/parser" "^7.10.1" - "@babel/types" "^7.10.1" - -"@babel/template@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/template/-/template-7.10.3.tgz#4d13bc8e30bf95b0ce9d175d30306f42a2c9a7b8" - integrity sha512-5BjI4gdtD+9fHZUsaxPHPNpwa+xRkDO7c7JbhYn2afvrkDu5SfAAbi9AIMXw2xEhO/BR35TqiW97IqNvCo/GqA== +"@babel/template@^7.10.4": + version "7.10.4" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.10.4.tgz#3251996c4200ebc71d1a8fc405fba940f36ba278" + integrity sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA== dependencies: - "@babel/code-frame" "^7.10.3" - "@babel/parser" "^7.10.3" - "@babel/types" "^7.10.3" + "@babel/code-frame" "^7.10.4" + "@babel/parser" "^7.10.4" + "@babel/types" "^7.10.4" "@babel/template@^7.7.4", "@babel/template@^7.8.3": version "7.8.3" @@ -1005,35 +936,20 @@ globals "^11.1.0" lodash "^4.17.13" -"@babel/traverse@^7.10.1": - version "7.10.1" - resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.1.tgz#bbcef3031e4152a6c0b50147f4958df54ca0dd27" - integrity sha512-C/cTuXeKt85K+p08jN6vMDz8vSV0vZcI0wmQ36o6mjbuo++kPMdpOYw23W2XH04dbRt9/nMEfA4W3eR21CD+TQ== - dependencies: - "@babel/code-frame" "^7.10.1" - "@babel/generator" "^7.10.1" - "@babel/helper-function-name" "^7.10.1" - "@babel/helper-split-export-declaration" "^7.10.1" - "@babel/parser" "^7.10.1" - "@babel/types" "^7.10.1" +"@babel/traverse@^7.10.4", "@babel/traverse@^7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.5.tgz#77ce464f5b258be265af618d8fddf0536f20b564" + integrity sha512-yc/fyv2gUjPqzTz0WHeRJH2pv7jA9kA7mBX2tXl/x5iOE81uaVPuGPtaYk7wmkx4b67mQ7NqI8rmT2pF47KYKQ== + dependencies: + "@babel/code-frame" "^7.10.4" + "@babel/generator" "^7.10.5" + "@babel/helper-function-name" "^7.10.4" + "@babel/helper-split-export-declaration" "^7.10.4" + "@babel/parser" "^7.10.5" + "@babel/types" "^7.10.5" debug "^4.1.0" globals "^11.1.0" - lodash "^4.17.13" - -"@babel/traverse@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.10.3.tgz#0b01731794aa7b77b214bcd96661f18281155d7e" - integrity sha512-qO6623eBFhuPm0TmmrUFMT1FulCmsSeJuVGhiLodk2raUDFhhTECLd9E9jC4LBIWziqt4wgF6KuXE4d+Jz9yug== - dependencies: - "@babel/code-frame" "^7.10.3" - "@babel/generator" "^7.10.3" - "@babel/helper-function-name" "^7.10.3" - "@babel/helper-split-export-declaration" "^7.10.1" - "@babel/parser" "^7.10.3" - "@babel/types" "^7.10.3" - debug "^4.1.0" - globals "^11.1.0" - lodash "^4.17.13" + lodash "^4.17.19" "@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.8.3": version "7.8.3" @@ -1044,22 +960,13 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" -"@babel/types@^7.10.1", "@babel/types@^7.10.2": - version "7.10.2" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.10.2.tgz#30283be31cad0dbf6fb00bd40641ca0ea675172d" - integrity sha512-AD3AwWBSz0AWF0AkCN9VPiWrvldXq+/e3cHa4J89vo4ymjz1XwrBFFVZmkJTsQIPNk+ZVomPSXUJqq8yyjZsng== - dependencies: - "@babel/helper-validator-identifier" "^7.10.1" - lodash "^4.17.13" - to-fast-properties "^2.0.0" - -"@babel/types@^7.10.3": - version "7.10.3" - resolved "https://registry.npmjs.org/@babel/types/-/types-7.10.3.tgz#6535e3b79fea86a6b09e012ea8528f935099de8e" - integrity sha512-nZxaJhBXBQ8HVoIcGsf9qWep3Oh3jCENK54V4mRF7qaJabVsAYdbTtmSD8WmAp1R6ytPiu5apMwSXyxB1WlaBA== +"@babel/types@^7.10.4", "@babel/types@^7.10.5": + version "7.10.5" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.10.5.tgz#d88ae7e2fde86bfbfe851d4d81afa70a997b5d15" + integrity sha512-ixV66KWfCI6GKoA/2H9v6bQdbfXEwwpOdQ8cRvb4F+eyvhlaHxWFMQB4+3d9QFJXZsiiiqVrewNV0DFEQpyT4Q== dependencies: - "@babel/helper-validator-identifier" "^7.10.3" - lodash "^4.17.13" + "@babel/helper-validator-identifier" "^7.10.4" + lodash "^4.17.19" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": From f8a4fc4514ae9f7568829a0a4bf09a483564f5d7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2020 09:50:24 +0800 Subject: [PATCH 010/567] chore: update dependency typescript to v3.9.7 (#2011) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2efb881c68..ed7e4f0d90 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "lint-staged": "10.2.11", "prettier": "1.17.1", "ts-jest": "26.1.2", - "typescript": "3.9.6" + "typescript": "3.9.7" }, "husky": { "hooks": { diff --git a/yarn.lock b/yarn.lock index 431d6175f2..96c7f8e6bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10608,10 +10608,10 @@ typedarray@^0.0.6: resolved "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.9.6: - version "3.9.6" - resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.6.tgz#8f3e0198a34c3ae17091b35571d3afd31999365a" - integrity sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw== +typescript@3.9.7: + version "3.9.7" + resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa" + integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw== uglify-js@^3.1.4: version "3.7.3" From 51efc299ddb40fda48f5a4305fb0904656cfeb7e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jul 2020 13:13:01 +0800 Subject: [PATCH 011/567] chore: update dependency ts-jest to v26.1.3 (#2012) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ed7e4f0d90..e53cdf06d3 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "lerna-v3": "npm:lerna@3", "lint-staged": "10.2.11", "prettier": "1.17.1", - "ts-jest": "26.1.2", + "ts-jest": "26.1.3", "typescript": "3.9.7" }, "husky": { diff --git a/yarn.lock b/yarn.lock index 96c7f8e6bb..c13b451c59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10502,10 +10502,10 @@ trim-off-newlines@^1.0.0: resolved "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz#9f9ba9d9efa8764c387698bcbfeb2c848f11adb3" integrity sha1-n5up2e+odkw4dpi8v+sshI8RrbM= -ts-jest@26.1.2: - version "26.1.2" - resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.2.tgz#dd2e832ffae9cb803361483b6a3010a6413dc475" - integrity sha512-V4SyBDO9gOdEh+AF4KtXJeP+EeI4PkOrxcA8ptl4o8nCXUVM5Gg/8ngGKneS5BsZaR9DXVQNqj9k+iqGAnpGow== +ts-jest@26.1.3: + version "26.1.3" + resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-26.1.3.tgz#aac928a05fdf13e3e6dfbc8caec3847442667894" + integrity sha512-beUTSvuqR9SmKQEylewqJdnXWMVGJRFqSz2M8wKJe7GBMmLZ5zw6XXKSJckbHNMxn+zdB3guN2eOucSw2gBMnw== dependencies: bs-logger "0.x" buffer-from "1.x" From 7f802df24acc507d10687da3b351f6f76f50265c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2020 10:18:49 +0800 Subject: [PATCH 012/567] chore: update dependency @types/jest to v26.0.5 (#2013) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e53cdf06d3..57b8e64446 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ }, "devDependencies": { "@lerna/project": "3.21.0", - "@types/jest": "26.0.4", + "@types/jest": "26.0.5", "@types/node": "12.12.50", "@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/parser": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index c13b451c59..08677eb75d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2467,10 +2467,10 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@26.0.4": - version "26.0.4" - resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.4.tgz#d2e513e85aca16992816f192582b5e67b0b15efb" - integrity sha512-4fQNItvelbNA9+sFgU+fhJo8ZFF+AS4Egk3GWwCW2jFtViukXbnztccafAdLhzE/0EiCogljtQQXP8aQ9J7sFg== +"@types/jest@26.0.5": + version "26.0.5" + resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.5.tgz#23a8eecf4764a770ea8d3a0d1ea16b96c822035d" + integrity sha512-heU+7w8snfwfjtcj2H458aTx3m5unIToOJhx75ebHilBiiQ39OIdA18WkG4LP08YKeAoWAGvWg8s+22w/PeJ6w== dependencies: jest-diff "^25.2.1" pretty-format "^25.2.1" From 47030528b433de05af02d65d8dd33af3862edce7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2020 10:19:41 +0800 Subject: [PATCH 013/567] chore: update dependency eslint to v7.5.0 (#2014) Co-authored-by: Renovate Bot --- yarn.lock | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/yarn.lock b/yarn.lock index 08677eb75d..79feeddce4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2677,7 +2677,7 @@ acorn@^6.0.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474" integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA== -acorn@^7.1.0, acorn@^7.2.0: +acorn@^7.1.0, acorn@^7.3.1: version "7.3.1" resolved "https://registry.npmjs.org/acorn/-/acorn-7.3.1.tgz#85010754db53c3fbaf3b9ea3e083aa5c5d147ffd" integrity sha512-tLc0wSnatxAQHVHUapaHdz72pi9KUyHjq5KyHjGg9Y8Ifdc79pTh2XvI6I1/chZbnM7QtNKzh66ooDogPZSleA== @@ -4760,22 +4760,22 @@ eslint-scope@^5.0.0, eslint-scope@^5.1.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^2.0.0: +eslint-utils@^2.0.0, eslint-utils@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== dependencies: eslint-visitor-keys "^1.1.0" -eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.2.0: +eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: version "1.3.0" resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== eslint@^7.0.0: - version "7.4.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-7.4.0.tgz#4e35a2697e6c1972f9d6ef2b690ad319f80f206f" - integrity sha512-gU+lxhlPHu45H3JkEGgYhWhkR9wLHHEXC9FbWFnTlEkbKyZKWgWRLgf61E8zWmBuI6g5xKBph9ltg3NtZMVF8g== + version "7.5.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-7.5.0.tgz#9ecbfad62216d223b82ac9ffea7ef3444671d135" + integrity sha512-vlUP10xse9sWt9SGRtcr1LAC67BENcQMFeV+w5EvLEoFe3xJ8cF1Skd0msziRx/VMC+72B4DxreCE+OR12OA6Q== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" @@ -4785,9 +4785,9 @@ eslint@^7.0.0: doctrine "^3.0.0" enquirer "^2.3.5" eslint-scope "^5.1.0" - eslint-utils "^2.0.0" - eslint-visitor-keys "^1.2.0" - espree "^7.1.0" + eslint-utils "^2.1.0" + eslint-visitor-keys "^1.3.0" + espree "^7.2.0" esquery "^1.2.0" esutils "^2.0.2" file-entry-cache "^5.0.1" @@ -4801,7 +4801,7 @@ eslint@^7.0.0: js-yaml "^3.13.1" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" - lodash "^4.17.14" + lodash "^4.17.19" minimatch "^3.0.4" natural-compare "^1.4.0" optionator "^0.9.1" @@ -4814,14 +4814,14 @@ eslint@^7.0.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^7.1.0: - version "7.1.0" - resolved "https://registry.npmjs.org/espree/-/espree-7.1.0.tgz#a9c7f18a752056735bf1ba14cb1b70adc3a5ce1c" - integrity sha512-dcorZSyfmm4WTuTnE5Y7MEN1DyoPYy1ZR783QW1FJoenn7RailyWFsq/UL6ZAAA7uXurN9FIpYyUs3OfiIW+Qw== +espree@^7.2.0: + version "7.2.0" + resolved "https://registry.npmjs.org/espree/-/espree-7.2.0.tgz#1c263d5b513dbad0ac30c4991b93ac354e948d69" + integrity sha512-H+cQ3+3JYRMEIOl87e7QdHX70ocly5iW4+dttuR8iYSPr/hXKFb+7dBsZ7+u1adC4VrnPlTkv0+OwuPnDop19g== dependencies: - acorn "^7.2.0" + acorn "^7.3.1" acorn-jsx "^5.2.0" - eslint-visitor-keys "^1.2.0" + eslint-visitor-keys "^1.3.0" esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" @@ -10171,9 +10171,9 @@ strip-json-comments@3.0.1: integrity sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== strip-json-comments@^3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.0.tgz#7638d31422129ecf4457440009fba03f9f9ac180" - integrity sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w== + version "3.1.1" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== strip-json-comments@~2.0.1: version "2.0.1" From dc3774a6bba40f5d2b86a47dd87c2a77db07c3f6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2020 10:50:37 +0800 Subject: [PATCH 014/567] chore: update typescript-eslint monorepo to v3.7.0 (#2015) Co-authored-by: Renovate Bot --- yarn.lock | 60 +++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/yarn.lock b/yarn.lock index 79feeddce4..9ecaef4a72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2545,25 +2545,25 @@ "@types/yargs-parser" "*" "@typescript-eslint/eslint-plugin@^3.0.0": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.6.1.tgz#5ced8fd2087fbb83a76973dea4a0d39d9cb4a642" - integrity sha512-06lfjo76naNeOMDl+mWG9Fh/a0UHKLGhin+mGaIw72FUMbMGBkdi/FEJmgEDzh4eE73KIYzHWvOCYJ0ak7nrJQ== + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.0.tgz#0f91aa3c83d019591719e597fbdb73a59595a263" + integrity sha512-4OEcPON3QIx0ntsuiuFP/TkldmBGXf0uKxPQlGtS/W2F3ndYm8Vgdpj/woPJkzUc65gd3iR+qi3K8SDQP/obFg== dependencies: - "@typescript-eslint/experimental-utils" "3.6.1" + "@typescript-eslint/experimental-utils" "3.7.0" debug "^4.1.1" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@3.6.1": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.6.1.tgz#b5a2738ebbceb3fa90c5b07d50bb1225403c4a54" - integrity sha512-oS+hihzQE5M84ewXrTlVx7eTgc52eu+sVmG7ayLfOhyZmJ8Unvf3osyFQNADHP26yoThFfbxcibbO0d2FjnYhg== +"@typescript-eslint/experimental-utils@3.7.0": + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.0.tgz#0ee21f6c48b2b30c63211da23827725078d5169a" + integrity sha512-xpfXXAfZqhhqs5RPQBfAFrWDHoNxD5+sVB5A46TF58Bq1hRfVROrWHcQHHUM9aCBdy9+cwATcvCbRg8aIRbaHQ== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.6.1" - "@typescript-eslint/typescript-estree" "3.6.1" + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/typescript-estree" "3.7.0" eslint-scope "^5.0.0" eslint-utils "^2.0.0" @@ -2578,20 +2578,20 @@ eslint-utils "^2.0.0" "@typescript-eslint/parser@^3.0.0": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.6.1.tgz#216e8adf4ee9c629f77c985476a2ea07fb80e1dc" - integrity sha512-SLihQU8RMe77YJ/jGTqOt0lMq7k3hlPVfp7v/cxMnXA9T0bQYoMDfTsNgHXpwSJM1Iq2aAJ8WqekxUwGv5F67Q== + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.7.0.tgz#3e9cd9df9ea644536feb6e5acdb8279ecff96ce9" + integrity sha512-2LZauVUt7jAWkcIW7djUc3kyW+fSarNEuM3RF2JdLHR9BfX/nDEnyA4/uWz0wseoWVZbDXDF7iF9Jc342flNqQ== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.6.1" - "@typescript-eslint/types" "3.6.1" - "@typescript-eslint/typescript-estree" "3.6.1" + "@typescript-eslint/experimental-utils" "3.7.0" + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/typescript-estree" "3.7.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/types@3.6.1": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.6.1.tgz#87600fe79a1874235d3cc1cf5c7e1a12eea69eee" - integrity sha512-NPxd5yXG63gx57WDTW1rp0cF3XlNuuFFB5G+Kc48zZ+51ZnQn9yjDEsjTPQ+aWM+V+Z0I4kuTFKjKvgcT1F7xQ== +"@typescript-eslint/types@3.7.0": + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.7.0.tgz#09897fab0cb95479c01166b10b2c03c224821077" + integrity sha512-reCaK+hyKkKF+itoylAnLzFeNYAEktB0XVfSQvf0gcVgpz1l49Lt6Vo9x4MVCCxiDydA0iLAjTF/ODH0pbfnpg== "@typescript-eslint/typescript-estree@2.34.0": version "2.34.0" @@ -2606,13 +2606,13 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/typescript-estree@3.6.1": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.6.1.tgz#a5c91fcc5497cce7922ff86bc37d5e5891dcdefa" - integrity sha512-G4XRe/ZbCZkL1fy09DPN3U0mR6SayIv1zSeBNquRFRk7CnVLgkC2ZPj8llEMJg5Y8dJ3T76SvTGtceytniaztQ== +"@typescript-eslint/typescript-estree@3.7.0": + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.0.tgz#66872e6da120caa4b64e6b4ca5c8702afc74738d" + integrity sha512-xr5oobkYRebejlACGr1TJ0Z/r0a2/HUf0SXqPvlgUMwiMqOCu/J+/Dr9U3T0IxpE5oLFSkqMx1FE/dKaZ8KsOQ== dependencies: - "@typescript-eslint/types" "3.6.1" - "@typescript-eslint/visitor-keys" "3.6.1" + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/visitor-keys" "3.7.0" debug "^4.1.1" glob "^7.1.6" is-glob "^4.0.1" @@ -2620,10 +2620,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.6.1": - version "3.6.1" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.6.1.tgz#5c57a7772f4dd623cfeacc219303e7d46f963b37" - integrity sha512-qC8Olwz5ZyMTZrh4Wl3K4U6tfms0R/mzU4/5W3XeUZptVraGVmbptJbn6h2Ey6Rb3hOs3zWoAUebZk8t47KGiQ== +"@typescript-eslint/visitor-keys@3.7.0": + version "3.7.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.0.tgz#ac0417d382a136e4571a0b0dcfe52088cb628177" + integrity sha512-k5PiZdB4vklUpUX4NBncn5RBKty8G3ihTY+hqJsCdMuD0v4jofI5xuqwnVcWxfv6iTm2P/dfEa2wMUnsUY8ODw== dependencies: eslint-visitor-keys "^1.1.0" From f74bfca3f64c54ca814e1edcc4ef7948a251ece1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 Jul 2020 10:50:49 +0800 Subject: [PATCH 015/567] chore: update dependency @types/node to v12.12.51 (#2016) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 57b8e64446..bc7859bb2d 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "devDependencies": { "@lerna/project": "3.21.0", "@types/jest": "26.0.5", - "@types/node": "12.12.50", + "@types/node": "12.12.51", "@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/parser": "^3.0.0", "docsify-cli": "^4.4.0", diff --git a/yarn.lock b/yarn.lock index 9ecaef4a72..f87af06ebb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2500,10 +2500,10 @@ resolved "https://registry.npmjs.org/@types/node/-/node-12.12.26.tgz#213e153babac0ed169d44a6d919501e68f59dea9" integrity sha512-UmUm94/QZvU5xLcUlNR8hA7Ac+fGpO1EG/a8bcWVz0P0LqtxFmun9Y2bbtuckwGboWJIT70DoWq1r3hb56n3DA== -"@types/node@12.12.50": - version "12.12.50" - resolved "https://registry.npmjs.org/@types/node/-/node-12.12.50.tgz#e9b2e85fafc15f2a8aa8fdd41091b983da5fd6ee" - integrity sha512-5ImO01Fb8YsEOYpV+aeyGYztcYcjGsBvN4D7G5r1ef2cuQOpymjWNQi5V0rKHE6PC2ru3HkoUr/Br2/8GUA84w== +"@types/node@12.12.51": + version "12.12.51" + resolved "https://registry.npmjs.org/@types/node/-/node-12.12.51.tgz#446a67af8c5ff98947d7cef296484c6ad47ddb16" + integrity sha512-6ILqt8iNThALrxDv2Q4LyYFQxULQz96HKNIFd4s9QRQaiHINYeUpLqeU/2IU7YMtvipG1fQVAy//vY8/fX1Y9w== "@types/normalize-package-data@^2.4.0": version "2.4.0" From cdcacd2c8632eaf9eda2be8ca84e892681d0cb61 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2020 10:09:03 +0800 Subject: [PATCH 016/567] chore: update dependency @types/lodash to v4.14.158 (#2018) Co-authored-by: Renovate Bot --- @commitlint/ensure/package.json | 2 +- @commitlint/load/package.json | 2 +- @commitlint/resolve-extends/package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index 393f99da1c..845612d9e4 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -35,7 +35,7 @@ "license": "MIT", "devDependencies": { "@commitlint/utils": "^9.1.2", - "@types/lodash": "4.14.157", + "@types/lodash": "4.14.158", "globby": "^11.0.0" }, "dependencies": { diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index c24264d87d..1f1cd14f72 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -36,7 +36,7 @@ "devDependencies": { "@commitlint/test": "^9.1.2", "@commitlint/utils": "^9.1.2", - "@types/lodash": "4.14.157", + "@types/lodash": "4.14.158", "execa": "^4.0.0" }, "dependencies": { diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index c20bea7cbd..b6bcb65a4e 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -35,7 +35,7 @@ "license": "MIT", "devDependencies": { "@commitlint/utils": "^9.1.2", - "@types/lodash": "4.14.157" + "@types/lodash": "4.14.158" }, "dependencies": { "import-fresh": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index f87af06ebb..5b6b844db0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2485,10 +2485,10 @@ resolved "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= -"@types/lodash@4.14.157": - version "4.14.157" - resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.157.tgz#fdac1c52448861dfde1a2e1515dbc46e54926dc8" - integrity sha512-Ft5BNFmv2pHDgxV5JDsndOWTRJ+56zte0ZpYLowp03tW+K+t8u8YMOzAnpuqPgzX6WO1XpDIUm7u04M8vdDiVQ== +"@types/lodash@4.14.158": + version "4.14.158" + resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.158.tgz#b38ea8b6fe799acd076d7a8d7ab71c26ef77f785" + integrity sha512-InCEXJNTv/59yO4VSfuvNrZHt7eeNtWQEgnieIA+mIC+MOWM9arOWG2eQ8Vhk6NbOre6/BidiXhkZYeDY9U35w== "@types/minimatch@*": version "3.0.3" From 6f5d8c628d4434e5a4031407318a58384c1566ff Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 22 Jul 2020 11:55:53 +0800 Subject: [PATCH 017/567] chore: update node.js to >=v10.22.0 (#2017) Co-authored-by: Renovate Bot --- @alias/commitlint-config-angular/package.json | 2 +- @alias/commitlint-config-lerna-scopes/package.json | 2 +- @alias/commitlint-config-patternplate/package.json | 2 +- @alias/commitlint/package.json | 2 +- @commitlint/cli/package.json | 2 +- @commitlint/config-angular-type-enum/package.json | 2 +- @commitlint/config-angular/package.json | 2 +- @commitlint/config-conventional/package.json | 2 +- @commitlint/config-lerna-scopes/package.json | 2 +- @commitlint/config-patternplate/package.json | 2 +- @commitlint/core/package.json | 2 +- @commitlint/ensure/package.json | 2 +- @commitlint/execute-rule/package.json | 2 +- @commitlint/format/package.json | 2 +- @commitlint/is-ignored/package.json | 2 +- @commitlint/lint/package.json | 2 +- @commitlint/load/package.json | 2 +- @commitlint/message/package.json | 2 +- @commitlint/parse/package.json | 2 +- @commitlint/prompt-cli/package.json | 2 +- @commitlint/prompt/package.json | 2 +- @commitlint/read/package.json | 2 +- @commitlint/resolve-extends/package.json | 2 +- @commitlint/rules/package.json | 2 +- @commitlint/to-lines/package.json | 2 +- @commitlint/top-level/package.json | 2 +- @commitlint/travis-cli/package.json | 2 +- @commitlint/types/package.json | 2 +- @packages/babel-preset-commitlint/package.json | 2 +- @packages/test-environment/package.json | 2 +- @packages/test/package.json | 2 +- @packages/utils/package.json | 2 +- package.json | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/@alias/commitlint-config-angular/package.json b/@alias/commitlint-config-angular/package.json index 35361d386c..bd38e6c4c2 100644 --- a/@alias/commitlint-config-angular/package.json +++ b/@alias/commitlint-config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "dependencies": { "@commitlint/config-angular": "^9.1.2" diff --git a/@alias/commitlint-config-lerna-scopes/package.json b/@alias/commitlint-config-lerna-scopes/package.json index 50fd8bbece..c9fff36566 100644 --- a/@alias/commitlint-config-lerna-scopes/package.json +++ b/@alias/commitlint-config-lerna-scopes/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "dependencies": { "@commitlint/config-lerna-scopes": "^9.1.2" diff --git a/@alias/commitlint-config-patternplate/package.json b/@alias/commitlint-config-patternplate/package.json index 459748b021..af70210413 100644 --- a/@alias/commitlint-config-patternplate/package.json +++ b/@alias/commitlint-config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "dependencies": { "@commitlint/config-patternplate": "^9.1.2" diff --git a/@alias/commitlint/package.json b/@alias/commitlint/package.json index e4009cd9c7..2e8b266e50 100644 --- a/@alias/commitlint/package.json +++ b/@alias/commitlint/package.json @@ -13,7 +13,7 @@ "pkg": "pkg-check --skip-main" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/cli/package.json b/@commitlint/cli/package.json index 256566d603..7af379e0fc 100644 --- a/@commitlint/cli/package.json +++ b/@commitlint/cli/package.json @@ -15,7 +15,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/config-angular-type-enum/package.json b/@commitlint/config-angular-type-enum/package.json index 9b1b9de520..eacb321226 100644 --- a/@commitlint/config-angular-type-enum/package.json +++ b/@commitlint/config-angular-type-enum/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "devDependencies": { "@commitlint/utils": "^9.1.2" diff --git a/@commitlint/config-angular/package.json b/@commitlint/config-angular/package.json index e429c81cca..f69a16edf4 100644 --- a/@commitlint/config-angular/package.json +++ b/@commitlint/config-angular/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "devDependencies": { "@commitlint/utils": "^9.1.2" diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 5828af71e3..315f0fcc8f 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "devDependencies": { "@commitlint/lint": "^9.1.2", diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index 7dfe3d034d..74f0ef1e65 100644 --- a/@commitlint/config-lerna-scopes/package.json +++ b/@commitlint/config-lerna-scopes/package.json @@ -29,7 +29,7 @@ "lerna": "^2.0.0 || ^3.0.0" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "dependencies": { "import-from": "3.0.0", diff --git a/@commitlint/config-patternplate/package.json b/@commitlint/config-patternplate/package.json index e2adc98a27..bf0f7b2c15 100644 --- a/@commitlint/config-patternplate/package.json +++ b/@commitlint/config-patternplate/package.json @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "dependencies": { "@commitlint/config-angular": "^9.1.2", diff --git a/@commitlint/core/package.json b/@commitlint/core/package.json index 9358af4476..838158ab1b 100644 --- a/@commitlint/core/package.json +++ b/@commitlint/core/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/ensure/package.json b/@commitlint/ensure/package.json index 845612d9e4..2551b1fef9 100644 --- a/@commitlint/ensure/package.json +++ b/@commitlint/ensure/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/execute-rule/package.json b/@commitlint/execute-rule/package.json index 25396cb8b5..1a9d4f4484 100644 --- a/@commitlint/execute-rule/package.json +++ b/@commitlint/execute-rule/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/format/package.json b/@commitlint/format/package.json index e354d97c02..471fadb7c7 100644 --- a/@commitlint/format/package.json +++ b/@commitlint/format/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index e8077bb3b2..aa0a003a3c 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/lint/package.json b/@commitlint/lint/package.json index fdb2559fc8..c08033ab7d 100644 --- a/@commitlint/lint/package.json +++ b/@commitlint/lint/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index 1f1cd14f72..0689d2e76d 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/message/package.json b/@commitlint/message/package.json index cf316699eb..da92951fe9 100644 --- a/@commitlint/message/package.json +++ b/@commitlint/message/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index f603c2a427..8054d72691 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/prompt-cli/package.json b/@commitlint/prompt-cli/package.json index 391318b89b..bb8aa17e8e 100644 --- a/@commitlint/prompt-cli/package.json +++ b/@commitlint/prompt-cli/package.json @@ -28,7 +28,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "devDependencies": { "@commitlint/test": "^9.1.2", diff --git a/@commitlint/prompt/package.json b/@commitlint/prompt/package.json index 79dee75476..39239a66ce 100644 --- a/@commitlint/prompt/package.json +++ b/@commitlint/prompt/package.json @@ -45,7 +45,7 @@ }, "homepage": "https://github.com/conventional-changelog/commitlint#readme", "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "devDependencies": { "@babel/cli": "^7.7.7", diff --git a/@commitlint/read/package.json b/@commitlint/read/package.json index 5250ebb0d9..37ff78275f 100644 --- a/@commitlint/read/package.json +++ b/@commitlint/read/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check --skip-import" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/resolve-extends/package.json b/@commitlint/resolve-extends/package.json index b6bcb65a4e..50a6fec3ac 100644 --- a/@commitlint/resolve-extends/package.json +++ b/@commitlint/resolve-extends/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index f3fe46eb12..3249ac35eb 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/to-lines/package.json b/@commitlint/to-lines/package.json index 68fe101ab4..ebfbfcb0e4 100644 --- a/@commitlint/to-lines/package.json +++ b/@commitlint/to-lines/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/top-level/package.json b/@commitlint/top-level/package.json index 91917e77fb..61f2f0e5ba 100644 --- a/@commitlint/top-level/package.json +++ b/@commitlint/top-level/package.json @@ -12,7 +12,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/travis-cli/package.json b/@commitlint/travis-cli/package.json index c8550c216e..ffc7b8ebe2 100644 --- a/@commitlint/travis-cli/package.json +++ b/@commitlint/travis-cli/package.json @@ -24,7 +24,7 @@ ] }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@commitlint/types/package.json b/@commitlint/types/package.json index c2bdeaa187..dbb3b6f187 100644 --- a/@commitlint/types/package.json +++ b/@commitlint/types/package.json @@ -11,7 +11,7 @@ "pkg": "pkg-check" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@packages/babel-preset-commitlint/package.json b/@packages/babel-preset-commitlint/package.json index af920d6ba9..ee3b74c6a2 100644 --- a/@packages/babel-preset-commitlint/package.json +++ b/@packages/babel-preset-commitlint/package.json @@ -8,7 +8,7 @@ "index.js" ], "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 3975755455..4acf8cdbe8 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@packages/test/package.json b/@packages/test/package.json index b009d02c42..a6006aa6d0 100644 --- a/@packages/test/package.json +++ b/@packages/test/package.json @@ -9,7 +9,7 @@ "lib/" ], "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/@packages/utils/package.json b/@packages/utils/package.json index 10a112f76d..c8d8158afe 100644 --- a/@packages/utils/package.json +++ b/@packages/utils/package.json @@ -16,7 +16,7 @@ "pkg": "node pkg-check.js --skip-main" }, "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", diff --git a/package.json b/package.json index bc7859bb2d..3be84c0e58 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@packages/*" ], "engines": { - "node": ">=v10.21.0" + "node": ">=v10.22.0" }, "repository": { "type": "git", From 71d4826bf6c4e7770a63d2035b78f21cd98759ba Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2020 12:35:11 +0800 Subject: [PATCH 018/567] chore: update dependency @types/jest to v26.0.7 (#2019) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3be84c0e58..4e4b22e747 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ }, "devDependencies": { "@lerna/project": "3.21.0", - "@types/jest": "26.0.5", + "@types/jest": "26.0.7", "@types/node": "12.12.51", "@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/parser": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index 5b6b844db0..9bf9ce1eeb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2467,10 +2467,10 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@26.0.5": - version "26.0.5" - resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.5.tgz#23a8eecf4764a770ea8d3a0d1ea16b96c822035d" - integrity sha512-heU+7w8snfwfjtcj2H458aTx3m5unIToOJhx75ebHilBiiQ39OIdA18WkG4LP08YKeAoWAGvWg8s+22w/PeJ6w== +"@types/jest@26.0.7": + version "26.0.7" + resolved "https://registry.npmjs.org/@types/jest/-/jest-26.0.7.tgz#495cb1d1818c1699dbc3b8b046baf1c86ef5e324" + integrity sha512-+x0077/LoN6MjqBcVOe1y9dpryWnfDZ+Xfo3EqGeBcfPRJlQp3Lw62RvNlWxuGv7kOEwlHriAa54updi3Jvvwg== dependencies: jest-diff "^25.2.1" pretty-format "^25.2.1" From fb627f228f374a618a978a08a6280bf979e41927 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2020 13:05:40 +0800 Subject: [PATCH 019/567] chore: update dependency @types/node to v12.12.52 (#2021) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4e4b22e747..aa95e1af76 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "devDependencies": { "@lerna/project": "3.21.0", "@types/jest": "26.0.7", - "@types/node": "12.12.51", + "@types/node": "12.12.52", "@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/parser": "^3.0.0", "docsify-cli": "^4.4.0", diff --git a/yarn.lock b/yarn.lock index 9bf9ce1eeb..3850917476 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2500,10 +2500,10 @@ resolved "https://registry.npmjs.org/@types/node/-/node-12.12.26.tgz#213e153babac0ed169d44a6d919501e68f59dea9" integrity sha512-UmUm94/QZvU5xLcUlNR8hA7Ac+fGpO1EG/a8bcWVz0P0LqtxFmun9Y2bbtuckwGboWJIT70DoWq1r3hb56n3DA== -"@types/node@12.12.51": - version "12.12.51" - resolved "https://registry.npmjs.org/@types/node/-/node-12.12.51.tgz#446a67af8c5ff98947d7cef296484c6ad47ddb16" - integrity sha512-6ILqt8iNThALrxDv2Q4LyYFQxULQz96HKNIFd4s9QRQaiHINYeUpLqeU/2IU7YMtvipG1fQVAy//vY8/fX1Y9w== +"@types/node@12.12.52": + version "12.12.52" + resolved "https://registry.npmjs.org/@types/node/-/node-12.12.52.tgz#ed7a845116bf496a9937228cb9c2a0f74092aeb1" + integrity sha512-oNJSI5bzuAH4f4I5JatPf4jytM6vQPWMw8JDOH68mNMyOmSqBkctHBfsyaBU3Su+dhYd8E+tDtPJWUXsyO5Msg== "@types/normalize-package-data@^2.4.0": version "2.4.0" From dbcabfd3d6a3469c2571e5d3cf240fb241685e18 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 25 Jul 2020 12:23:41 +0800 Subject: [PATCH 020/567] chore: update dependency @types/node to v12.12.53 (#2022) Co-authored-by: Renovate Bot --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index aa95e1af76..081b0c44ed 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "devDependencies": { "@lerna/project": "3.21.0", "@types/jest": "26.0.7", - "@types/node": "12.12.52", + "@types/node": "12.12.53", "@typescript-eslint/eslint-plugin": "^3.0.0", "@typescript-eslint/parser": "^3.0.0", "docsify-cli": "^4.4.0", diff --git a/yarn.lock b/yarn.lock index 3850917476..bc8ca24d90 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2500,10 +2500,10 @@ resolved "https://registry.npmjs.org/@types/node/-/node-12.12.26.tgz#213e153babac0ed169d44a6d919501e68f59dea9" integrity sha512-UmUm94/QZvU5xLcUlNR8hA7Ac+fGpO1EG/a8bcWVz0P0LqtxFmun9Y2bbtuckwGboWJIT70DoWq1r3hb56n3DA== -"@types/node@12.12.52": - version "12.12.52" - resolved "https://registry.npmjs.org/@types/node/-/node-12.12.52.tgz#ed7a845116bf496a9937228cb9c2a0f74092aeb1" - integrity sha512-oNJSI5bzuAH4f4I5JatPf4jytM6vQPWMw8JDOH68mNMyOmSqBkctHBfsyaBU3Su+dhYd8E+tDtPJWUXsyO5Msg== +"@types/node@12.12.53": + version "12.12.53" + resolved "https://registry.npmjs.org/@types/node/-/node-12.12.53.tgz#be0d375933c3d15ef2380dafb3b0350ea7021129" + integrity sha512-51MYTDTyCziHb70wtGNFRwB4l+5JNvdqzFSkbDvpbftEgVUBEE+T5f7pROhWMp/fxp07oNIEQZd5bbfAH22ohQ== "@types/normalize-package-data@^2.4.0": version "2.4.0" From 32667e8aa665cf94fe669ba048ad7abaf6abac6e Mon Sep 17 00:00:00 2001 From: initial-wu Date: Sat, 25 Jul 2020 12:40:30 +0800 Subject: [PATCH 021/567] fix: update dependency (#1993) update dependency conventional-changelog-conventionalcommits to v4.3.1 Co-authored-by: initialwu --- @commitlint/config-conventional/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 315f0fcc8f..70589f176b 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -36,7 +36,7 @@ "@commitlint/utils": "^9.1.2" }, "dependencies": { - "conventional-changelog-conventionalcommits": "4.3.0" + "conventional-changelog-conventionalcommits": "4.3.1" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" } From fb9c2cb80e119375a062d08a9fc1cd7ac5450f72 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 25 Jul 2020 12:48:12 +0800 Subject: [PATCH 022/567] chore: update babel monorepo (#2023) Co-authored-by: Renovate Bot --- yarn.lock | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index bc8ca24d90..67505feb3c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3713,6 +3713,14 @@ compare-func@^1.3.1: array-ify "^1.0.0" dot-prop "^3.0.0" +compare-func@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/compare-func/-/compare-func-2.0.0.tgz#fb65e75edbddfd2e568554e8b5b05fff7a51fcb3" + integrity sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA== + dependencies: + array-ify "^1.0.0" + dot-prop "^5.1.0" + compare-versions@^3.6.0: version "3.6.0" resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62" @@ -3842,12 +3850,12 @@ conventional-changelog-codemirror@^0.3.8: dependencies: q "^1.5.1" -conventional-changelog-conventionalcommits@4.3.0: - version "4.3.0" - resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.3.0.tgz#c4205a659f7ca9d7881f29ee78a4e7d6aeb8b3c2" - integrity sha512-oYHydvZKU+bS8LnGqTMlNrrd7769EsuEHKy4fh1oMdvvDi7fem8U+nvfresJ1IDB8K00Mn4LpiA/lR+7Gs6rgg== +conventional-changelog-conventionalcommits@4.3.1: + version "4.3.1" + resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.3.1.tgz#69972639e526e39a24946cb033260648dfecdda0" + integrity sha512-EQa7TJzF7H4EMkfjjJV7d+gragejDqa8NirZnCfRpruCMZqRbAJ8DqmYbkHrYtBYicXqgfM0zkk6HlvLPcyOdQ== dependencies: - compare-func "^1.3.1" + compare-func "^2.0.0" lodash "^4.17.15" q "^1.5.1" @@ -4547,6 +4555,13 @@ dot-prop@^4.1.0, dot-prop@^4.2.0: dependencies: is-obj "^1.0.0" +dot-prop@^5.1.0: + version "5.2.0" + resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz#c34ecc29556dc45f1f4c22697b6f4904e0cc4fcb" + integrity sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A== + dependencies: + is-obj "^2.0.0" + duplexer3@^0.1.4: version "0.1.4" resolved "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" @@ -6406,6 +6421,11 @@ is-obj@^1.0.0, is-obj@^1.0.1: resolved "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + is-path-inside@^1.0.0: version "1.0.1" resolved "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" From 5ebd41f80515b20301164b9ecb1c6c4910f1f8c9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 25 Jul 2020 12:48:23 +0800 Subject: [PATCH 023/567] chore: update dependency globby to v11.0.1 (#2024) Co-authored-by: Renovate Bot From 44144ca7ac2b8e748e717f2dc6be2c5b1ea1f124 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Sat, 25 Jul 2020 13:05:34 +0800 Subject: [PATCH 024/567] chore: conventional-changelog-conventionalcommits to ^4.3.1 --- @commitlint/config-conventional/package.json | 2 +- .../parser-preset-conventional-without-factory/package.json | 2 +- .../fixtures/parser-preset-conventionalcommits/package.json | 2 +- yarn.lock | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 70589f176b..99ae03b27a 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -36,7 +36,7 @@ "@commitlint/utils": "^9.1.2" }, "dependencies": { - "conventional-changelog-conventionalcommits": "4.3.1" + "conventional-changelog-conventionalcommits": "^4.3.1" }, "gitHead": "cb565dfcca3128380b9b3dc274aedbcae34ce5ca" } diff --git a/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json b/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json index bf73e5d3b9..0b3db72ca4 100644 --- a/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json +++ b/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json @@ -2,6 +2,6 @@ "name": "parser-preset-conventional-without-factory", "version": "1.0.0", "devDependencies": { - "conventional-changelog-conventionalcommits": "4.2.3" + "conventional-changelog-conventionalcommits": "^4.3.1" } } diff --git a/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json b/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json index ddf3e0fc81..2fe7e8cbba 100644 --- a/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json +++ b/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json @@ -2,6 +2,6 @@ "name": "parser-preset-conventionalcommits", "version": "1.0.0", "devDependencies": { - "conventional-changelog-conventionalcommits": "4.2.3" + "conventional-changelog-conventionalcommits": "^4.3.1" } } diff --git a/yarn.lock b/yarn.lock index 67505feb3c..b686fa2a70 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3850,7 +3850,7 @@ conventional-changelog-codemirror@^0.3.8: dependencies: q "^1.5.1" -conventional-changelog-conventionalcommits@4.3.1: +conventional-changelog-conventionalcommits@^4.3.1: version "4.3.1" resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.3.1.tgz#69972639e526e39a24946cb033260648dfecdda0" integrity sha512-EQa7TJzF7H4EMkfjjJV7d+gragejDqa8NirZnCfRpruCMZqRbAJ8DqmYbkHrYtBYicXqgfM0zkk6HlvLPcyOdQ== From 5fd27fdcd2d88435257f888d832fc19c5bbc037f Mon Sep 17 00:00:00 2001 From: hannes Date: Sun, 26 Jul 2020 13:27:38 +0800 Subject: [PATCH 025/567] Chore/prettier 2.x (#2025) * chore: update dependency prettier to v2 * chore: update prettier to v2.x * chore: apply prettier v2.x format fixes * chore: only run all circle-ci tasks on node LTS * fix: run prettier fixes from docker (#2027) Co-authored-by: Renovate Bot Co-authored-by: Cedric van Putten --- .circleci/config.yml | 2 +- .eslintrc.js | 24 ++-- @alias/commitlint/cli.test.js | 6 +- @commitlint/cli/src/cli.test.ts | 6 +- @commitlint/cli/src/cli.ts | 62 +++++----- .../config-angular-type-enum/README.md | 8 +- @commitlint/config-angular-type-enum/index.js | 4 +- @commitlint/config-angular/index.js | 6 +- @commitlint/config-conventional/index.js | 10 +- @commitlint/config-conventional/index.test.js | 44 ++++---- @commitlint/config-lerna-scopes/index.js | 14 +-- @commitlint/config-lerna-scopes/index.test.js | 10 +- @commitlint/config-patternplate/index.js | 13 +-- @commitlint/core/src/core.ts | 2 +- @commitlint/ensure/jest.config.js | 2 +- @commitlint/ensure/src/index.test.ts | 8 +- @commitlint/ensure/src/max-line-length.ts | 2 +- @commitlint/execute-rule/jest.config.js | 2 +- @commitlint/format/README.md | 18 +-- @commitlint/format/jest.config.js | 2 +- @commitlint/format/src/format.test.ts | 106 +++++++++--------- @commitlint/format/src/format.ts | 12 +- @commitlint/is-ignored/src/defaults.ts | 2 +- @commitlint/is-ignored/src/is-ignored.test.ts | 24 ++-- @commitlint/is-ignored/src/is-ignored.ts | 6 +- @commitlint/lint/README.md | 4 +- @commitlint/lint/src/commit-message.ts | 2 +- @commitlint/lint/src/lint.test.ts | 86 +++++++------- @commitlint/lint/src/lint.ts | 26 +++-- @commitlint/load/README.md | 2 +- @commitlint/load/src/load.test.ts | 82 +++++++------- @commitlint/load/src/load.ts | 18 +-- .../load/src/utils/load-parser-opts.ts | 4 +- .../load/src/utils/load-plugin.test.ts | 4 +- @commitlint/load/src/utils/load-plugin.ts | 4 +- @commitlint/parse/src/index.test.ts | 43 ++++--- @commitlint/parse/src/index.ts | 2 +- @commitlint/prompt-cli/cli.js | 6 +- @commitlint/prompt-cli/cli.test.js | 2 +- @commitlint/prompt/src/input.js | 12 +- @commitlint/prompt/src/library/format.js | 2 +- .../prompt/src/library/get-forced-case-fn.js | 18 +-- .../src/library/get-forced-leading-fn.js | 6 +- .../prompt/src/library/get-has-name.js | 2 +- @commitlint/prompt/src/library/get-prompt.js | 28 ++--- .../prompt/src/library/get-prompt.test.js | 12 +- @commitlint/prompt/src/library/meta.js | 4 +- @commitlint/prompt/src/settings.js | 36 +++--- @commitlint/read/README.md | 4 +- @commitlint/read/src/get-edit-file-path.ts | 2 +- @commitlint/read/src/stream-to-promise.ts | 2 +- @commitlint/resolve-extends/jest.config.js | 2 +- @commitlint/resolve-extends/src/index.test.ts | 52 ++++----- @commitlint/resolve-extends/src/index.ts | 2 +- @commitlint/rules/src/body-case.test.ts | 4 +- @commitlint/rules/src/body-case.ts | 2 +- @commitlint/rules/src/body-empty.test.ts | 4 +- @commitlint/rules/src/body-empty.ts | 2 +- .../rules/src/body-leading-blank.test.ts | 4 +- @commitlint/rules/src/body-leading-blank.ts | 2 +- @commitlint/rules/src/body-max-length.test.ts | 4 +- @commitlint/rules/src/body-max-length.ts | 2 +- .../rules/src/body-max-line-length.test.ts | 4 +- @commitlint/rules/src/body-max-line-length.ts | 2 +- @commitlint/rules/src/body-min-length.test.ts | 4 +- @commitlint/rules/src/body-min-length.ts | 2 +- @commitlint/rules/src/footer-empty.test.ts | 4 +- @commitlint/rules/src/footer-empty.ts | 2 +- .../rules/src/footer-leading-blank.test.ts | 4 +- @commitlint/rules/src/footer-leading-blank.ts | 6 +- .../rules/src/footer-max-length.test.ts | 4 +- @commitlint/rules/src/footer-max-length.ts | 2 +- .../rules/src/footer-max-line-length.test.ts | 4 +- .../rules/src/footer-max-line-length.ts | 2 +- .../rules/src/footer-min-length.test.ts | 4 +- @commitlint/rules/src/footer-min-length.ts | 2 +- @commitlint/rules/src/header-case.test.ts | 16 +-- @commitlint/rules/src/header-case.ts | 10 +- .../rules/src/header-full-stop.test.ts | 4 +- @commitlint/rules/src/header-full-stop.ts | 2 +- .../rules/src/header-max-length.test.ts | 4 +- @commitlint/rules/src/header-max-length.ts | 4 +- .../rules/src/header-min-length.test.ts | 4 +- @commitlint/rules/src/header-min-length.ts | 4 +- @commitlint/rules/src/index.test.ts | 4 +- @commitlint/rules/src/index.ts | 2 +- .../rules/src/references-empty.test.ts | 6 +- @commitlint/rules/src/references-empty.ts | 2 +- @commitlint/rules/src/scope-case.test.ts | 16 +-- @commitlint/rules/src/scope-case.ts | 12 +- @commitlint/rules/src/scope-empty.test.ts | 4 +- @commitlint/rules/src/scope-empty.ts | 2 +- @commitlint/rules/src/scope-enum.test.ts | 4 +- @commitlint/rules/src/scope-enum.ts | 6 +- .../rules/src/scope-max-length.test.ts | 4 +- @commitlint/rules/src/scope-max-length.ts | 2 +- .../rules/src/scope-min-length.test.ts | 4 +- @commitlint/rules/src/scope-min-length.ts | 2 +- @commitlint/rules/src/signed-off-by.test.ts | 4 +- @commitlint/rules/src/signed-off-by.ts | 2 +- @commitlint/rules/src/subject-case.test.ts | 16 +-- @commitlint/rules/src/subject-case.ts | 10 +- @commitlint/rules/src/subject-empty.test.ts | 4 +- @commitlint/rules/src/subject-empty.ts | 2 +- .../rules/src/subject-full-stop.test.ts | 4 +- @commitlint/rules/src/subject-full-stop.ts | 2 +- .../rules/src/subject-max-length.test.ts | 4 +- @commitlint/rules/src/subject-max-length.ts | 2 +- .../rules/src/subject-min-length.test.ts | 4 +- @commitlint/rules/src/subject-min-length.ts | 2 +- @commitlint/rules/src/type-case.test.ts | 18 +-- @commitlint/rules/src/type-case.ts | 10 +- @commitlint/rules/src/type-empty.test.ts | 4 +- @commitlint/rules/src/type-empty.ts | 2 +- @commitlint/rules/src/type-enum.test.ts | 4 +- @commitlint/rules/src/type-enum.ts | 4 +- @commitlint/rules/src/type-max-length.test.ts | 4 +- @commitlint/rules/src/type-max-length.ts | 2 +- @commitlint/rules/src/type-min-length.test.ts | 4 +- @commitlint/rules/src/type-min-length.ts | 2 +- @commitlint/to-lines/jest.config.js | 2 +- @commitlint/to-lines/src/index.test.ts | 2 +- @commitlint/travis-cli/src/cli.js | 12 +- @commitlint/travis-cli/src/cli.test.js | 24 ++-- @commitlint/types/src/rules.ts | 4 +- @packages/babel-preset-commitlint/index.js | 14 +-- @packages/test/src/fix.ts | 2 +- @packages/test/src/git.ts | 2 +- @packages/utils/dep-check.js | 8 +- @packages/utils/pkg-check.js | 52 ++++----- babel.config.js | 2 +- docs/concepts-shareable-config.md | 8 +- docs/guides-upgrade.md | 4 +- docs/reference-api.md | 68 +++++------ docs/reference-configuration.md | 24 ++-- docs/reference-plugins.md | 18 +-- jest.config.js | 2 +- package.json | 2 +- yarn.lock | 8 +- 139 files changed, 705 insertions(+), 715 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 85b48d6452..268a3b08ae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,7 +90,7 @@ jobs: docker: - image: node:14 steps: - - run-all + - run-tests windows-v12: executor: win/default steps: diff --git a/.eslintrc.js b/.eslintrc.js index 404882ffab..21cb57c31e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,14 +3,14 @@ module.exports = { plugins: ['@typescript-eslint', 'jest', 'import'], env: { es6: true, - node: true + node: true, }, parserOptions: { sourceType: 'module', ecmaVersion: 11, ecmaFeatures: { - jsx: false - } + jsx: false, + }, }, extends: ['eslint:recommended', 'prettier'], rules: { @@ -25,7 +25,7 @@ module.exports = { // Prevent importing the default as if it were named 'import/no-named-default': 'error', // Forbid a module from importing itself - 'import/no-self-import': 'error' + 'import/no-self-import': 'error', // Enable after https://github.com/benmosher/eslint-plugin-import/issues/1650 is fixed // Forbid the use of extraneous packages @@ -41,7 +41,7 @@ module.exports = { extends: [ 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended', - 'prettier/@typescript-eslint' + 'prettier/@typescript-eslint', ], rules: { '@typescript-eslint/no-unused-vars': 'off', @@ -54,21 +54,21 @@ module.exports = { // TODO: enable those rules? 'no-empty': 'off', - 'no-var': 'off' - } + 'no-var': 'off', + }, }, { files: ['*.test.ts', '*.test.js'], env: { - jest: true + jest: true, }, extends: ['plugin:jest/recommended'], rules: { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-var-requires': 'off', // disallow non-import statements appearing before import statements - 'import/first': 'off' - } - } - ] + 'import/first': 'off', + }, + }, + ], }; diff --git a/@alias/commitlint/cli.test.js b/@alias/commitlint/cli.test.js index ad5110be83..390b1672f1 100644 --- a/@alias/commitlint/cli.test.js +++ b/@alias/commitlint/cli.test.js @@ -7,12 +7,12 @@ function cli(args, options, input) { const c = execa(bin, args, { cwd: options.cwd, env: options.env, - input: input + input: input, }); - return c.catch(err => err); + return c.catch((err) => err); } -const fixBootstrap = fixture => fix.bootstrap(fixture, __dirname); +const fixBootstrap = (fixture) => fix.bootstrap(fixture, __dirname); test('should reprint input from stdin', async () => { const cwd = await fixBootstrap('fixtures/default'); diff --git a/@commitlint/cli/src/cli.test.ts b/@commitlint/cli/src/cli.test.ts index 10f397cf4f..333dbc27d9 100644 --- a/@commitlint/cli/src/cli.test.ts +++ b/@commitlint/cli/src/cli.test.ts @@ -17,7 +17,7 @@ const cli = (args: string[], options: TestOptions) => { cwd: options.cwd, env: options.env, input: input, - reject: false + reject: false, }); }; }; @@ -239,7 +239,7 @@ test('should allow reading of environment variables for edit file, succeeding if await fs.writeFile(path.join(cwd, 'commit-msg-file'), 'foo'); const actual = await cli(['--env', 'variable'], { cwd, - env: {variable: 'commit-msg-file'} + env: {variable: 'commit-msg-file'}, })(); expect(actual.exitCode).toBe(0); }); @@ -252,7 +252,7 @@ test('should allow reading of environment variables for edit file, failing if in ); const actual = await cli(['--env', 'variable'], { cwd, - env: {variable: 'commit-msg-file'} + env: {variable: 'commit-msg-file'}, })(); expect(actual.exitCode).toBe(1); }); diff --git a/@commitlint/cli/src/cli.ts b/@commitlint/cli/src/cli.ts index 6af2663f88..e1d7b5bfb5 100644 --- a/@commitlint/cli/src/cli.ts +++ b/@commitlint/cli/src/cli.ts @@ -14,7 +14,7 @@ import { ParserOptions, ParserPreset, QualifiedConfig, - Formatter + Formatter, } from '@commitlint/types'; import {CliError} from './cli-error'; @@ -26,77 +26,77 @@ const cli = yargs alias: 'c', default: true, description: 'toggle colored output', - type: 'boolean' + type: 'boolean', }, config: { alias: 'g', description: 'path to the config file', - type: 'string' + type: 'string', }, cwd: { alias: 'd', default: process.cwd(), defaultDescription: '(Working Directory)', description: 'directory to execute in', - type: 'string' + type: 'string', }, edit: { alias: 'e', default: false, description: 'read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG', - type: 'string' + type: 'string', }, env: { alias: 'E', description: 'check message in the file at path given by environment variable value', - type: 'string' + type: 'string', }, extends: { alias: 'x', description: 'array of shareable configurations to extend', - type: 'array' + type: 'array', }, 'help-url': { alias: 'H', type: 'string', - description: 'help url in error message' + description: 'help url in error message', }, from: { alias: 'f', description: 'lower end of the commit range to lint; applies if edit=false', - type: 'string' + type: 'string', }, format: { alias: 'o', description: 'output format of the results', - type: 'string' + type: 'string', }, 'parser-preset': { alias: 'p', description: 'configuration preset to use for conventional-commits-parser', - type: 'string' + type: 'string', }, quiet: { alias: 'q', default: false, description: 'toggle console output', - type: 'boolean' + type: 'boolean', }, to: { alias: 't', description: 'upper end of the commit range to lint; applies if edit=false', - type: 'string' + type: 'string', }, verbose: { alias: 'V', type: 'boolean', - description: 'enable verbose output for reports without problems' - } + description: 'enable verbose output for reports without problems', + }, }) .version( 'version', @@ -112,7 +112,7 @@ const cli = yargs ) .strict(); -main(cli.argv).catch(err => { +main(cli.argv).catch((err) => { setTimeout(() => { if (err.type === pkg.name) { process.exit(1); @@ -132,12 +132,12 @@ async function main(options: CliFlags) { to: flags.to, from: flags.from, edit: flags.edit, - cwd: flags.cwd + cwd: flags.cwd, })); const messages = (Array.isArray(input) ? input : [input]) - .filter(message => typeof message === 'string') - .filter(message => message.trim() !== '') + .filter((message) => typeof message === 'string') + .filter((message) => message.trim() !== '') .filter(Boolean); if (messages.length === 0 && !checkFromRepository(flags)) { @@ -157,7 +157,7 @@ async function main(options: CliFlags) { parserOpts: {}, plugins: {}, ignores: [], - defaultIgnores: true + defaultIgnores: true, }; if (parserOpts) { opts.parserOpts = parserOpts; @@ -179,7 +179,7 @@ async function main(options: CliFlags) { } const results = await Promise.all( - messages.map(message => lint(message, loaded.rules, opts)) + messages.map((message) => lint(message, loaded.rules, opts)) ); if (Object.keys(loaded.rules).length === 0) { @@ -199,12 +199,12 @@ async function main(options: CliFlags) { message: [ 'Please add rules to your `commitlint.config.js`', ' - Getting started guide: https://git.io/fhHij', - ' - Example config: https://git.io/fhHip' - ].join('\n') - } + ' - Example config: https://git.io/fhHip', + ].join('\n'), + }, ], warnings: [], - input + input, }); } @@ -226,7 +226,7 @@ async function main(options: CliFlags) { valid: true, errorCount: 0, warningCount: 0, - results: [] + results: [], } ); @@ -235,7 +235,7 @@ async function main(options: CliFlags) { verbose: flags.verbose, helpUrl: flags['help-url'] ? flags['help-url'].trim() - : 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' + : 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint', }); if (!flags.quiet && output !== '') { @@ -267,7 +267,7 @@ function normalizeFlags(flags: CliFlags): CliFlags { const edit = getEditValue(flags); return { ...flags, - edit + edit, }; } @@ -275,11 +275,7 @@ function getEditValue(flags: CliFlags) { if (flags.env) { if (!(flags.env in process.env)) { throw new Error( - `Recieved '${ - flags.env - }' as value for -E | --env, but environment variable '${ - flags.env - }' is not available globally` + `Recieved '${flags.env}' as value for -E | --env, but environment variable '${flags.env}' is not available globally` ); } return process.env[flags.env]; diff --git a/@commitlint/config-angular-type-enum/README.md b/@commitlint/config-angular-type-enum/README.md index ad912be470..900ed600b2 100644 --- a/@commitlint/config-angular-type-enum/README.md +++ b/@commitlint/config-angular-type-enum/README.md @@ -28,14 +28,14 @@ const types = require('@commitlint/config-angular-type-enum'); // Use as rule creating errors for non-allowed types module.exports = { rules: { - ...types.rules - } + ...types.rules, + }, }; // Warn for non-allowed types module.exports = { rules: { - 'type-enum': [1, 'always', types.values()] - } + 'type-enum': [1, 'always', types.values()], + }, }; ``` diff --git a/@commitlint/config-angular-type-enum/index.js b/@commitlint/config-angular-type-enum/index.js index 4d9ff71ab8..3818ada7b6 100644 --- a/@commitlint/config-angular-type-enum/index.js +++ b/@commitlint/config-angular-type-enum/index.js @@ -8,11 +8,11 @@ const types = [ 'refactor', 'revert', 'style', - 'test' + 'test', ]; module.exports.rules = { - 'type-enum': [2, 'always', types] + 'type-enum': [2, 'always', types], }; module.exports.value = () => types; diff --git a/@commitlint/config-angular/index.js b/@commitlint/config-angular/index.js index 00c76b49d3..57c82621c7 100644 --- a/@commitlint/config-angular/index.js +++ b/@commitlint/config-angular/index.js @@ -9,12 +9,12 @@ module.exports = { 'subject-case': [ 2, 'never', - ['sentence-case', 'start-case', 'pascal-case', 'upper-case'] + ['sentence-case', 'start-case', 'pascal-case', 'upper-case'], ], 'subject-empty': [2, 'never'], 'subject-full-stop': [2, 'never', '.'], 'type-case': [2, 'always', 'lower-case'], 'type-empty': [2, 'never'], - 'type-enum': typeEnum.rules['type-enum'] - } + 'type-enum': typeEnum.rules['type-enum'], + }, }; diff --git a/@commitlint/config-conventional/index.js b/@commitlint/config-conventional/index.js index f7bff45ce8..cac9d3017f 100644 --- a/@commitlint/config-conventional/index.js +++ b/@commitlint/config-conventional/index.js @@ -10,7 +10,7 @@ module.exports = { 'subject-case': [ 2, 'never', - ['sentence-case', 'start-case', 'pascal-case', 'upper-case'] + ['sentence-case', 'start-case', 'pascal-case', 'upper-case'], ], 'subject-empty': [2, 'never'], 'subject-full-stop': [2, 'never', '.'], @@ -30,8 +30,8 @@ module.exports = { 'refactor', 'revert', 'style', - 'test' - ] - ] - } + 'test', + ], + ], + }, }; diff --git a/@commitlint/config-conventional/index.test.js b/@commitlint/config-conventional/index.test.js index ac0a0c2ecb..7f05f14ce2 100644 --- a/@commitlint/config-conventional/index.test.js +++ b/@commitlint/config-conventional/index.test.js @@ -10,7 +10,7 @@ const messages = { 'fix(scope): Some message', 'fix(scope): Some Message', 'fix(scope): SomeMessage', - 'fix(scope): SOMEMESSAGE' + 'fix(scope): SOMEMESSAGE', ], invalidSubjectEmpty: 'fix:', invalidSubjectFullStop: 'fix: some message.', @@ -28,8 +28,8 @@ const messages = { 'fix(scope): some message', 'fix(scope): some Message', 'fix(scope): some message\n\nBREAKING CHANGE: it will be significant!', - 'fix(scope): some message\n\nbody' - ] + 'fix(scope): some message\n\nbody', + ], }; const errors = { @@ -38,64 +38,64 @@ const errors = { message: 'type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]', name: 'type-enum', - valid: false + valid: false, }, typeCase: { level: 2, message: 'type must be lower-case', name: 'type-case', - valid: false + valid: false, }, typeEmpty: { level: 2, message: 'type may not be empty', name: 'type-empty', - valid: false + valid: false, }, scopeCase: { level: 2, message: 'scope must be lower-case', name: 'scope-case', - valid: false + valid: false, }, subjectCase: { level: 2, message: 'subject must not be sentence-case, start-case, pascal-case, upper-case', name: 'subject-case', - valid: false + valid: false, }, subjectEmpty: { level: 2, message: 'subject may not be empty', name: 'subject-empty', - valid: false + valid: false, }, subjectFullStop: { level: 2, message: 'subject may not end with full stop', name: 'subject-full-stop', - valid: false + valid: false, }, headerMaxLength: { level: 2, message: 'header must not be longer than 100 characters, current length is 112', name: 'header-max-length', - valid: false + valid: false, }, footerMaxLineLength: { level: 2, message: "footer's lines must not be longer than 100 characters", name: 'footer-max-line-length', - valid: false + valid: false, }, bodyMaxLineLength: { level: 2, message: "body's lines must not be longer than 100 characters", name: 'body-max-line-length', - valid: false - } + valid: false, + }, }; const warnings = { @@ -103,14 +103,14 @@ const warnings = { level: 1, message: 'footer must have leading blank line', name: 'footer-leading-blank', - valid: false + valid: false, }, bodyLeadingBlank: { level: 1, message: 'body must have leading blank line', name: 'body-leading-blank', - valid: false - } + valid: false, + }, }; test('type-enum', async () => { @@ -143,10 +143,12 @@ test('scope-case', async () => { test('subject-case', async () => { const invalidInputs = await Promise.all( - messages.invalidSubjectCases.map(invalidInput => lint(invalidInput, rules)) + messages.invalidSubjectCases.map((invalidInput) => + lint(invalidInput, rules) + ) ); - invalidInputs.forEach(result => { + invalidInputs.forEach((result) => { expect(result.valid).toBe(false); expect(result.errors).toEqual([errors.subjectCase]); }); @@ -203,10 +205,10 @@ test('body-max-line-length', async () => { test('valid messages', async () => { const validInputs = await Promise.all( - messages.validMessages.map(input => lint(input, rules)) + messages.validMessages.map((input) => lint(input, rules)) ); - validInputs.forEach(result => { + validInputs.forEach((result) => { expect(result.valid).toBe(true); expect(result.errors).toEqual([]); expect(result.warnings).toEqual([]); diff --git a/@commitlint/config-lerna-scopes/index.js b/@commitlint/config-lerna-scopes/index.js index 9a9a780255..8ad84c3502 100644 --- a/@commitlint/config-lerna-scopes/index.js +++ b/@commitlint/config-lerna-scopes/index.js @@ -6,9 +6,9 @@ const semver = require('semver'); module.exports = { utils: {getPackages}, rules: { - 'scope-enum': ctx => - getPackages(ctx).then(packages => [2, 'always', packages]) - } + 'scope-enum': (ctx) => + getPackages(ctx).then((packages) => [2, 'always', packages]), + }, }; function getPackages(context) { @@ -25,7 +25,7 @@ function getPackages(context) { const repository = new Repository(cwd); return PackageUtilities.getPackages({ packageConfigs: repository.packageConfigs, - rootPath: cwd + rootPath: cwd, }); } @@ -33,10 +33,10 @@ function getPackages(context) { const project = new Project(cwd); return project.getPackages(); }) - .then(packages => { + .then((packages) => { return packages - .map(pkg => pkg.name) - .map(name => (name.charAt(0) === '@' ? name.split('/')[1] : name)); + .map((pkg) => pkg.name) + .map((name) => (name.charAt(0) === '@' ? name.split('/')[1] : name)); }); } diff --git a/@commitlint/config-lerna-scopes/index.test.js b/@commitlint/config-lerna-scopes/index.test.js index c7661b833e..1c1b1797b1 100644 --- a/@commitlint/config-lerna-scopes/index.test.js +++ b/@commitlint/config-lerna-scopes/index.test.js @@ -8,23 +8,23 @@ test('exports rules key', () => { test('rules hold object', () => { expect(config).toMatchObject({ - rules: expect.any(Object) + rules: expect.any(Object), }); }); test('rules contain scope-enum', () => { expect(config).toMatchObject({ rules: { - 'scope-enum': expect.anything() - } + 'scope-enum': expect.anything(), + }, }); }); test('scope-enum is function', () => { expect(config).toMatchObject({ rules: { - 'scope-enum': expect.any(Function) - } + 'scope-enum': expect.any(Function), + }, }); }); diff --git a/@commitlint/config-patternplate/index.js b/@commitlint/config-patternplate/index.js index 905613babe..38755dc112 100644 --- a/@commitlint/config-patternplate/index.js +++ b/@commitlint/config-patternplate/index.js @@ -4,23 +4,20 @@ const merge = require('lodash/merge'); function pathToId(root, filePath) { const relativePath = path.relative(root, filePath); - return path - .dirname(relativePath) - .split(path.sep) - .join('/'); + return path.dirname(relativePath).split(path.sep).join('/'); } function getPatternIDs() { const root = path.resolve(process.cwd(), './patterns'); const glob = path.resolve(root, '**/pattern.json'); - return globby(glob).then(results => - results.map(result => pathToId(root, result)) + return globby(glob).then((results) => + results.map((result) => pathToId(root, result)) ); } module.exports = merge(require('@commitlint/config-angular'), { rules: { 'scope-enum': () => - getPatternIDs().then(ids => [2, 'always', ids.concat(['system'])]) - } + getPatternIDs().then((ids) => [2, 'always', ids.concat(['system'])]), + }, }); diff --git a/@commitlint/core/src/core.ts b/@commitlint/core/src/core.ts index 2ca69e66be..614c17ac14 100644 --- a/@commitlint/core/src/core.ts +++ b/@commitlint/core/src/core.ts @@ -7,5 +7,5 @@ export = { format, load, lint, - read + read, }; diff --git a/@commitlint/ensure/jest.config.js b/@commitlint/ensure/jest.config.js index 20d2ea60f5..1be638f622 100644 --- a/@commitlint/ensure/jest.config.js +++ b/@commitlint/ensure/jest.config.js @@ -1,4 +1,4 @@ module.exports = { preset: 'ts-jest', - testEnvironment: 'node' + testEnvironment: 'node', }; diff --git a/@commitlint/ensure/src/index.test.ts b/@commitlint/ensure/src/index.test.ts index 21e3147f31..93c23c2188 100644 --- a/@commitlint/ensure/src/index.test.ts +++ b/@commitlint/ensure/src/index.test.ts @@ -6,22 +6,22 @@ import * as ensure from '.'; test('exports all checkers', async () => { const ignore = ['types']; const expected = (await glob('*.ts')) - .map(f => camelCase(f)) + .map((f) => camelCase(f)) .sort() - .filter(item => !ignore.includes(item)); + .filter((item) => !ignore.includes(item)); const actual = Object.keys(ensure).sort(); expect(actual).toEqual(expected); }); test('rules export functions', () => { const actual = Object.values(ensure); - expect(actual.every(rule => typeof rule === 'function')).toBe(true); + expect(actual.every((rule) => typeof rule === 'function')).toBe(true); }); async function glob(pattern: string): Promise { const files = await globby(pattern, { ignore: ['**/index.ts', '**/*.test.ts'], - cwd: __dirname + cwd: __dirname, }); return files.map(relative).map(toExport); } diff --git a/@commitlint/ensure/src/max-line-length.ts b/@commitlint/ensure/src/max-line-length.ts index 6132b3daa6..6b607e98fe 100644 --- a/@commitlint/ensure/src/max-line-length.ts +++ b/@commitlint/ensure/src/max-line-length.ts @@ -2,4 +2,4 @@ import ensure from './max-length'; export default (value: string, max: number): boolean => typeof value === 'string' && - value.split(/\r?\n/).every(line => ensure(line, max)); + value.split(/\r?\n/).every((line) => ensure(line, max)); diff --git a/@commitlint/execute-rule/jest.config.js b/@commitlint/execute-rule/jest.config.js index 20d2ea60f5..1be638f622 100644 --- a/@commitlint/execute-rule/jest.config.js +++ b/@commitlint/execute-rule/jest.config.js @@ -1,4 +1,4 @@ module.exports = { preset: 'ts-jest', - testEnvironment: 'node' + testEnvironment: 'node', }; diff --git a/@commitlint/format/README.md b/@commitlint/format/README.md index 7bd79eab97..284829f948 100644 --- a/@commitlint/format/README.md +++ b/@commitlint/format/README.md @@ -27,28 +27,28 @@ const output = format( valid: false, level: 2, name: 'some-error', - message: 'This will show up red as it has level 2' - } + message: 'This will show up red as it has level 2', + }, ], warnings: [ { valid: true, level: 0, name: 'some-hint', - message: 'This will not show up as it has level 0' + message: 'This will not show up as it has level 0', }, { valid: false, level: 1, name: 'some-warning', - message: 'This will show up yellow as it has level 1' - } - ] - } - ] + message: 'This will show up yellow as it has level 1', + }, + ], + }, + ], }, { - color: false + color: false, } ); diff --git a/@commitlint/format/jest.config.js b/@commitlint/format/jest.config.js index 20d2ea60f5..1be638f622 100644 --- a/@commitlint/format/jest.config.js +++ b/@commitlint/format/jest.config.js @@ -1,4 +1,4 @@ module.exports = { preset: 'ts-jest', - testEnvironment: 'node' + testEnvironment: 'node', }; diff --git a/@commitlint/format/src/format.test.ts b/@commitlint/format/src/format.test.ts index 522dc9add0..745da36b21 100644 --- a/@commitlint/format/src/format.test.ts +++ b/@commitlint/format/src/format.test.ts @@ -21,12 +21,12 @@ test('returns empty summary if verbose', () => { results: [ { errors: [], - warnings: [] - } - ] + warnings: [], + }, + ], }, { - verbose: true + verbose: true, } ); @@ -41,11 +41,11 @@ test('returns a correct summary of empty .errors and .warnings', () => { { level: 2, name: 'error-name', - message: 'There was an error' - } - ] - } - ] + message: 'There was an error', + }, + ], + }, + ], }); const actualWarning = format({ @@ -55,11 +55,11 @@ test('returns a correct summary of empty .errors and .warnings', () => { { level: 1, name: 'warning-name', - message: 'There was a problem' - } - ] - } - ] + message: 'There was a problem', + }, + ], + }, + ], }); expect(actualError).toContain('There was an error'); @@ -76,11 +76,11 @@ test('uses appropriate signs by default', () => { { level: 2, name: 'error-name', - message: 'There was an error' - } - ] - } - ] + message: 'There was an error', + }, + ], + }, + ], }); const actualWarning = format({ @@ -90,11 +90,11 @@ test('uses appropriate signs by default', () => { { level: 1, name: 'warning-name', - message: 'There was a problem' - } - ] - } - ] + message: 'There was a problem', + }, + ], + }, + ], }); expect(actualError).toContain('✖'); @@ -111,11 +111,11 @@ test('uses signs as configured', () => { { level: 2, name: 'error-name', - message: 'There was an error' - } - ] - } - ] + message: 'There was an error', + }, + ], + }, + ], }, options ); @@ -128,11 +128,11 @@ test('uses signs as configured', () => { { level: 1, name: 'warning-name', - message: 'There was a problem' - } - ] - } - ] + message: 'There was a problem', + }, + ], + }, + ], }, options ); @@ -153,9 +153,9 @@ test('format result transforms error to text', () => { { level: 2, name: 'error-name', - message: 'There was an error' - } - ] + message: 'There was an error', + }, + ], }); const actualText = actual.join('\n'); @@ -171,9 +171,9 @@ test('format result transforms warning to text', () => { { level: 1, name: 'warning-name', - message: 'There was a warning' - } - ] + message: 'There was a warning', + }, + ], }); const actualText = actual.join('\n'); @@ -190,12 +190,12 @@ test('format result prints help for errors', () => { { level: 2, name: 'error-name', - message: 'There was an error' - } - ] + message: 'There was an error', + }, + ], }, { - helpUrl: 'https://example.com' + helpUrl: 'https://example.com', } ); @@ -211,12 +211,12 @@ test('format result prints help for warnings', () => { { level: 2, name: 'warning-name', - message: 'There was a warning' - } - ] + message: 'There was a warning', + }, + ], }, { - helpUrl: 'https://example.com' + helpUrl: 'https://example.com', } ); @@ -234,12 +234,12 @@ test('format result help cotains options.helpUrl', () => { { level: 2, name: 'warning-name', - message: 'There was a warning' - } - ] + message: 'There was a warning', + }, + ], }, { - helpUrl + helpUrl, } ); @@ -250,7 +250,7 @@ test('format result help cotains options.helpUrl', () => { test('format result omits help for empty problems', () => { const actual = formatResult({ - warnings: [] + warnings: [], }); expect(actual).not.toEqual( diff --git a/@commitlint/format/src/format.ts b/@commitlint/format/src/format.ts index cf75cf824d..a0707ca413 100644 --- a/@commitlint/format/src/format.ts +++ b/@commitlint/format/src/format.ts @@ -4,7 +4,7 @@ import { FormattableReport, FormatOptions, FormattableResult, - WithInput + WithInput, } from '@commitlint/types'; const DEFAULT_SIGNS = [' ', '⚠', '✖'] as const; @@ -20,8 +20,8 @@ export function format( const fr = (result: FormattableResult) => formatResult(result, options); return results - .filter(r => Array.isArray(r.warnings) || Array.isArray(r.errors)) - .map(result => [...fi(result), ...fr(result)]) + .filter((r) => Array.isArray(r.warnings) || Array.isArray(r.errors)) + .map((result) => [...fi(result), ...fr(result)]) .reduce( (acc, item) => (Array.isArray(item) ? [...acc, ...item] : [...acc, item]), [] @@ -59,11 +59,11 @@ export function formatResult( const { signs = DEFAULT_SIGNS, colors = DEFAULT_COLORS, - color: enabled = true + color: enabled = true, } = options; const {errors = [], warnings = []} = result; - const problems = [...errors, ...warnings].map(problem => { + const problems = [...errors, ...warnings].map((problem) => { const sign = signs[problem.level] || ''; const color: ChalkColor = colors[problem.level] || ('white' as const); const decoration = enabled ? ((chalk as any)[color] as any)(sign) : sign; @@ -96,7 +96,7 @@ export function formatResult( hasProblems ? '' : undefined, fmtSummary, help, - help ? '' : undefined + help ? '' : undefined, ].filter((line): line is string => typeof line === 'string'); } diff --git a/@commitlint/is-ignored/src/defaults.ts b/@commitlint/is-ignored/src/defaults.ts index 59a5884922..79ef2c18fb 100644 --- a/@commitlint/is-ignored/src/defaults.ts +++ b/@commitlint/is-ignored/src/defaults.ts @@ -24,5 +24,5 @@ export const wildcards: Matcher[] = [ test(/^Merged (.*?)(in|into) (.*)/), test(/^Merge remote-tracking branch (.*)/), test(/^Automatic merge(.*)/), - test(/^Auto-merged (.*?) into (.*)/) + test(/^Auto-merged (.*?) into (.*)/), ]; diff --git a/@commitlint/is-ignored/src/is-ignored.test.ts b/@commitlint/is-ignored/src/is-ignored.test.ts index e50524dc9c..b2fe87d00f 100644 --- a/@commitlint/is-ignored/src/is-ignored.test.ts +++ b/@commitlint/is-ignored/src/is-ignored.test.ts @@ -14,20 +14,20 @@ const VERSION_MESSAGES = [ '0.0.1-some-crazy-tag.999', '0.0.1-1e69d54', 'v0.0.1', - ' v3.0.0' + ' v3.0.0', ]; const AMENDMENTS = [ 'Signed-off-by: Developer ', 'Change-Id: I895114872a515a269487a683124b63303818e19c', - 'Signed-off-by: Developer \nChange-Id: I895114872a515a269487a683124b63303818e19c' + 'Signed-off-by: Developer \nChange-Id: I895114872a515a269487a683124b63303818e19c', ]; const AMENDED_VERSION_MESSAGES = VERSION_MESSAGES.reduce( (results, message) => { return [ ...results, - ...AMENDMENTS.map(amendment => `${message}\n\n${amendment}`) + ...AMENDMENTS.map((amendment) => `${message}\n\n${amendment}`), ]; }, [] @@ -84,20 +84,20 @@ test('should return true for revert commits', () => { }); test('should ignore npm semver commits', () => { - VERSION_MESSAGES.forEach(message => expect(isIgnored(message)).toBe(true)); + VERSION_MESSAGES.forEach((message) => expect(isIgnored(message)).toBe(true)); }); test('should ignore npm semver commits with chore', () => { - VERSION_MESSAGES.forEach(message => + VERSION_MESSAGES.forEach((message) => expect(isIgnored(`chore: ${message}`)).toBe(true) ); - VERSION_MESSAGES.forEach(message => + VERSION_MESSAGES.forEach((message) => expect(isIgnored(`chore(release): ${message}`)).toBe(true) ); }); test('should ignore npm semver commits with footers', () => { - AMENDED_VERSION_MESSAGES.forEach(message => + AMENDED_VERSION_MESSAGES.forEach((message) => expect(isIgnored(message)).toBe(true) ); }); @@ -131,7 +131,7 @@ test('should return false for commits containing, but not starting, with merge b test('should return false for ignored message if defaults is false', () => { expect( isIgnored('Auto-merged develop into master', { - defaults: false + defaults: false, }) ).toBe(false); }); @@ -139,7 +139,7 @@ test('should return false for ignored message if defaults is false', () => { test('should return false for ignored message if custom ignores and defaults is false', () => { expect( isIgnored('Auto-merged develop into master', { - defaults: false + defaults: false, }) ).toBe(false); }); @@ -148,7 +148,7 @@ test('should throw error if ignores is not an array', () => { const ignoredString = 'this should be ignored'; expect(() => { isIgnored(ignoredString, { - ignores: 'throws error' + ignores: 'throws error', } as any); }).toThrow('ignores must be of type array, received '); }); @@ -157,7 +157,7 @@ test('should return true for custom ignores as function', () => { const ignoredString = 'this should be ignored'; expect( isIgnored(ignoredString, { - ignores: [c => c === ignoredString] + ignores: [(c) => c === ignoredString], }) ).toBe(true); }); @@ -166,7 +166,7 @@ test('should throw error if any element of ignores is not a function', () => { const ignoredString = 'this should be ignored'; expect(() => { isIgnored(ignoredString, { - ignores: ['throws error'] + ignores: ['throws error'], } as any); }).toThrow('ignores must be array of type function, received items of type:'); }); diff --git a/@commitlint/is-ignored/src/is-ignored.ts b/@commitlint/is-ignored/src/is-ignored.ts index 42ba3c8cc0..716b45b9d0 100644 --- a/@commitlint/is-ignored/src/is-ignored.ts +++ b/@commitlint/is-ignored/src/is-ignored.ts @@ -13,16 +13,16 @@ export default function isIgnored( ); } - const invalids = ignores.filter(c => typeof c !== 'function'); + const invalids = ignores.filter((c) => typeof c !== 'function'); if (invalids.length > 0) { throw new Error( `ignores must be array of type function, received items of type: ${invalids - .map(i => typeof i) + .map((i) => typeof i) .join(', ')}` ); } const base = opts.defaults === false ? [] : wildcards; - return [...base, ...ignores].some(w => w(commit)); + return [...base, ...ignores].some((w) => w(commit)); } diff --git a/@commitlint/lint/README.md b/@commitlint/lint/README.md index 9f766bd597..acac11e96e 100644 --- a/@commitlint/lint/README.md +++ b/@commitlint/lint/README.md @@ -13,12 +13,12 @@ npm install --save @commitlint/lint ```js const lint = require('@commitlint/lint'); -lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then(report => +lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then((report) => console.log(report) ); // => { valid: true, errors: [], warnings: [] } -lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then(report => +lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) => console.log(report) ); /* => diff --git a/@commitlint/lint/src/commit-message.ts b/@commitlint/lint/src/commit-message.ts index e27cdc82e3..2b1b2f011e 100644 --- a/@commitlint/lint/src/commit-message.ts +++ b/@commitlint/lint/src/commit-message.ts @@ -7,7 +7,7 @@ export interface CommitMessageData { export const buildCommitMesage = ({ header, body, - footer + footer, }: CommitMessageData): string => { let message = header; diff --git a/@commitlint/lint/src/lint.test.ts b/@commitlint/lint/src/lint.test.ts index 9e4122cff2..ea94b0b9c4 100644 --- a/@commitlint/lint/src/lint.test.ts +++ b/@commitlint/lint/src/lint.test.ts @@ -9,7 +9,7 @@ test('positive on empty message', async () => { expect(await lint('')).toMatchObject({ valid: true, errors: [], - warnings: [] + warnings: [], }); }); @@ -20,21 +20,21 @@ test('positive on stub message and no rule', async () => { test('positive on stub message and adhered rule', async () => { const actual = await lint('foo: bar', { - 'type-enum': [2, 'always', ['foo']] + 'type-enum': [2, 'always', ['foo']], }); expect(actual.valid).toBe(true); }); test('negative on stub message and broken rule', async () => { const actual = await lint('foo: bar', { - 'type-enum': [2, 'never', ['foo']] + 'type-enum': [2, 'never', ['foo']], }); expect(actual.valid).toBe(false); }); test('positive on ignored message and broken rule', async () => { const actual = await lint('Revert "some bogus commit"', { - 'type-empty': [2, 'never'] + 'type-empty': [2, 'never'], }); expect(actual.valid).toBe(true); expect(actual.input).toBe('Revert "some bogus commit"'); @@ -44,10 +44,10 @@ test('negative on ignored message, disabled ignored messages and broken rule', a const actual = await lint( 'Revert "some bogus commit"', { - 'type-empty': [2, 'never'] + 'type-empty': [2, 'never'], }, { - defaultIgnores: false + defaultIgnores: false, } ); expect(actual.valid).toBe(false); @@ -58,10 +58,10 @@ test('positive on custom ignored message and broken rule', async () => { const actual = await lint( ignoredMessage, { - 'type-empty': [2, 'never'] + 'type-empty': [2, 'never'], }, { - ignores: [c => c === ignoredMessage] + ignores: [(c) => c === ignoredMessage], } ); expect(actual.valid).toBe(true); @@ -73,12 +73,12 @@ test('positive on stub message and opts', async () => { 'foo-bar', { 'type-enum': [2, 'always', ['foo']], - 'type-empty': [2, 'never'] + 'type-empty': [2, 'never'], }, { parserOpts: { - headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/ - } + headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/, + }, } ); expect(actual.valid).toBe(true); @@ -93,7 +93,7 @@ test('throws for invalid rule names', async () => { test('throws for invalid rule config', async () => { const error = lint('type(scope): foo', { 'type-enum': 1, - 'scope-enum': {0: 2, 1: 'never', 2: ['foo'], length: 3} + 'scope-enum': {0: 2, 1: 'never', 2: ['foo'], length: 3}, } as any); await expect(error).rejects.toThrow('type-enum must be array'); @@ -107,7 +107,7 @@ test('allows disable shorthand', async () => { errors: [], input: 'foo', valid: true, - warnings: [] + warnings: [], }); }); @@ -120,7 +120,7 @@ test('throws for rule with invalid length', async () => { test('throws for rule with invalid level', async () => { const error = lint('type(scope): foo', { 'type-enum': ['2', 'always'] as any, - 'header-max-length': [{}, 'always'] as any + 'header-max-length': [{}, 'always'] as any, }); await expect(error).rejects.toThrow('rule type-enum must be number'); await expect(error).rejects.toThrow('rule header-max-length must be number'); @@ -129,7 +129,7 @@ test('throws for rule with invalid level', async () => { test('throws for rule with out of range level', async () => { const error = lint('type(scope): foo', { 'type-enum': [-1, 'always'] as any, - 'header-max-length': [3, 'always'] as any + 'header-max-length': [3, 'always'] as any, }); await expect(error).rejects.toThrow('rule type-enum must be between 0 and 2'); @@ -141,7 +141,7 @@ test('throws for rule with out of range level', async () => { test('throws for rule with invalid condition', async () => { const error = lint('type(scope): foo', { 'type-enum': [1, 2] as any, - 'header-max-length': [1, {}] as any + 'header-max-length': [1, {}] as any, }); await expect(error).rejects.toThrow('type-enum must be string'); @@ -151,7 +151,7 @@ test('throws for rule with invalid condition', async () => { test('throws for rule with out of range condition', async () => { const error = lint('type(scope): foo', { 'type-enum': [1, 'foo'] as any, - 'header-max-length': [1, 'bar'] as any + 'header-max-length': [1, 'bar'] as any, }); await expect(error).rejects.toThrow('type-enum must be "always" or "never"'); @@ -162,7 +162,7 @@ test('throws for rule with out of range condition', async () => { test('succeds for issue', async () => { const report = await lint('somehting #1', { - 'references-empty': [2, 'never'] + 'references-empty': [2, 'never'], }); expect(report.valid).toBe(true); @@ -170,7 +170,7 @@ test('succeds for issue', async () => { test('fails for issue', async () => { const report = await lint('somehting #1', { - 'references-empty': [2, 'always'] + 'references-empty': [2, 'always'], }); expect(report.valid).toBe(false); @@ -180,12 +180,12 @@ test('succeds for custom issue prefix', async () => { const report = await lint( 'somehting REF-1', { - 'references-empty': [2, 'never'] + 'references-empty': [2, 'never'], }, { parserOpts: { - issuePrefixes: ['REF-'] - } + issuePrefixes: ['REF-'], + }, } ); @@ -196,12 +196,12 @@ test('fails for custom issue prefix', async () => { const report = await lint( 'somehting #1', { - 'references-empty': [2, 'never'] + 'references-empty': [2, 'never'], }, { parserOpts: { - issuePrefixes: ['REF-'] - } + issuePrefixes: ['REF-'], + }, } ); @@ -212,16 +212,16 @@ test('fails for custom plugin rule', async () => { const report = await lint( 'somehting #1', { - 'plugin-rule': [2, 'never'] + 'plugin-rule': [2, 'never'], }, { plugins: { 'plugin-example': { rules: { - 'plugin-rule': () => [false] - } - } - } + 'plugin-rule': () => [false], + }, + }, + }, } ); @@ -232,16 +232,16 @@ test('passes for custom plugin rule', async () => { const report = await lint( 'somehting #1', { - 'plugin-rule': [2, 'never'] + 'plugin-rule': [2, 'never'], }, { plugins: { 'plugin-example': { rules: { - 'plugin-rule': () => [true] - } - } - } + 'plugin-rule': () => [true], + }, + }, + }, } ); @@ -275,12 +275,12 @@ test('returns original message with commit header, body and footer, parsing comm const report = await lint( message, { - 'references-empty': [2, 'never'] + 'references-empty': [2, 'never'], }, { parserOpts: { - commentChar: '#' - } + commentChar: '#', + }, } ); @@ -291,16 +291,16 @@ test('passes for async rule', async () => { const report = await lint( 'somehting #1', { - 'async-rule': [2, 'never'] + 'async-rule': [2, 'never'], }, { plugins: { 'example-plugin': { rules: { - 'async-rule': async () => [true, 'all good'] as const - } - } - } + 'async-rule': async () => [true, 'all good'] as const, + }, + }, + }, } ); diff --git a/@commitlint/lint/src/lint.ts b/@commitlint/lint/src/lint.ts index 3fd0204876..83c7a567f2 100644 --- a/@commitlint/lint/src/lint.ts +++ b/@commitlint/lint/src/lint.ts @@ -11,7 +11,7 @@ import { RuleConfigSeverity, BaseRule, RuleType, - QualifiedRules + QualifiedRules, } from '@commitlint/types'; export default async function lint( @@ -32,7 +32,7 @@ export default async function lint( valid: true, errors: [], warnings: [], - input: message + input: message, }; } @@ -52,7 +52,7 @@ export default async function lint( valid: true, errors: [], warnings: [], - input: message + input: message, }; } @@ -61,9 +61,9 @@ export default async function lint( ); if (opts.plugins) { - Object.values(opts.plugins).forEach(plugin => { + Object.values(opts.plugins).forEach((plugin) => { if (plugin.rules) { - Object.keys(plugin.rules).forEach(ruleKey => + Object.keys(plugin.rules).forEach((ruleKey) => allRules.set(ruleKey, plugin.rules[ruleKey]) ); } @@ -72,7 +72,7 @@ export default async function lint( // Find invalid rules configs const missing = Object.keys(rulesConfig).filter( - name => typeof allRules.get(name) !== 'function' + (name) => typeof allRules.get(name) !== 'function' ); if (missing.length > 0) { @@ -147,14 +147,14 @@ export default async function lint( .filter((item): item is Error => item instanceof Error); if (invalid.length > 0) { - throw new Error(invalid.map(i => i.message).join('\n')); + throw new Error(invalid.map((i) => i.message).join('\n')); } // Validate against all rules const pendingResults = Object.entries(rulesConfig) // Level 0 rules are ignored .filter(([, config]) => !!config && config.length && config[0] > 0) - .map(async entry => { + .map(async (entry) => { const [name, config] = entry; const [level, when, value] = config!; // @@ -171,7 +171,7 @@ export default async function lint( level, valid, name, - message + message, }; }); @@ -179,9 +179,11 @@ export default async function lint( (result): result is LintRuleOutcome => result !== null ); - const errors = results.filter(result => result.level === 2 && !result.valid); + const errors = results.filter( + (result) => result.level === 2 && !result.valid + ); const warnings = results.filter( - result => result.level === 1 && !result.valid + (result) => result.level === 1 && !result.valid ); const valid = errors.length === 0; @@ -190,6 +192,6 @@ export default async function lint( valid, errors, warnings, - input: buildCommitMesage(parsed) + input: buildCommitMesage(parsed), }; } diff --git a/@commitlint/load/README.md b/@commitlint/load/README.md index c74a7ffea6..f41d378803 100644 --- a/@commitlint/load/README.md +++ b/@commitlint/load/README.md @@ -13,7 +13,7 @@ npm install --save-dev @commitlint/load ```js const load = require('@commitlint/load'); -load({extends: ['./package']}).then(config => console.log(config)); +load({extends: ['./package']}).then((config) => console.log(config)); // => { extends: ['./package', './package-b'], rules: {} } ``` diff --git a/@commitlint/load/src/load.test.ts b/@commitlint/load/src/load.test.ts index 324b43f017..09d2db53d5 100644 --- a/@commitlint/load/src/load.test.ts +++ b/@commitlint/load/src/load.test.ts @@ -3,7 +3,7 @@ const scopedPlugin = jest.fn(); jest.mock('commitlint-plugin-example', () => plugin, {virtual: true}); jest.mock('@scope/commitlint-plugin-example', () => scopedPlugin, { - virtual: true + virtual: true, }); import path from 'path'; @@ -59,7 +59,7 @@ test('plugins should be loaded from seed', async () => { expect(actual.plugins).toMatchObject({ example: plugin, - '@scope/example': scopedPlugin + '@scope/example': scopedPlugin, }); }); @@ -68,19 +68,19 @@ test('plugins should be loaded from local', async () => { plugins: [ { rules: { - test: () => [true, 'asd'] - } - } - ] + test: () => [true, 'asd'], + }, + }, + ], }); expect(actual.plugins).toEqual( expect.objectContaining({ local: { rules: { - test: expect.any(Function) - } - } + test: expect.any(Function), + }, + }, }) ); }); @@ -91,7 +91,7 @@ test('plugins should be loaded from config', async () => { expect(actual.plugins).toMatchObject({ example: plugin, - '@scope/example': scopedPlugin + '@scope/example': scopedPlugin, }); }); @@ -101,7 +101,7 @@ test('plugins should be loaded from shareable config', async () => { expect(actual.plugins).toMatchObject({ example: plugin, - '@scope/example': scopedPlugin + '@scope/example': scopedPlugin, }); }); @@ -114,9 +114,9 @@ test('local plugins should be loaded from shareable configs', async () => { local: { rules: { 'hello-world-rule': expect.any(Function), - 'is-positive': expect.any(Function) - } - } + 'is-positive': expect.any(Function), + }, + }, }) ); }); @@ -130,7 +130,7 @@ test('uses seed with parserPreset', async () => { expect(actual.name).toBe('./conventional-changelog-custom'); expect(actual.parserOpts).toMatchObject({ - headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/ + headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/, }); }); @@ -164,8 +164,8 @@ test('respects cwd option', async () => { plugins: {}, rules: { one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -180,8 +180,8 @@ test('recursive extends', async () => { rules: { zero: 0, one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -196,8 +196,8 @@ test('recursive extends with json file', async () => { rules: { zero: 0, one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -212,8 +212,8 @@ test('recursive extends with yaml file', async () => { rules: { zero: 0, one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -228,8 +228,8 @@ test('recursive extends with js file', async () => { rules: { zero: 0, one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -244,8 +244,8 @@ test('recursive extends with package.json file', async () => { rules: { zero: 0, one: 1, - two: 2 - } + two: 2, + }, }); }); @@ -255,7 +255,7 @@ test('parser preset overwrites completely instead of merging', async () => { expect(actual.parserPreset.name).toBe('./custom'); expect(actual.parserPreset.parserOpts).toMatchObject({ - headerPattern: /.*/ + headerPattern: /.*/, }); }); @@ -265,7 +265,7 @@ test('recursive extends with parserPreset', async () => { expect(actual.parserPreset.name).toBe('./conventional-changelog-custom'); expect(actual.parserPreset.parserOpts).toMatchObject({ - headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/ + headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/, }); }); @@ -279,8 +279,8 @@ test('ignores unknow keys', async () => { plugins: {}, rules: { foo: 'bar', - baz: 'bar' - } + baz: 'bar', + }, }); }); @@ -294,8 +294,8 @@ test('ignores unknow keys recursively', async () => { plugins: {}, rules: { zero: 0, - one: 1 - } + one: 1, + }, }); }); @@ -312,8 +312,8 @@ test('find up from given cwd', async () => { rules: { child: true, inner: false, - outer: false - } + outer: false, + }, }); }); @@ -329,8 +329,8 @@ test('find up config from outside current git repo', async () => { rules: { child: false, inner: false, - outer: true - } + outer: true, + }, }); }); @@ -342,7 +342,7 @@ test('respects formatter option', async () => { formatter: 'commitlint-junit', extends: [], plugins: {}, - rules: {} + rules: {}, }); }); @@ -354,7 +354,7 @@ test('resolves formatter relative from config directory', async () => { formatter: resolveFrom(cwd, './formatters/custom.js'), extends: [], plugins: {}, - rules: {} + rules: {}, }); }); @@ -366,7 +366,7 @@ test('returns formatter name when unable to resolve from config directory', asyn formatter: './doesnt/exists.js', extends: [], plugins: {}, - rules: {} + rules: {}, }); }); @@ -413,7 +413,7 @@ test('recursive resolves parser preset from conventional atom', async () => { ); // the package file is nested in 2 folders, `npm.bootstrap` cant do that await execa('npm', ['install'], { - cwd: path.resolve(cwd, 'first-extended', 'second-extended') + cwd: path.resolve(cwd, 'first-extended', 'second-extended'), }); const actual = await load({}, {cwd}); diff --git a/@commitlint/load/src/load.ts b/@commitlint/load/src/load.ts index c939e82192..93097a81fc 100644 --- a/@commitlint/load/src/load.ts +++ b/@commitlint/load/src/load.ts @@ -14,7 +14,7 @@ import { QualifiedConfig, UserPreset, QualifiedRules, - ParserPreset + ParserPreset, } from '@commitlint/types'; import loadPlugin from './utils/load-plugin'; @@ -51,7 +51,7 @@ export default async function load( config.parserPreset = { name: config.parserPreset, path: resolvedParserPreset, - parserOpts: require(resolvedParserPreset) + parserOpts: require(resolvedParserPreset), }; } @@ -59,7 +59,7 @@ export default async function load( const extended = resolveExtends(opts, { prefix: 'commitlint-config', cwd: base, - parserPreset: config.parserPreset + parserPreset: config.parserPreset, }); const preset = (pickConfig( @@ -92,7 +92,7 @@ export default async function load( // resolve plugins if (Array.isArray(config.plugins)) { - config.plugins.forEach(plugin => { + config.plugins.forEach((plugin) => { if (typeof plugin === 'string') { loadPlugin(preset.plugins, plugin, process.env.DEBUG === 'true'); } else { @@ -102,9 +102,11 @@ export default async function load( } const rules = preset.rules ? preset.rules : {}; - const qualifiedRules = (await Promise.all( - Object.entries(rules || {}).map(entry => executeRule(entry)) - )).reduce((registry, item) => { + const qualifiedRules = ( + await Promise.all( + Object.entries(rules || {}).map((entry) => executeRule(entry)) + ) + ).reduce((registry, item) => { const [key, value] = item as any; (registry as any)[key] = value; return registry; @@ -117,6 +119,6 @@ export default async function load( ignores: preset.ignores!, defaultIgnores: preset.defaultIgnores!, plugins: preset.plugins!, - rules: qualifiedRules + rules: qualifiedRules, }; } diff --git a/@commitlint/load/src/utils/load-parser-opts.ts b/@commitlint/load/src/utils/load-parser-opts.ts index 9cb55d97c8..86d5b5b700 100644 --- a/@commitlint/load/src/utils/load-parser-opts.ts +++ b/@commitlint/load/src/utils/load-parser-opts.ts @@ -20,7 +20,7 @@ export async function loadParserOpts( typeof parser.parserOpts === 'function' && parserName.startsWith('conventional-changelog-') ) { - return await new Promise(resolve => { + return await new Promise((resolve) => { const result = parser.parserOpts((_: never, opts: {parserOpts: any}) => { resolve(opts.parserOpts); }); @@ -28,7 +28,7 @@ export async function loadParserOpts( // If result has data or a promise, the parser doesn't support factory-init // due to https://github.com/nodejs/promises-debugging/issues/16 it just quits, so let's use this fallback if (result) { - Promise.resolve(result).then(opts => { + Promise.resolve(result).then((opts) => { resolve(opts.parserOpts); }); } diff --git a/@commitlint/load/src/utils/load-plugin.test.ts b/@commitlint/load/src/utils/load-plugin.test.ts index 65c1fe9cae..abe9b74bc6 100644 --- a/@commitlint/load/src/utils/load-plugin.test.ts +++ b/@commitlint/load/src/utils/load-plugin.test.ts @@ -1,11 +1,11 @@ import loadPlugin from './load-plugin'; jest.mock('commitlint-plugin-example', () => ({example: true}), { - virtual: true + virtual: true, }); jest.mock('@scope/commitlint-plugin-example', () => ({scope: true}), { - virtual: true + virtual: true, }); test('should load a plugin when referenced by short name', () => { diff --git a/@commitlint/load/src/utils/load-plugin.ts b/@commitlint/load/src/utils/load-plugin.ts index 742a4e6cd5..30003816ba 100644 --- a/@commitlint/load/src/utils/load-plugin.ts +++ b/@commitlint/load/src/utils/load-plugin.ts @@ -15,7 +15,7 @@ export default function loadPlugin( if (pluginName.match(/\s+/u)) { throw new WhitespacePluginError(pluginName, { - pluginName: longName + pluginName: longName, }); } @@ -34,7 +34,7 @@ export default function loadPlugin( throw new MissingPluginError(pluginName, error.message, { pluginName: longName, - commitlintPath: path.resolve(__dirname, '../..') + commitlintPath: path.resolve(__dirname, '../..'), }); } diff --git a/@commitlint/parse/src/index.test.ts b/@commitlint/parse/src/index.test.ts index 9210d4e988..157113c930 100644 --- a/@commitlint/parse/src/index.test.ts +++ b/@commitlint/parse/src/index.test.ts @@ -19,13 +19,10 @@ test('calls parser with message and passed options', async () => { const message = 'message'; expect.assertions(1); - await parse( - message, - (m: string): any => { - expect(m).toBe(message); - return {}; - } - ); + await parse(message, (m: string): any => { + expect(m).toBe(message); + return {}; + }); }); test('passes object up from parser function', async () => { @@ -51,7 +48,7 @@ test('returns object with expected keys', async () => { revert: null, scope: null, subject: null, - type: null + type: null, }; expect(actual).toMatchObject(expected); @@ -72,7 +69,7 @@ test('uses angular grammar', async () => { revert: null, scope: 'scope', subject: 'subject', - type: 'type' + type: 'type', }; expect(actual).toMatchObject(expected); @@ -82,8 +79,8 @@ test('uses custom opts parser', async () => { const message = 'type(scope)-subject'; const changelogOpts = { parserOpts: { - headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/ - } + headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/, + }, }; const actual = await parse(message, undefined, changelogOpts.parserOpts); const expected = { @@ -98,7 +95,7 @@ test('uses custom opts parser', async () => { revert: null, scope: 'scope', subject: 'subject', - type: 'type' + type: 'type', }; expect(actual).toMatchObject(expected); @@ -108,7 +105,7 @@ test('does not merge array properties with custom opts', async () => { const message = 'type: subject'; const actual = await parse(message, undefined, { headerPattern: /^(.*):\s(.*)$/, - headerCorrespondence: ['type', 'subject'] + headerCorrespondence: ['type', 'subject'], }); const expected = { body: null, @@ -121,7 +118,7 @@ test('does not merge array properties with custom opts', async () => { references: [], revert: null, subject: 'subject', - type: 'type' + type: 'type', }; expect(actual).toMatchObject(expected); @@ -148,7 +145,7 @@ test('ignores comments', async () => { const changelogOpts = await require('conventional-changelog-angular'); const opts = { ...changelogOpts.parserOpts, - commentChar: '#' + commentChar: '#', }; const actual = await parse(message, undefined, opts); @@ -163,7 +160,7 @@ test('registers inline #', async () => { const changelogOpts = await require('conventional-changelog-angular'); const opts = { ...changelogOpts.parserOpts, - commentChar: '#' + commentChar: '#', }; const actual = await parse(message, undefined, opts); @@ -175,7 +172,7 @@ test('parses references leading subject', async () => { const message = '#1 some subject'; const opts = await require('conventional-changelog-angular'); const { - references: [actual] + references: [actual], } = await parse(message, undefined, opts); expect(actual.issue).toBe('1'); @@ -184,17 +181,17 @@ test('parses references leading subject', async () => { test('parses custom references', async () => { const message = '#1 some subject PREFIX-2'; const {references} = await parse(message, undefined, { - issuePrefixes: ['PREFIX-'] + issuePrefixes: ['PREFIX-'], }); - expect(references.find(ref => ref.issue === '1')).toBeFalsy(); - expect(references.find(ref => ref.issue === '2')).toMatchObject({ + expect(references.find((ref) => ref.issue === '1')).toBeFalsy(); + expect(references.find((ref) => ref.issue === '2')).toMatchObject({ action: null, issue: '2', owner: null, prefix: 'PREFIX-', raw: '#1 some subject PREFIX-2', - repository: null + repository: null, }); }); @@ -215,7 +212,7 @@ test('uses permissive default regex with other parser opts', async () => { test('uses restrictive default regex in passed parser opts', async () => { const message = 'chore(component,demo): bump'; const actual = await parse(message, undefined, { - headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/ + headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/, }); expect(actual.subject).toBe(null); @@ -233,7 +230,7 @@ test('works with chinese scope by default', async () => { test('does not work with chinese scopes with incompatible pattern', async () => { const message = 'fix(面试评价): 测试'; const actual = await parse(message, undefined, { - headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/ + headerPattern: /^(\w*)(?:\(([a-z]*)\))?: (.*)$/, }); expect(actual.subject).toBe(null); diff --git a/@commitlint/parse/src/index.ts b/@commitlint/parse/src/index.ts index 37d6b18bf4..3f90e8a4f6 100644 --- a/@commitlint/parse/src/index.ts +++ b/@commitlint/parse/src/index.ts @@ -11,7 +11,7 @@ export default async function parse( const defaultOpts = (await defaultChangelogOpts).parserOpts; const opts = { ...defaultOpts, - ...(parserOpts || {}) + ...(parserOpts || {}), }; const parsed = parser(message, opts) as Commit; parsed.raw = message; diff --git a/@commitlint/prompt-cli/cli.js b/@commitlint/prompt-cli/cli.js index 050e9ef081..16f957e07a 100755 --- a/@commitlint/prompt-cli/cli.js +++ b/@commitlint/prompt-cli/cli.js @@ -5,7 +5,7 @@ const {prompter} = require('@commitlint/prompt'); const _ = undefined; const prompt = () => prompter(_, commit); -main().catch(err => { +main().catch((err) => { setTimeout(() => { throw err; }); @@ -13,7 +13,7 @@ main().catch(err => { function main() { return isStageEmpty() - .then(empty => { + .then((empty) => { if (empty) { console.log( `Nothing to commit. Stage your changes via "git add" execute "commit" again` @@ -25,7 +25,7 @@ function main() { } function isStageEmpty() { - return execa('git', ['diff', '--cached']).then(r => r.stdout === ''); + return execa('git', ['diff', '--cached']).then((r) => r.stdout === ''); } function commit(message) { diff --git a/@commitlint/prompt-cli/cli.test.js b/@commitlint/prompt-cli/cli.test.js index 546ef1279d..1ee3443a02 100644 --- a/@commitlint/prompt-cli/cli.test.js +++ b/@commitlint/prompt-cli/cli.test.js @@ -9,7 +9,7 @@ const cli = (args, options) => { cwd: options.cwd, env: options.env, input: input, - reject: false + reject: false, }); }; }; diff --git a/@commitlint/prompt/src/input.js b/@commitlint/prompt/src/input.js index 45a49db145..b7768ce91e 100644 --- a/@commitlint/prompt/src/input.js +++ b/@commitlint/prompt/src/input.js @@ -20,14 +20,14 @@ async function input(prompter) { scope: null, subject: null, body: null, - footer: null + footer: null, }; const {rules} = await load(); await Promise.all( ['type', 'scope', 'subject', 'body', 'footer'].map( - throat(1, async input => { + throat(1, async (input) => { const inputRules = getRules(input, rules); const inputSettings = settings[input]; @@ -41,7 +41,7 @@ async function input(prompter) { const [, [severity, applicable, length]] = headerLengthRule; if (severity > 0 && applicable === 'always') { inputSettings.header = { - length + length, }; } } @@ -50,11 +50,11 @@ async function input(prompter) { rules: inputRules, settings: inputSettings, results, - prompter + prompter, }); }) ) - ).catch(err => { + ).catch((err) => { console.error(err); return ''; }); @@ -80,7 +80,7 @@ function getRulePrefix(id) { * @return {[type]} [description] */ function getHasPrefix(name) { - return rule => getRulePrefix(rule[0]) === name; + return (rule) => getRulePrefix(rule[0]) === name; } /** diff --git a/@commitlint/prompt/src/library/format.js b/@commitlint/prompt/src/library/format.js index 75919e1ba5..ee6b58dde6 100644 --- a/@commitlint/prompt/src/library/format.js +++ b/@commitlint/prompt/src/library/format.js @@ -25,7 +25,7 @@ function format(input, debug = false) { type || scope ? ':' : '' } ${subject}`, body, - footer + footer, ] .filter(Boolean) .join('\n'); diff --git a/@commitlint/prompt/src/library/get-forced-case-fn.js b/@commitlint/prompt/src/library/get-forced-case-fn.js index 9cf401910a..141c3ad18f 100644 --- a/@commitlint/prompt/src/library/get-forced-case-fn.js +++ b/@commitlint/prompt/src/library/get-forced-case-fn.js @@ -10,7 +10,7 @@ import startCase from 'lodash/startCase'; * @return {fn} transform function applying the enforced case */ export default function getForcedCaseFn(rule) { - const noop = input => input; + const noop = (input) => input; if (!rule) { return noop; @@ -42,26 +42,26 @@ export default function getForcedCaseFn(rule) { switch (target) { case 'camel-case': - return input => camelCase(input); + return (input) => camelCase(input); case 'kebab-case': - return input => kebabCase(input); + return (input) => kebabCase(input); case 'snake-case': - return input => snakeCase(input); + return (input) => snakeCase(input); case 'pascal-case': - return input => upperFirst(camelCase(input)); + return (input) => upperFirst(camelCase(input)); case 'start-case': - return input => startCase(input); + return (input) => startCase(input); case 'upper-case': case 'uppercase': - return input => input.toUpperCase(); + return (input) => input.toUpperCase(); case 'sentence-case': case 'sentencecase': - return input => + return (input) => `${input.charAt(0).toUpperCase()}${input.substring(1).toLowerCase()}`; case 'lower-case': case 'lowercase': case 'lowerCase': // Backwards compat config-angular v4 - return input => input.toLowerCase() === input; + return (input) => input.toLowerCase() === input; default: throw new TypeError(`Unknown target case "${rule[2]}"`); } diff --git a/@commitlint/prompt/src/library/get-forced-leading-fn.js b/@commitlint/prompt/src/library/get-forced-leading-fn.js index 810d9ca2d6..21e62e594c 100644 --- a/@commitlint/prompt/src/library/get-forced-leading-fn.js +++ b/@commitlint/prompt/src/library/get-forced-leading-fn.js @@ -4,12 +4,12 @@ * @return {fn} transform function applying the leading */ export default function getForcedLeadingFn(rule) { - const noop = input => input; - const remove = input => { + const noop = (input) => input; + const remove = (input) => { const fragments = input.split('\n'); return fragments[0] === '' ? fragments.slice(1).join('\n') : input; }; - const lead = input => { + const lead = (input) => { const fragments = input.split('\n'); return fragments[0] === '' ? input : ['', ...fragments].join('\n'); }; diff --git a/@commitlint/prompt/src/library/get-has-name.js b/@commitlint/prompt/src/library/get-has-name.js index 1f7df8f102..9695a6a9f4 100644 --- a/@commitlint/prompt/src/library/get-has-name.js +++ b/@commitlint/prompt/src/library/get-has-name.js @@ -6,5 +6,5 @@ import getRuleName from './get-rule-name'; * @return {[type]} [description] */ export default function getHasName(name) { - return rule => getRuleName(rule[0]) === name; + return (rule) => getRuleName(rule[0]) === name; } diff --git a/@commitlint/prompt/src/library/get-prompt.js b/@commitlint/prompt/src/library/get-prompt.js index 8c3a21a0f9..59e17956f7 100644 --- a/@commitlint/prompt/src/library/get-prompt.js +++ b/@commitlint/prompt/src/library/get-prompt.js @@ -98,18 +98,18 @@ function getPrompt(type, context = {}) { results.scope, results.scope ? '()' : '', results.type && results.scope ? ':' : '', - results.subject + results.subject, ].join('').length : Infinity; const maxLength = Math.min(inputMaxLength, remainingHeaderLength); - return new Promise(resolve => { + return new Promise((resolve) => { // Add the defined enums as sub commands if applicable if (enumRule) { const [, [, , enums]] = enumRule; - enums.forEach(enumerable => { + enums.forEach((enumerable) => { const enumSettings = (settings.enumerables || {})[enumerable] || {}; prompt .command(enumerable) @@ -121,7 +121,7 @@ function getPrompt(type, context = {}) { }); }); } else { - prompt.catch('[text...]').action(parameters => { + prompt.catch('[text...]').action((parameters) => { const {text = ''} = parameters; prompt.removeAllListeners(); prompt.ui.redraw.done(); @@ -142,7 +142,7 @@ function getPrompt(type, context = {}) { } // Handle empty input - const onSubmit = input => { + const onSubmit = (input) => { if (input.length > 0) { return; } @@ -165,34 +165,34 @@ function getPrompt(type, context = {}) { } }; - const drawRemaining = length => { + const drawRemaining = (length) => { if (length < Infinity) { const colors = [ { threshold: 5, - color: 'red' + color: 'red', }, { threshold: 10, - color: 'yellow' + color: 'yellow', }, { threshold: Infinity, - color: 'grey' - } + color: 'grey', + }, ]; const color = colors - .filter(item => { + .filter((item) => { return item.threshold >= length; }) - .map(item => item.color)[0]; + .map((item) => item.color)[0]; prompt.ui.redraw(chalk[color](`${length} characters left`)); } }; - const onKey = event => { + const onKey = (event) => { const sanitized = forceCaseFn(event.value); const cropped = sanitized.slice(0, maxLength); @@ -217,7 +217,7 @@ function getPrompt(type, context = {}) { required: mayNotBeEmpty, 'tab-completion': typeof enumRule !== 'undefined', header: typeof settings.header !== 'undefined', - 'multi-line': settings.multiline + 'multi-line': settings.multiline, })}` ); diff --git a/@commitlint/prompt/src/library/get-prompt.test.js b/@commitlint/prompt/src/library/get-prompt.test.js index 0b9899eb71..62c00e0a35 100644 --- a/@commitlint/prompt/src/library/get-prompt.test.js +++ b/@commitlint/prompt/src/library/get-prompt.test.js @@ -9,14 +9,14 @@ test('throws with incompatible prompter', () => { getPrompt('type', { prompter() { return {}; - } + }, }) ).toThrow('prompt.removeAllListeners'); }); test('returns input unaltered wihtout rules', async () => { const message = await getPrompt('type', { - prompter: stub('foobar') + prompter: stub('foobar'), }); expect(message).toEqual('foobar'); @@ -68,15 +68,15 @@ function stub(input = '') { redraw: { done(...args) { called.push([instance.ui.redraw.done, args]); - } - } + }, + }, }, - called + called, }; setTimeout(() => { actions[0]({ - text: Array.isArray(input) ? input : [input] + text: Array.isArray(input) ? input : [input], }); }); diff --git a/@commitlint/prompt/src/library/meta.js b/@commitlint/prompt/src/library/meta.js index bf278bbb5d..006f2dd989 100644 --- a/@commitlint/prompt/src/library/meta.js +++ b/@commitlint/prompt/src/library/meta.js @@ -8,8 +8,8 @@ import chalk from 'chalk'; export default function meta(settings) { return chalk.grey( Object.entries(settings || {}) - .filter(item => item[1]) - .map(item => { + .filter((item) => item[1]) + .map((item) => { const [name, value] = item; return typeof value === 'boolean' ? `[${name}]` : `[${name}=${value}]`; }) diff --git a/@commitlint/prompt/src/settings.js b/@commitlint/prompt/src/settings.js index 63781fbe68..e897b7c17b 100644 --- a/@commitlint/prompt/src/settings.js +++ b/@commitlint/prompt/src/settings.js @@ -3,54 +3,54 @@ export default { description: ' holds information about the goal of a change.', enumerables: { feat: { - description: 'Adds a new feature.' + description: 'Adds a new feature.', }, fix: { - description: 'Solves a bug.' + description: 'Solves a bug.', }, chore: { - description: "Other changes that don't modify src or test files" + description: "Other changes that don't modify src or test files", }, docs: { - description: 'Adds or alters documentation.' + description: 'Adds or alters documentation.', }, style: { - description: 'Improves formatting, white-space.' + description: 'Improves formatting, white-space.', }, refactor: { description: - 'Rewrites code without feature, performance or bug changes.' + 'Rewrites code without feature, performance or bug changes.', }, perf: { - description: 'Improves performance.' + description: 'Improves performance.', }, test: { - description: 'Adds or modifies tests.' + description: 'Adds or modifies tests.', }, build: { - description: 'Affects the build system or external dependencies.' + description: 'Affects the build system or external dependencies.', }, ci: { - description: 'Changes CI configuration files and scripts.' + description: 'Changes CI configuration files and scripts.', }, revert: { - description: 'Reverts a previous commit.' - } - } + description: 'Reverts a previous commit.', + }, + }, }, scope: { - description: ' marks which sub-component of the project is affected' + description: ' marks which sub-component of the project is affected', }, subject: { - description: ' is a short, high-level description of the change' + description: ' is a short, high-level description of the change', }, body: { description: ' holds additional information about the change', - multline: true + multline: true, }, footer: { description: '