From 7561e41346497c66e358e7aca00eedc9c992146e Mon Sep 17 00:00:00 2001 From: MN <97020799+VWSCoronaDashboard24@users.noreply.github.com> Date: Mon, 10 Oct 2022 08:57:05 +0200 Subject: [PATCH] COR-483 [1/2] Setup pre-commit hook for eslint+prettier (#4445) * chore(deps): update lint-staged, prettier * feat(git-hooks): install lint-staged and cleanup dependencies * fix(lint-staged): use correct file types for lint-staged * fix(deps): remove lint-staged from app package * fix: lint-staged cleanup * fix: use correct eslint command * fix: use lint-staged in every workspace * fix(prettier): set printWidth to 180 * fix(lint-staged): use global lint-staged config * fix(prettier): use printWidth of 180 * fix(eslint): ignore spec files Co-authored-by: VWSCoronaDashboard24 --- .eslintignore | 1 + .husky/.gitignore | 1 + .husky/pre-commit | 4 + .prettierrc.js | 1 + package.json | 15 +- packages/app/package.json | 9 - packages/cli/package.json | 1 - packages/cms/package.json | 8 - packages/common/package.json | 3 - packages/e2e/package.json | 3 - packages/icons/package.json | 1 - yarn.lock | 466 +++++++++++++++++++++++++---------- 12 files changed, 352 insertions(+), 161 deletions(-) create mode 100644 .eslintignore create mode 100644 .husky/.gitignore create mode 100755 .husky/pre-commit diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..c577ada8c8 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +**/*.spec.* \ No newline at end of file diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000000..31354ec138 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000000..36af219892 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged diff --git a/.prettierrc.js b/.prettierrc.js index f1284c64ef..ac3a31318f 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -3,4 +3,5 @@ module.exports = { tabWidth: 2, semi: true, singleQuote: true, + printWidth: 180 }; diff --git a/package.json b/package.json index 42d8e5bde2..dd02a514f7 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "cms:deploy": "yarn workspace @corona-dashboard/cms deploy", "build:app": "yarn workspace @corona-dashboard/app build", "build:common": "yarn workspace @corona-dashboard/common build", - "build:icons": "yarn workspace @corona-dashboard/icons build" + "build:icons": "yarn workspace @corona-dashboard/icons build", + "postinstall": "husky install" }, "workspaces": { "packages": [ @@ -46,6 +47,18 @@ }, "packageManager": "yarn@3.1.0", "devDependencies": { + "@types/prettier": "^2", + "eslint-config-prettier": "^8.5.0", + "eslint-plugin-prettier": "^4.2.1", + "husky": ">=6", + "lint-staged": ">=10", + "prettier": "^2.7.1", "ts-node": "^10.8.1" + }, + "lint-staged": { + "./packages/**/*.@(ts|tsx|js)": [ + "eslint --fix", + "prettier --write" + ] } } diff --git a/packages/app/package.json b/packages/app/package.json index 0875117072..bd7a56e186 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -108,7 +108,6 @@ "download": "^8.0.0", "eslint": "^7.32.0", "eslint-config-next": "^12.0.4", - "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-risxss": "^2.1.0", @@ -117,7 +116,6 @@ "inspectpack": "^4.7.1", "jsdom": "^18.1.1", "jsdom-global": "^3.0.2", - "lint-staged": "^11.2.6", "lodash-webpack-plugin": "^0.11.6", "next-compose-plugins": "^2.2.1", "next-transpile-modules": "^9.0.0", @@ -126,7 +124,6 @@ "postcss": "^8.4.4", "postcss-flexbugs-fixes": "^5.0.2", "postcss-preset-env": "^6.7.0", - "prettier": "^2.5.0", "react-test-renderer": "^17.0.2", "sinon": "^11.1.2", "ts-node": "^10.9.1", @@ -136,12 +133,6 @@ "walkjs": "^3.2.4", "webpack": "^5.64.4" }, - "lint-staged": { - "*.@(ts|tsx)": [ - "yarn lint", - "yarn format" - ] - }, "scripts": { "analyze": "cross-env ANALYZE=true yarn build", "bootstrap": "exit 0", diff --git a/packages/cli/package.json b/packages/cli/package.json index 3dd74639c8..fb2836c957 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -45,7 +45,6 @@ "@typescript-eslint/eslint-plugin": "^5.5.0", "@typescript-eslint/parser": "^5.5.0", "eslint": "^7.32.0", - "eslint-config-prettier": "^8.3.0", "typescript": "^4.7.3" } } diff --git a/packages/cms/package.json b/packages/cms/package.json index 9dd82b0ca1..1f2bd169c8 100644 --- a/packages/cms/package.json +++ b/packages/cms/package.json @@ -76,20 +76,12 @@ "dotenv-flow": "^3.2.0", "eslint": "^7.32.0", "eslint-config-next": "^12.0.4", - "eslint-config-prettier": "^8.3.0", "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-risxss": "^2.1.0", "fast-csv": "^4.3.6", - "lint-staged": "^11.2.6", "meow": "^9.0.0", "ts-node": "^10.9.1", "typescript": "^4.7.3" - }, - "lint-staged": { - "*.@(ts|tsx)": [ - "yarn lint", - "yarn format" - ] } } diff --git a/packages/common/package.json b/packages/common/package.json index 62b3b9bc90..bcb1d58273 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -34,10 +34,7 @@ "chokidar-cli": "^3.0.0", "cross-env": "^7.0.3", "eslint": "^8.3.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.1", - "prettier": "^2.5.0", "ts-node": "^10.9.1", "tsconfig-paths": "^3.12.0", "tsconfig-replace-paths": "^0.0.11", diff --git a/packages/e2e/package.json b/packages/e2e/package.json index 1148b832d2..d6db1d2eca 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -9,10 +9,7 @@ "@typescript-eslint/parser": "^5.5.0", "cypress": "^8.7.0", "eslint": "^8.3.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.27.1", - "prettier": "^2.5.0", "typescript": "^4.4.4" }, "scripts": { diff --git a/packages/icons/package.json b/packages/icons/package.json index 84d6066fff..3cbfd80cf5 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -37,7 +37,6 @@ "babel-preset-env": "^1.7.0", "camelcase": "^6.2.1", "eslint": "^8.3.0", - "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-react": "^7.27.1", diff --git a/yarn.lock b/yarn.lock index d2c39fb9f4..34e967997c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2611,7 +2611,6 @@ __metadata: download: ^8.0.0 eslint: ^7.32.0 eslint-config-next: ^12.0.4 - eslint-config-prettier: ^8.3.0 eslint-plugin-react: ^7.27.1 eslint-plugin-react-hooks: ^4.3.0 eslint-plugin-risxss: ^2.1.0 @@ -2630,7 +2629,6 @@ __metadata: jsdom: ^18.1.1 jsdom-global: ^3.0.2 konva: ^7.2.5 - lint-staged: ^11.2.6 lodash: ^4.17.21 lodash-webpack-plugin: ^0.11.6 match-sorter: ^6.3.1 @@ -2644,7 +2642,6 @@ __metadata: postcss: ^8.4.4 postcss-flexbugs-fixes: ^5.0.2 postcss-preset-env: ^6.7.0 - prettier: ^2.5.0 react: ^17.0.2 react-dom: ^17.0.2 react-error-boundary: ^3.1.4 @@ -2689,7 +2686,6 @@ __metadata: chalk: ^4.1.2 dotenv: ^10.0.0 eslint: ^7.32.0 - eslint-config-prettier: ^8.3.0 flat: ^5.0.2 json-schema-to-typescript: ^10.1.5 lodash: ^4.17.21 @@ -2736,14 +2732,12 @@ __metadata: download: ^8.0.0 eslint: ^7.32.0 eslint-config-next: ^12.0.4 - eslint-config-prettier: ^8.3.0 eslint-plugin-react: ^7.27.1 eslint-plugin-react-hooks: ^4.3.0 eslint-plugin-risxss: ^2.1.0 fast-csv: ^4.3.6 flat: ^5.0.2 fs-extra: ^10.0.0 - lint-staged: ^11.2.6 meow: ^9.0.0 outdent: ^0.8.0 prompts: ^2.4.2 @@ -2777,11 +2771,8 @@ __metadata: chokidar-cli: ^3.0.0 cross-env: ^7.0.3 eslint: ^8.3.0 - eslint-config-prettier: ^8.3.0 - eslint-plugin-prettier: ^4.0.0 eslint-plugin-react: ^7.27.1 geojson: ^0.5.0 - prettier: ^2.5.0 ts-is-present: ^1.2.2 ts-node: ^10.9.1 tsconfig-paths: ^3.12.0 @@ -2800,10 +2791,7 @@ __metadata: "@typescript-eslint/parser": ^5.5.0 cypress: ^8.7.0 eslint: ^8.3.0 - eslint-config-prettier: ^8.3.0 - eslint-plugin-prettier: ^4.0.0 eslint-plugin-react: ^7.27.1 - prettier: ^2.5.0 typescript: ^4.4.4 languageName: unknown linkType: soft @@ -2824,7 +2812,6 @@ __metadata: babel-preset-env: ^1.7.0 camelcase: ^6.2.1 eslint: ^8.3.0 - eslint-config-prettier: ^8.3.0 eslint-plugin-import: ^2.25.3 eslint-plugin-jsx-a11y: ^6.5.1 eslint-plugin-react: ^7.27.1 @@ -7240,13 +7227,20 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.3, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.6, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": +"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.5, @types/json-schema@npm:^7.0.6, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9": version: 7.0.9 resolution: "@types/json-schema@npm:7.0.9" checksum: 259d0e25f11a21ba5c708f7ea47196bd396e379fddb79c76f9f4f62c945879dc21657904914313ec2754e443c5018ea8372362f323f30e0792897fdb2098a705 languageName: node linkType: hard +"@types/json-schema@npm:^7.0.3": + version: 7.0.11 + resolution: "@types/json-schema@npm:7.0.11" + checksum: 527bddfe62db9012fccd7627794bd4c71beb77601861055d87e3ee464f2217c85fca7a4b56ae677478367bbd248dbde13553312b7d4dbc702a2f2bbf60c4018d + languageName: node + linkType: hard + "@types/json5@npm:^0.0.29": version: 0.0.29 resolution: "@types/json5@npm:0.0.29" @@ -7365,6 +7359,13 @@ __metadata: languageName: node linkType: hard +"@types/prettier@npm:^2": + version: 2.7.1 + resolution: "@types/prettier@npm:2.7.1" + checksum: 5e3f58e229d6c73b5f5cae2e8f96c1c4a5b5805f83459e17a045ba8e96152b1d38e86b63e3172fb159dac923388699660862b75b2d37e54220805f0e691e26f1 + languageName: node + linkType: hard + "@types/prettier@npm:^2.1.5": version: 2.4.1 resolution: "@types/prettier@npm:2.4.1" @@ -8608,6 +8609,13 @@ __metadata: languageName: node linkType: hard +"ansi-regex@npm:^6.0.1": + version: 6.0.1 + resolution: "ansi-regex@npm:6.0.1" + checksum: 1ff8b7667cded1de4fa2c9ae283e979fc87036864317da86a2e546725f96406746411d0d85e87a2d12fa5abd715d90006de7fa4fa0477c92321ad3b4c7d4e169 + languageName: node + linkType: hard + "ansi-styles@npm:^2.2.1": version: 2.2.1 resolution: "ansi-styles@npm:2.2.1" @@ -8640,6 +8648,13 @@ __metadata: languageName: node linkType: hard +"ansi-styles@npm:^6.0.0": + version: 6.1.1 + resolution: "ansi-styles@npm:6.1.1" + checksum: f2b1ed658ead23caf77effe7b875960cacd70d1ebe47c830e191358b242d688cf52a28d55ef9b19d102f792e8c1dec34bd865db264f1c7f4f63dd3a5fa84677e + languageName: node + linkType: hard + "any-promise@npm:^1.0.0": version: 1.3.0 resolution: "any-promise@npm:1.3.0" @@ -10123,7 +10138,7 @@ __metadata: languageName: node linkType: hard -"braces@npm:^3.0.1, braces@npm:~3.0.2": +"braces@npm:^3.0.1, braces@npm:^3.0.2, braces@npm:~3.0.2": version: 3.0.2 resolution: "braces@npm:3.0.2" dependencies: @@ -10926,7 +10941,7 @@ __metadata: languageName: node linkType: hard -"cli-truncate@npm:2.1.0, cli-truncate@npm:^2.1.0": +"cli-truncate@npm:^2.1.0": version: 2.1.0 resolution: "cli-truncate@npm:2.1.0" dependencies: @@ -10936,6 +10951,16 @@ __metadata: languageName: node linkType: hard +"cli-truncate@npm:^3.1.0": + version: 3.1.0 + resolution: "cli-truncate@npm:3.1.0" + dependencies: + slice-ansi: ^5.0.0 + string-width: ^5.0.0 + checksum: c3243e41974445691c63f8b405df1d5a24049dc33d324fe448dc572e561a7b772ae982692900b1a5960901cc4fc7def25a629b9c69a4208ee89d12ab3332617a + languageName: node + linkType: hard + "cliui@npm:^2.1.0": version: 2.1.0 resolution: "cliui@npm:2.1.0" @@ -11168,7 +11193,7 @@ __metadata: languageName: node linkType: hard -"colorette@npm:^1.2.1, colorette@npm:^1.3.0, colorette@npm:^1.4.0": +"colorette@npm:^1.2.1, colorette@npm:^1.3.0": version: 1.4.0 resolution: "colorette@npm:1.4.0" checksum: 01c3c16058b182a4ab4c126a65a75faa4d38a20fa7c845090b25453acec6c371bb2c5dceb0a2338511f17902b9d1a9af0cadd8509c9403894b79311032c256c3 @@ -11182,6 +11207,13 @@ __metadata: languageName: node linkType: hard +"colorette@npm:^2.0.17": + version: 2.0.19 + resolution: "colorette@npm:2.0.19" + checksum: 888cf5493f781e5fcf54ce4d49e9d7d698f96ea2b2ef67906834bb319a392c667f9ec69f4a10e268d2946d13a9503d2d19b3abaaaf174e3451bfe91fb9d82427 + languageName: node + linkType: hard + "colors@npm:^1.1.2": version: 1.4.0 resolution: "colors@npm:1.4.0" @@ -11247,10 +11279,10 @@ __metadata: languageName: node linkType: hard -"commander@npm:^8.2.0": - version: 8.3.0 - resolution: "commander@npm:8.3.0" - checksum: 0f82321821fc27b83bd409510bb9deeebcfa799ff0bf5d102128b500b7af22872c0c92cb6a0ebc5a4cf19c6b550fba9cedfa7329d18c6442a625f851377bacf0 +"commander@npm:^9.3.0": + version: 9.4.1 + resolution: "commander@npm:9.4.1" + checksum: bfb18e325a5bdf772763c2213d5c7d9e77144d944124e988bcd8e5e65fb6d45d5d4e86b09155d0f2556c9a59c31e428720e57968bcd050b2306e910a0bf3cf13 languageName: node linkType: hard @@ -11487,6 +11519,12 @@ __metadata: version: 0.0.0-use.local resolution: "corona-dashboard@workspace:." dependencies: + "@types/prettier": ^2 + eslint-config-prettier: ^8.5.0 + eslint-plugin-prettier: ^4.2.1 + husky: ">=6" + lint-staged: ">=10" + prettier: ^2.7.1 ts-node: ^10.8.1 languageName: unknown linkType: soft @@ -11516,19 +11554,6 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:^7.0.1": - version: 7.0.1 - resolution: "cosmiconfig@npm:7.0.1" - dependencies: - "@types/parse-json": ^4.0.0 - import-fresh: ^3.2.1 - parse-json: ^5.0.0 - path-type: ^4.0.0 - yaml: ^1.10.0 - checksum: 4be63e7117955fd88333d7460e4c466a90f556df6ef34efd59034d2463484e339666c41f02b523d574a797ec61f4a91918c5b89a316db2ea2f834e0d2d09465b - languageName: node - linkType: hard - "crc-32@npm:^1.2.0": version: 1.2.0 resolution: "crc-32@npm:1.2.0" @@ -12434,6 +12459,18 @@ __metadata: languageName: node linkType: hard +"debug@npm:^4.3.4": + version: 4.3.4 + resolution: "debug@npm:4.3.4" + dependencies: + ms: 2.1.2 + peerDependenciesMeta: + supports-color: + optional: true + checksum: 3dbad3f94ea64f34431a9cbf0bafb61853eda57bff2880036153438f50fb5a84f27683ba0d8e5426bf41a8c6ff03879488120cf5b3a761e77953169c0600a708 + languageName: node + linkType: hard + "decamelize-keys@npm:^1.1.0": version: 1.1.0 resolution: "decamelize-keys@npm:1.1.0" @@ -13030,6 +13067,13 @@ __metadata: languageName: node linkType: hard +"eastasianwidth@npm:^0.2.0": + version: 0.2.0 + resolution: "eastasianwidth@npm:0.2.0" + checksum: 7d00d7cd8e49b9afa762a813faac332dee781932d6f2c848dc348939c4253f1d4564341b7af1d041853bc3f32c2ef141b58e0a4d9862c17a7f08f68df1e0f1ed + languageName: node + linkType: hard + "ecc-jsbn@npm:~0.1.1": version: 0.1.2 resolution: "ecc-jsbn@npm:0.1.2" @@ -13462,14 +13506,14 @@ __metadata: languageName: node linkType: hard -"eslint-config-prettier@npm:^8.3.0": - version: 8.3.0 - resolution: "eslint-config-prettier@npm:8.3.0" +"eslint-config-prettier@npm:^8.5.0": + version: 8.5.0 + resolution: "eslint-config-prettier@npm:8.5.0" peerDependencies: eslint: ">=7.0.0" bin: eslint-config-prettier: bin/cli.js - checksum: df4cea3032671995bb5ab07e016169072f7fa59f44a53251664d9ca60951b66cdc872683b5c6a3729c91497c11490ca44a79654b395dd6756beb0c3903a37196 + checksum: 0d0f5c32e7a0ad91249467ce71ca92394ccd343178277d318baf32063b79ea90216f4c81d1065d60f96366fdc60f151d4d68ae7811a58bd37228b84c2083f893 languageName: node linkType: hard @@ -13599,9 +13643,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:^4.0.0": - version: 4.0.0 - resolution: "eslint-plugin-prettier@npm:4.0.0" +"eslint-plugin-prettier@npm:^4.2.1": + version: 4.2.1 + resolution: "eslint-plugin-prettier@npm:4.2.1" dependencies: prettier-linter-helpers: ^1.0.0 peerDependencies: @@ -13610,7 +13654,7 @@ __metadata: peerDependenciesMeta: eslint-config-prettier: optional: true - checksum: 03d69177a3c21fa2229c7e427ce604429f0b20ab7f411e2e824912f572a207c7f5a41fd1f0a95b9b8afe121e291c1b1f1dc1d44c7aad4b0837487f9c19f5210d + checksum: b9e839d2334ad8ec7a5589c5cb0f219bded260839a857d7a486997f9870e95106aa59b8756ff3f37202085ebab658de382b0267cae44c3a7f0eb0bcc03a4f6d6 languageName: node linkType: hard @@ -14111,20 +14155,20 @@ __metadata: languageName: node linkType: hard -"execa@npm:^5.1.1": - version: 5.1.1 - resolution: "execa@npm:5.1.1" +"execa@npm:^6.1.0": + version: 6.1.0 + resolution: "execa@npm:6.1.0" dependencies: cross-spawn: ^7.0.3 - get-stream: ^6.0.0 - human-signals: ^2.1.0 - is-stream: ^2.0.0 + get-stream: ^6.0.1 + human-signals: ^3.0.1 + is-stream: ^3.0.0 merge-stream: ^2.0.0 - npm-run-path: ^4.0.1 - onetime: ^5.1.2 - signal-exit: ^3.0.3 - strip-final-newline: ^2.0.0 - checksum: fba9022c8c8c15ed862847e94c252b3d946036d7547af310e344a527e59021fd8b6bb0723883ea87044dc4f0201f949046993124a42ccb0855cae5bf8c786343 + npm-run-path: ^5.1.0 + onetime: ^6.0.0 + signal-exit: ^3.0.7 + strip-final-newline: ^3.0.0 + checksum: 1a4af799839134f5c72eb63d525b87304c1114a63aa71676c91d57ccef2e26f2f53e14c11384ab11c4ec479be1efa83d11c8190e00040355c2c5c3364327fa8e languageName: node linkType: hard @@ -15261,13 +15305,6 @@ __metadata: languageName: node linkType: hard -"get-own-enumerable-property-symbols@npm:^3.0.0": - version: 3.0.2 - resolution: "get-own-enumerable-property-symbols@npm:3.0.2" - checksum: 8f0331f14159f939830884799f937343c8c0a2c330506094bc12cbee3665d88337fe97a4ea35c002cc2bdba0f5d9975ad7ec3abb925015cdf2a93e76d4759ede - languageName: node - linkType: hard - "get-random-values@npm:^1.2.2": version: 1.2.2 resolution: "get-random-values@npm:1.2.2" @@ -15319,7 +15356,7 @@ __metadata: languageName: node linkType: hard -"get-stream@npm:^6.0.0": +"get-stream@npm:^6.0.1": version: 6.0.1 resolution: "get-stream@npm:6.0.1" checksum: e04ecece32c92eebf5b8c940f51468cd53554dcbb0ea725b2748be583c9523d00128137966afce410b9b051eb2ef16d657cd2b120ca8edafcf5a65e81af63cad @@ -16127,10 +16164,10 @@ __metadata: languageName: node linkType: hard -"human-signals@npm:^2.1.0": - version: 2.1.0 - resolution: "human-signals@npm:2.1.0" - checksum: b87fd89fce72391625271454e70f67fe405277415b48bcc0117ca73d31fa23a4241787afdc8d67f5a116cf37258c052f59ea82daffa72364d61351423848e3b8 +"human-signals@npm:^3.0.1": + version: 3.0.1 + resolution: "human-signals@npm:3.0.1" + checksum: f252a7769c8094a5c9dc6772816bdb417b188820b04c8b42d0fc468e03a0ba905b1dd07afabe9385cc83504af1ccc2b985cd1e4aeeeb8e0029896c5af2e6f354 languageName: node linkType: hard @@ -16150,6 +16187,15 @@ __metadata: languageName: node linkType: hard +"husky@npm:>=6": + version: 8.0.1 + resolution: "husky@npm:8.0.1" + bin: + husky: lib/bin.js + checksum: 943a73a13d0201318fd30e83d299bb81d866bd245b69e6277804c3b462638dc1921694cb94c2b8c920a4a187060f7d6058d3365152865406352e934c5fff70dc + languageName: node + linkType: hard + "hyperscript@npm:^2.0.2": version: 2.0.2 resolution: "hyperscript@npm:2.0.2" @@ -16790,6 +16836,13 @@ __metadata: languageName: node linkType: hard +"is-fullwidth-code-point@npm:^4.0.0": + version: 4.0.0 + resolution: "is-fullwidth-code-point@npm:4.0.0" + checksum: 8ae89bf5057bdf4f57b346fb6c55e9c3dd2549983d54191d722d5c739397a903012cc41a04ee3403fd872e811243ef91a7c5196da7b5841dc6b6aae31a264a8d + languageName: node + linkType: hard + "is-glob@npm:^3.1.0": version: 3.1.0 resolution: "is-glob@npm:3.1.0" @@ -16892,7 +16945,7 @@ __metadata: languageName: node linkType: hard -"is-obj@npm:^1.0.0, is-obj@npm:^1.0.1": +"is-obj@npm:^1.0.0": version: 1.0.1 resolution: "is-obj@npm:1.0.1" checksum: 3ccf0efdea12951e0b9c784e2b00e77e87b2f8bd30b42a498548a8afcc11b3287342a2030c308e473e93a7a19c9ea7854c99a8832a476591c727df2a9c79796c @@ -16988,13 +17041,6 @@ __metadata: languageName: node linkType: hard -"is-regexp@npm:^1.0.0": - version: 1.0.0 - resolution: "is-regexp@npm:1.0.0" - checksum: be692828e24cba479ec33644326fa98959ec68ba77965e0291088c1a741feaea4919d79f8031708f85fd25e39de002b4520622b55460660b9c369e6f7187faef - languageName: node - linkType: hard - "is-resolvable@npm:^1.0.0": version: 1.1.0 resolution: "is-resolvable@npm:1.1.0" @@ -17030,6 +17076,13 @@ __metadata: languageName: node linkType: hard +"is-stream@npm:^3.0.0": + version: 3.0.0 + resolution: "is-stream@npm:3.0.0" + checksum: 172093fe99119ffd07611ab6d1bcccfe8bc4aa80d864b15f43e63e54b7abc71e779acd69afdb854c4e2a67fdc16ae710e370eda40088d1cfc956a50ed82d8f16 + languageName: node + linkType: hard + "is-string@npm:^1.0.5, is-string@npm:^1.0.7": version: 1.0.7 resolution: "is-string@npm:1.0.7" @@ -17706,6 +17759,13 @@ __metadata: languageName: node linkType: hard +"lilconfig@npm:2.0.5": + version: 2.0.5 + resolution: "lilconfig@npm:2.0.5" + checksum: f7bb9e42656f06930ad04e583026f087508ae408d3526b8b54895e934eb2a966b7aafae569656f2c79a29fe6d779b3ec44ba577e80814734c8655d6f71cdf2d1 + languageName: node + linkType: hard + "lines-and-columns@npm:^1.1.6": version: 1.1.6 resolution: "lines-and-columns@npm:1.1.6" @@ -17713,31 +17773,30 @@ __metadata: languageName: node linkType: hard -"lint-staged@npm:^11.2.6": - version: 11.2.6 - resolution: "lint-staged@npm:11.2.6" +"lint-staged@npm:>=10": + version: 13.0.3 + resolution: "lint-staged@npm:13.0.3" dependencies: - cli-truncate: 2.1.0 - colorette: ^1.4.0 - commander: ^8.2.0 - cosmiconfig: ^7.0.1 - debug: ^4.3.2 - enquirer: ^2.3.6 - execa: ^5.1.1 - listr2: ^3.12.2 - micromatch: ^4.0.4 + cli-truncate: ^3.1.0 + colorette: ^2.0.17 + commander: ^9.3.0 + debug: ^4.3.4 + execa: ^6.1.0 + lilconfig: 2.0.5 + listr2: ^4.0.5 + micromatch: ^4.0.5 normalize-path: ^3.0.0 - please-upgrade-node: ^3.2.0 - string-argv: 0.3.1 - stringify-object: 3.3.0 - supports-color: 8.1.1 + object-inspect: ^1.12.2 + pidtree: ^0.6.0 + string-argv: ^0.3.1 + yaml: ^2.1.1 bin: lint-staged: bin/lint-staged.js - checksum: b9071621db351c553579bd18df3d80fb753f851c4f1f72db0aaf12e713eab25b6d8a044dab2957817de7da02054a63f7725a49c763aee09295133f0d554f4d3f + checksum: 53d585007df06e162febab6b0836b55016d902586a267823c8a1158529d8c742dc7297e523f7023dff02250bef3eb0d6934f4ec4f9961adfc2ebbed5f54162d0 languageName: node linkType: hard -"listr2@npm:^3.12.2, listr2@npm:^3.8.3": +"listr2@npm:^3.8.3": version: 3.13.1 resolution: "listr2@npm:3.13.1" dependencies: @@ -17754,6 +17813,27 @@ __metadata: languageName: node linkType: hard +"listr2@npm:^4.0.5": + version: 4.0.5 + resolution: "listr2@npm:4.0.5" + dependencies: + cli-truncate: ^2.1.0 + colorette: ^2.0.16 + log-update: ^4.0.0 + p-map: ^4.0.0 + rfdc: ^1.3.0 + rxjs: ^7.5.5 + through: ^2.3.8 + wrap-ansi: ^7.0.0 + peerDependencies: + enquirer: ">= 2.3.0 < 3" + peerDependenciesMeta: + enquirer: + optional: true + checksum: 7af31851abe25969ef0581c6db808117e36af15b131401795182427769d9824f451ba9e8aff6ccd25b6a4f6c8796f816292caf08e5f1f9b1775e8e9c313dc6c5 + languageName: node + linkType: hard + "load-json-file@npm:^2.0.0": version: 2.0.0 resolution: "load-json-file@npm:2.0.0" @@ -18677,6 +18757,16 @@ __metadata: languageName: node linkType: hard +"micromatch@npm:^4.0.5": + version: 4.0.5 + resolution: "micromatch@npm:4.0.5" + dependencies: + braces: ^3.0.2 + picomatch: ^2.3.1 + checksum: 02a17b671c06e8fefeeb6ef996119c1e597c942e632a21ef589154f23898c9c6a9858526246abb14f8bca6e77734aa9dcf65476fca47cedfb80d9577d52843fc + languageName: node + linkType: hard + "miller-rabin@npm:^4.0.0": version: 4.0.1 resolution: "miller-rabin@npm:4.0.1" @@ -18744,6 +18834,13 @@ __metadata: languageName: node linkType: hard +"mimic-fn@npm:^4.0.0": + version: 4.0.0 + resolution: "mimic-fn@npm:4.0.0" + checksum: 995dcece15ee29aa16e188de6633d43a3db4611bcf93620e7e62109ec41c79c0f34277165b8ce5e361205049766e371851264c21ac64ca35499acb5421c2ba56 + languageName: node + linkType: hard + "mimic-response@npm:^1.0.0": version: 1.0.1 resolution: "mimic-response@npm:1.0.1" @@ -19464,7 +19561,7 @@ __metadata: languageName: node linkType: hard -"npm-run-path@npm:^4.0.0, npm-run-path@npm:^4.0.1": +"npm-run-path@npm:^4.0.0": version: 4.0.1 resolution: "npm-run-path@npm:4.0.1" dependencies: @@ -19473,6 +19570,15 @@ __metadata: languageName: node linkType: hard +"npm-run-path@npm:^5.1.0": + version: 5.1.0 + resolution: "npm-run-path@npm:5.1.0" + dependencies: + path-key: ^4.0.0 + checksum: dc184eb5ec239d6a2b990b43236845332ef12f4e0beaa9701de724aa797fe40b6bbd0157fb7639d24d3ab13f5d5cf22d223a19c6300846b8126f335f788bee66 + languageName: node + linkType: hard + "npmlog@npm:^4.1.2": version: 4.1.2 resolution: "npmlog@npm:4.1.2" @@ -19563,6 +19669,13 @@ __metadata: languageName: node linkType: hard +"object-inspect@npm:^1.12.2": + version: 1.12.2 + resolution: "object-inspect@npm:1.12.2" + checksum: a534fc1b8534284ed71f25ce3a496013b7ea030f3d1b77118f6b7b1713829262be9e6243acbcb3ef8c626e2b64186112cb7f6db74e37b2789b9c789ca23048b2 + languageName: node + linkType: hard + "object-is@npm:^1.0.1": version: 1.1.5 resolution: "object-is@npm:1.1.5" @@ -19748,7 +19861,7 @@ __metadata: languageName: node linkType: hard -"onetime@npm:^5.1.0, onetime@npm:^5.1.2": +"onetime@npm:^5.1.0": version: 5.1.2 resolution: "onetime@npm:5.1.2" dependencies: @@ -19757,6 +19870,15 @@ __metadata: languageName: node linkType: hard +"onetime@npm:^6.0.0": + version: 6.0.0 + resolution: "onetime@npm:6.0.0" + dependencies: + mimic-fn: ^4.0.0 + checksum: 0846ce78e440841335d4e9182ef69d5762e9f38aa7499b19f42ea1c4cd40f0b4446094c455c713f9adac3f4ae86f613bb5e30c99e52652764d06a89f709b3788 + languageName: node + linkType: hard + "opener@npm:^1.5.2": version: 1.5.2 resolution: "opener@npm:1.5.2" @@ -20269,6 +20391,13 @@ __metadata: languageName: node linkType: hard +"path-key@npm:^4.0.0": + version: 4.0.0 + resolution: "path-key@npm:4.0.0" + checksum: 8e6c314ae6d16b83e93032c61020129f6f4484590a777eed709c4a01b50e498822b00f76ceaf94bc64dbd90b327df56ceadce27da3d83393790f1219e07721d7 + languageName: node + linkType: hard + "path-parse@npm:^1.0.6": version: 1.0.7 resolution: "path-parse@npm:1.0.7" @@ -20383,7 +20512,7 @@ __metadata: languageName: node linkType: hard -"picomatch@npm:^2.3.0": +"picomatch@npm:^2.3.0, picomatch@npm:^2.3.1": version: 2.3.1 resolution: "picomatch@npm:2.3.1" checksum: 050c865ce81119c4822c45d3c84f1ced46f93a0126febae20737bd05ca20589c564d6e9226977df859ed5e03dc73f02584a2b0faad36e896936238238b0446cf @@ -20399,6 +20528,15 @@ __metadata: languageName: node linkType: hard +"pidtree@npm:^0.6.0": + version: 0.6.0 + resolution: "pidtree@npm:0.6.0" + bin: + pidtree: bin/pidtree.js + checksum: 8fbc073ede9209dd15e80d616e65eb674986c93be49f42d9ddde8dbbd141bb53d628a7ca4e58ab5c370bb00383f67d75df59a9a226dede8fa801267a7030c27a + languageName: node + linkType: hard + "pify@npm:^2.0.0, pify@npm:^2.2.0, pify@npm:^2.3.0": version: 2.3.0 resolution: "pify@npm:2.3.0" @@ -20499,15 +20637,6 @@ __metadata: languageName: node linkType: hard -"please-upgrade-node@npm:^3.2.0": - version: 3.2.0 - resolution: "please-upgrade-node@npm:3.2.0" - dependencies: - semver-compare: ^1.0.0 - checksum: d87c41581a2a022fbe25965a97006238cd9b8cbbf49b39f78d262548149a9d30bd2bdf35fec3d810e0001e630cd46ef13c7e19c389dea8de7e64db271a2381bb - languageName: node - linkType: hard - "pleeease-filters@npm:^4.0.0": version: 4.0.0 resolution: "pleeease-filters@npm:4.0.0" @@ -21875,21 +22004,21 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.0.0, prettier@npm:^2.2.0": - version: 2.4.1 - resolution: "prettier@npm:2.4.1" +"prettier@npm:^2.0.0, prettier@npm:^2.7.1": + version: 2.7.1 + resolution: "prettier@npm:2.7.1" bin: prettier: bin-prettier.js - checksum: cc6830588b401b0d742862fe9c46bc9118204fb307c3abe0e49e95b35ed23629573807ffdf9cdd65289c252a0bb51fc0171437f6626ee36378dea80f0ee80b91 + checksum: 55a4409182260866ab31284d929b3cb961e5fdb91fe0d2e099dac92eaecec890f36e524b4c19e6ceae839c99c6d7195817579cdffc8e2c80da0cb794463a748b languageName: node linkType: hard -"prettier@npm:^2.5.0": - version: 2.5.0 - resolution: "prettier@npm:2.5.0" +"prettier@npm:^2.2.0": + version: 2.4.1 + resolution: "prettier@npm:2.4.1" bin: prettier: bin-prettier.js - checksum: aad1b35b73e7c14596d389d90977a83dad0db689ba5802a0ef319c357b7867f55b885db197972aa6a56c30f53088c9f8e0d7f7930ae074c275a4e9cbe091d21d + checksum: cc6830588b401b0d742862fe9c46bc9118204fb307c3abe0e49e95b35ed23629573807ffdf9cdd65289c252a0bb51fc0171437f6626ee36378dea80f0ee80b91 languageName: node linkType: hard @@ -23695,6 +23824,13 @@ __metadata: languageName: node linkType: hard +"rfdc@npm:^1.3.0": + version: 1.3.0 + resolution: "rfdc@npm:1.3.0" + checksum: fb2ba8512e43519983b4c61bd3fa77c0f410eff6bae68b08614437bc3f35f91362215f7b4a73cbda6f67330b5746ce07db5dd9850ad3edc91271ad6deea0df32 + languageName: node + linkType: hard + "rgb-hex@npm:^2.1.0": version: 2.1.0 resolution: "rgb-hex@npm:2.1.0" @@ -23861,6 +23997,15 @@ __metadata: languageName: node linkType: hard +"rxjs@npm:^7.5.5": + version: 7.5.7 + resolution: "rxjs@npm:7.5.7" + dependencies: + tslib: ^2.1.0 + checksum: edabcdb73b0f7e0f5f6e05c2077aff8c52222ac939069729704357d6406438acca831c24210db320aba269e86dbe1a400f3769c89101791885121a342fb15d9c + languageName: node + linkType: hard + "sade@npm:^1.7.3": version: 1.7.4 resolution: "sade@npm:1.7.4" @@ -24167,7 +24312,7 @@ __metadata: languageName: node linkType: hard -"semver@npm:^7.2.1, semver@npm:^7.3.2, semver@npm:^7.3.4, semver@npm:^7.3.5": +"semver@npm:^7.2.1, semver@npm:^7.3.4, semver@npm:^7.3.5": version: 7.3.5 resolution: "semver@npm:7.3.5" dependencies: @@ -24178,6 +24323,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.3.2": + version: 7.3.8 + resolution: "semver@npm:7.3.8" + dependencies: + lru-cache: ^6.0.0 + bin: + semver: bin/semver.js + checksum: ba9c7cbbf2b7884696523450a61fee1a09930d888b7a8d7579025ad93d459b2d1949ee5bbfeb188b2be5f4ac163544c5e98491ad6152df34154feebc2cc337c1 + languageName: node + linkType: hard + "semver@npm:^7.3.7": version: 7.3.7 resolution: "semver@npm:7.3.7" @@ -24384,13 +24540,20 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2, signal-exit@npm:^3.0.3": +"signal-exit@npm:^3.0.0, signal-exit@npm:^3.0.2": version: 3.0.5 resolution: "signal-exit@npm:3.0.5" checksum: a1d3d0d63f581bd298b30ed8f6de21b73a0fe5a0c0f123b2e8ed7168bbff8f4c1a45e681de12a1966a89bb725d8eb727816be1c436e136951f31953e4a201587 languageName: node linkType: hard +"signal-exit@npm:^3.0.7": + version: 3.0.7 + resolution: "signal-exit@npm:3.0.7" + checksum: a2f098f247adc367dffc27845853e9959b9e88b01cb301658cfe4194352d8d2bb32e18467c786a7fe15f1d44b233ea35633d076d5e737870b7139949d1ab6318 + languageName: node + linkType: hard + "simple-concat@npm:^1.0.0, simple-concat@npm:^1.0.1": version: 1.0.1 resolution: "simple-concat@npm:1.0.1" @@ -24535,6 +24698,16 @@ __metadata: languageName: node linkType: hard +"slice-ansi@npm:^5.0.0": + version: 5.0.0 + resolution: "slice-ansi@npm:5.0.0" + dependencies: + ansi-styles: ^6.0.0 + is-fullwidth-code-point: ^4.0.0 + checksum: 7e600a2a55e333a21ef5214b987c8358fe28bfb03c2867ff2cbf919d62143d1812ac27b4297a077fdaf27a03da3678e49551c93e35f9498a3d90221908a1180e + languageName: node + linkType: hard + "smart-buffer@npm:^4.1.0": version: 4.2.0 resolution: "smart-buffer@npm:4.2.0" @@ -24954,7 +25127,7 @@ __metadata: languageName: node linkType: hard -"string-argv@npm:0.3.1": +"string-argv@npm:^0.3.1": version: 0.3.1 resolution: "string-argv@npm:0.3.1" checksum: efbd0289b599bee808ce80820dfe49c9635610715429c6b7cc50750f0437e3c2f697c81e5c390208c13b5d5d12d904a1546172a88579f6ee5cbaaaa4dc9ec5cf @@ -25004,6 +25177,17 @@ __metadata: languageName: node linkType: hard +"string-width@npm:^5.0.0": + version: 5.1.2 + resolution: "string-width@npm:5.1.2" + dependencies: + eastasianwidth: ^0.2.0 + emoji-regex: ^9.2.2 + strip-ansi: ^7.0.1 + checksum: 7369deaa29f21dda9a438686154b62c2c5f661f8dda60449088f9f980196f7908fc39fdd1803e3e01541970287cf5deae336798337e9319a7055af89dafa7193 + languageName: node + linkType: hard + "string.prototype.matchall@npm:^4.0.5": version: 4.0.5 resolution: "string.prototype.matchall@npm:4.0.5" @@ -25092,17 +25276,6 @@ __metadata: languageName: node linkType: hard -"stringify-object@npm:3.3.0": - version: 3.3.0 - resolution: "stringify-object@npm:3.3.0" - dependencies: - get-own-enumerable-property-symbols: ^3.0.0 - is-obj: ^1.0.1 - is-regexp: ^1.0.0 - checksum: 6827a3f35975cfa8572e8cd3ed4f7b262def260af18655c6fde549334acdac49ddba69f3c861ea5a6e9c5a4990fe4ae870b9c0e6c31019430504c94a83b7a154 - languageName: node - linkType: hard - "strip-ansi@npm:^3.0.0, strip-ansi@npm:^3.0.1": version: 3.0.1 resolution: "strip-ansi@npm:3.0.1" @@ -25139,6 +25312,15 @@ __metadata: languageName: node linkType: hard +"strip-ansi@npm:^7.0.1": + version: 7.0.1 + resolution: "strip-ansi@npm:7.0.1" + dependencies: + ansi-regex: ^6.0.1 + checksum: 257f78fa433520e7f9897722731d78599cb3fce29ff26a20a5e12ba4957463b50a01136f37c43707f4951817a75e90820174853d6ccc240997adc5df8f966039 + languageName: node + linkType: hard + "strip-bom@npm:^3.0.0": version: 3.0.0 resolution: "strip-bom@npm:3.0.0" @@ -25169,6 +25351,13 @@ __metadata: languageName: node linkType: hard +"strip-final-newline@npm:^3.0.0": + version: 3.0.0 + resolution: "strip-final-newline@npm:3.0.0" + checksum: 23ee263adfa2070cd0f23d1ac14e2ed2f000c9b44229aec9c799f1367ec001478469560abefd00c5c99ee6f0b31c137d53ec6029c53e9f32a93804e18c201050 + languageName: node + linkType: hard + "strip-indent@npm:^3.0.0": version: 3.0.0 resolution: "strip-indent@npm:3.0.0" @@ -25328,15 +25517,6 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": - version: 8.1.1 - resolution: "supports-color@npm:8.1.1" - dependencies: - has-flag: ^4.0.0 - checksum: c052193a7e43c6cdc741eb7f378df605636e01ad434badf7324f17fb60c69a880d8d8fcdcb562cf94c2350e57b937d7425ab5b8326c67c2adc48f7c87c1db406 - languageName: node - linkType: hard - "supports-color@npm:^2.0.0": version: 2.0.0 resolution: "supports-color@npm:2.0.0" @@ -25380,6 +25560,15 @@ __metadata: languageName: node linkType: hard +"supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": + version: 8.1.1 + resolution: "supports-color@npm:8.1.1" + dependencies: + has-flag: ^4.0.0 + checksum: c052193a7e43c6cdc741eb7f378df605636e01ad434badf7324f17fb60c69a880d8d8fcdcb562cf94c2350e57b937d7425ab5b8326c67c2adc48f7c87c1db406 + languageName: node + linkType: hard + "svg-country-flags@npm:^1.2.7": version: 1.2.10 resolution: "svg-country-flags@npm:1.2.10" @@ -27704,13 +27893,20 @@ __metadata: languageName: node linkType: hard -"yaml@npm:^1.10.0, yaml@npm:^1.7.2": +"yaml@npm:^1.7.2": version: 1.10.2 resolution: "yaml@npm:1.10.2" checksum: ce4ada136e8a78a0b08dc10b4b900936912d15de59905b2bf415b4d33c63df1d555d23acb2a41b23cf9fb5da41c256441afca3d6509de7247daa062fd2c5ea5f languageName: node linkType: hard +"yaml@npm:^2.1.1": + version: 2.1.3 + resolution: "yaml@npm:2.1.3" + checksum: 91316062324a93f9cb547469092392e7d004ff8f70c40fecb420f042a4870b2181557350da56c92f07bd44b8f7a252b0be26e6ade1f548e1f4351bdd01c9d3c7 + languageName: node + linkType: hard + "yargs-parser@npm:^13.1.2": version: 13.1.2 resolution: "yargs-parser@npm:13.1.2"