From dfe992beee6cb2ae2ce336c002744f0233f2b383 Mon Sep 17 00:00:00 2001 From: ybiquitous Date: Thu, 21 Dec 2017 15:38:55 +0900 Subject: [PATCH] feat(commitlint): add `$GIT_PARAMS` to `commitlint` command Follow the latest `commitlint` installation guide: http://marionebl.github.io/commitlint/#/guides-local-setup?id=install-husky --- package.json | 2 +- test/init.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0ecf8002..bdd6937d 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "markdownlint *.md", "lint": "npm-run-all --print-name --print-label --parallel lint:*", - "commitmsg": "commitlint -e", + "commitmsg": "commitlint -e $GIT_PARAMS", "precommit": "lint-staged", "release": "standard-version", "release:dry-run": "standard-version --dry-run" diff --git a/test/init.test.js b/test/init.test.js index 205396ea..5c2b9ed1 100644 --- a/test/init.test.js +++ b/test/init.test.js @@ -37,7 +37,7 @@ suite('init', () => { assert.deepStrictEqual(pkg.scripts, { build: 'babel src/ -d lib/', - commitmsg: 'commitlint -e', + commitmsg: 'commitlint -e $GIT_PARAMS', 'lint:js': 'eslint --ignore-path .gitignore --ext .js,.jsx,.mjs .', 'lint:js:fix': 'npm run lint:js -- --fix', 'lint:md': 'markdownlint *.md',