From b43a6ffd74dcb4eb0ca8bf9d07ae2311b2146773 Mon Sep 17 00:00:00 2001 From: Rodney Lab Date: Wed, 3 Nov 2021 13:02:53 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=90=9D=20update=20husky=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 2 +- commitlint.config.js => commitlint.config.cjs | 0 package.json | 1 + pnpm-lock.yaml | 46 +++++++++++++++++++ 4 files changed, 48 insertions(+), 1 deletion(-) rename commitlint.config.js => commitlint.config.cjs (100%) diff --git a/.husky/commit-msg b/.husky/commit-msg index 3788674..0bd658f 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -# npx --no-install commitlint --edit "$1" +npx --no-install commitlint --edit "$1" diff --git a/commitlint.config.js b/commitlint.config.cjs similarity index 100% rename from commitlint.config.js rename to commitlint.config.cjs diff --git a/package.json b/package.json index 23853b3..3a00f77 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "svelte-check": "svelte-check" }, "devDependencies": { + "@commitlint/config-conventional": "^14.1.0", "@fontsource/lato": "^4.5.0", "@fontsource/roboto-slab": "^4.5.1", "@fontsource/slabo-13px": "^4.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4ee98fc..32e2696 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,6 +1,7 @@ lockfileVersion: 5.3 specifiers: + '@commitlint/config-conventional': ^14.1.0 '@fontsource/lato': ^4.5.0 '@fontsource/roboto-slab': ^4.5.1 '@fontsource/slabo-13px': ^4.5.0 @@ -54,6 +55,7 @@ dependencies: node-html-parser: 5.1.0 devDependencies: + '@commitlint/config-conventional': 14.1.0 '@fontsource/lato': 4.5.0 '@fontsource/roboto-slab': 4.5.1 '@fontsource/slabo-13px': 4.5.0 @@ -125,6 +127,13 @@ packages: js-tokens: 4.0.0 dev: true + /@commitlint/config-conventional/14.1.0: + resolution: {integrity: sha512-JuhCqkEv8jyqmd54EpXPsQFpYc/8k7sfP1UziRdEvZSJUCLxz+8Pk4cNS0oF1BtjaWO7ITgXPlIZg47PyApGmg==} + engines: {node: '>=v12'} + dependencies: + conventional-changelog-conventionalcommits: 4.6.1 + dev: true + /@cspotcode/source-map-consumer/0.8.0: resolution: {integrity: sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==} engines: {node: '>= 12'} @@ -578,6 +587,10 @@ packages: sprintf-js: 1.0.3 dev: true + /array-ify/1.0.0: + resolution: {integrity: sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=} + dev: true + /array-union/2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -788,6 +801,13 @@ packages: color-string: 1.6.0 dev: true + /compare-func/2.0.0: + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + dependencies: + array-ify: 1.0.0 + dot-prop: 5.3.0 + dev: true + /concat-map/0.0.1: resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} dev: true @@ -800,6 +820,15 @@ packages: resolution: {integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=} dev: true + /conventional-changelog-conventionalcommits/4.6.1: + resolution: {integrity: sha512-lzWJpPZhbM1R0PIzkwzGBCnAkH5RKJzJfFQZcl/D+2lsJxAwGnDKBqn/F4C1RD31GJNn8NuKWQzAZDAVXPp2Mw==} + engines: {node: '>=10'} + dependencies: + compare-func: 2.0.0 + lodash: 4.17.21 + q: 1.5.1 + dev: true + /core-util-is/1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} dev: true @@ -984,6 +1013,13 @@ packages: domhandler: 4.2.2 dev: false + /dot-prop/5.3.0: + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} + dependencies: + is-obj: 2.0.0 + dev: true + /dotenv/10.0.0: resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==} engines: {node: '>=10'} @@ -1909,6 +1945,11 @@ packages: engines: {node: '>=0.12.0'} dev: true + /is-obj/2.0.0: + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} + dev: true + /is-plain-obj/1.1.0: resolution: {integrity: sha1-caUMhCnfync8kqOQpKA7OfzVHT4=} engines: {node: '>=0.10.0'} @@ -2545,6 +2586,11 @@ packages: engines: {node: '>=6'} dev: true + /q/1.5.1: + resolution: {integrity: sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=} + engines: {node: '>=0.6.0', teleport: '>=0.2.0'} + dev: true + /queue-microtask/1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true