From 4b5c9a910470cad404479bdb9d419754eed725a5 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 12 Mar 2019 16:32:58 +0300 Subject: [PATCH] fix: commit linting --- src/tasks/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks/package.js b/src/tasks/package.js index 74235fa..0ad7b01 100644 --- a/src/tasks/package.js +++ b/src/tasks/package.js @@ -72,8 +72,7 @@ module.exports = (config) => { build: "cross-env NODE_ENV=production babel src -d dist --ignore 'src/**/*.test.js' --copy-files", clean: 'del-cli dist', - commitlint: 'commitlint', - commitmsg: 'commitlint -e $GIT_PARAMS', + commitlint: 'commitlint --from=master', lint: 'eslint --cache src test', prepublish: 'npm run build', release: 'standard-version', @@ -111,6 +110,7 @@ module.exports = (config) => { husky: { hooks: { 'pre-commit': 'lint-staged', + 'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS', }, }, 'lint-staged': {