From 520874422ffc1b380846b083c48c894f99e72ce3 Mon Sep 17 00:00:00 2001 From: jaebradley Date: Fri, 17 Nov 2017 12:40:24 -0500 Subject: [PATCH] fix(package.json): add commit linting fix(package.json): change commit script chore(dependencies): add back package-lock.json added some packages updated package.json added prepare commit message git hook chore(scripts): update scripts chore(eslint): remove unused eslintignore value chore(eslintignore): remove unnecessary value chore(package-scripts): used old script name --- commitlint.config.js | 3 +++ package.json | 14 ++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 commitlint.config.js diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000000..e1b648eb7b --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,3 @@ +module.exports = { + extends: ['@commitlint/config-angular'], +}; diff --git a/package.json b/package.json index 32aedc3c3d..263e667084 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,10 @@ "build-storybook": "build-storybook", "coveralls": "cat ./coverage/lcov.info | coveralls", "deploy-storybook": "storybook-to-ghpages", + "gc": "commit", "lint": "eslint --ext .js --ext .jsx .", "precommit": "npm run lint", - "commit": "git-cz", + "commitmsg": "commitlint -e $GIT_PARAMS", "semantic-release": "semantic-release pre && npm publish && semantic-release post", "snapshot": "jest --updateSnapshot", "start": "start-storybook -p 6006", @@ -34,6 +35,10 @@ "react-proptype-conditional-require": "^1.0.4" }, "devDependencies": { + "@commitlint/cli": "^4.3.0", + "@commitlint/config-angular": "^4.3.0", + "@commitlint/prompt": "^5.0.1", + "@commitlint/prompt-cli": "^5.0.1", "@storybook/addon-actions": "^3.2.12", "@storybook/addon-console": "^1.0.0", "@storybook/addon-options": "^3.2.6", @@ -49,10 +54,8 @@ "babel-plugin-transform-object-rest-spread": "^6.23.0", "babel-preset-env": "^1.4.0", "babel-preset-react": "^6.24.1", - "commitizen": "^2.9.6", "coveralls": "^3.0.0", "css-loader": "^0.28.4", - "cz-conventional-changelog": "^2.1.0", "enzyme": "^3.1.1", "enzyme-adapter-react-16": "^1.0.4", "eslint": "^4.5.0", @@ -90,10 +93,5 @@ "/node_modules/", "(.stories)\\.(jsx)$" ] - }, - "config": { - "commitizen": { - "path": "cz-conventional-changelog" - } } }