Skip to content

Commit

Permalink
feat(commitlint): add $GIT_PARAMS to commitlint command (#78)
Browse files Browse the repository at this point in the history
Follow the latest `commitlint` installation guide:

http://marionebl.github.io/commitlint/#/guides-local-setup?id=install-husky
  • Loading branch information
ybiquitous committed Dec 21, 2017
1 parent dad0780 commit d00784b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d00784b

Please sign in to comment.