diff --git a/.github/workflows/linux-tests.yml b/.github/workflows/linux-tests.yml index 1aa2c9e..5a5c6d0 100644 --- a/.github/workflows/linux-tests.yml +++ b/.github/workflows/linux-tests.yml @@ -6,6 +6,9 @@ jobs: test: runs-on: ubuntu-latest + env: + HUSKY: 0 + strategy: matrix: node-version: [18.x, 20.x, 22.x] diff --git a/.github/workflows/windows-tests.yml b/.github/workflows/windows-tests.yml index 8bcb1b4..574e919 100644 --- a/.github/workflows/windows-tests.yml +++ b/.github/workflows/windows-tests.yml @@ -7,6 +7,9 @@ jobs: runs-on: windows-latest + env: + HUSKY: 0 + strategy: matrix: node-version: [18.x, 20.x, 22.x] diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..a4dc436 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx commitlint --edit diff --git a/README.md b/README.md index b4cbc3c..19d915f 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ [![npm](https://badgen.net/npm/v/env-cmd)](https://www.npmjs.com/package/env-cmd) [![npm](https://badgen.net/npm/dm/env-cmd)](https://www.npmjs.com/package/env-cmd) [![License](https://badgen.net/github/license/toddbluhm/env-cmd)](https://github.com/toddbluhm/env-cmd/blob/master/LICENSE) -[![TS-Standard - Typescript Standard Style Guide](https://badgen.net/badge/code%20style/ts-standard/blue?icon=typescript)](https://github.com/toddbluhm/ts-standard) -[![Dependabot badge](https://badgen.net/dependabot/toddbluhm/env-cmd?icon=dependabot)](https://dependabot.com/) +[![Typescript-ESLint](https://badgen.net/badge/code%20style/typescript-eslint/blue?icon=typescript)](https://github.com/typescript-eslint/typescript-eslint) # env-cmd diff --git a/package.json b/package.json index a973ff4..3385e76 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "env-cmd": "bin/env-cmd.js" }, "scripts": { + "prepare": "husky", "test": "mocha -r ts-node/register ./test/**/*.ts", "test-cover": "nyc npm test", "coveralls": "coveralls < coverage/lcov.info", @@ -63,7 +64,7 @@ "chai": "^4.0.0", "coveralls": "^3.0.0", "globals": "^15.12.0", - "husky": "^4.0.0", + "husky": "^9.1.7", "mocha": "^7.0.0", "nyc": "^15.0.0", "sinon": "^9.0.0", @@ -102,11 +103,6 @@ "devDependencyPin": "fix: pin devDependecy ${dependency}" } }, - "husky": { - "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } - }, "commitlint": { "extends": [ "@commitlint/config-conventional"