|
15 | 15 | "lint": "eslint \"./{lib,test}/**/*.js\"", |
16 | 16 | "format": "prettier-eslint --write --list-different \"./{lib,test}/**/*.{js,json,md}\"", |
17 | 17 | "precommit": "lint-staged", |
18 | | - "np": "np --no-publish" |
19 | | - }, |
20 | | - "lint-staged": { |
21 | | - "linters": { |
22 | | - "*.{js,json,md}": [ |
23 | | - "prettier-eslint --write", |
24 | | - "git add" |
25 | | - ] |
26 | | - } |
| 18 | + "np": "np --no-publish", |
| 19 | + "cz": "git-cz", |
| 20 | + "commitmsg": "commitlint -E GIT_PARAMS" |
27 | 21 | }, |
28 | 22 | "repository": { |
29 | 23 | "type": "git", |
|
73 | 67 | "uuid": "^2.0.2" |
74 | 68 | }, |
75 | 69 | "devDependencies": { |
| 70 | + "@commitlint/cli": "^7.0.0", |
| 71 | + "@commitlint/config-conventional": "^7.0.1", |
76 | 72 | "@segment/analytics.js-integration": "^3.2.1", |
77 | 73 | "@segment/eslint-config": "^4.0.0", |
78 | 74 | "browserify": "13.0.0", |
79 | 75 | "browserify-istanbul": "^2.0.0", |
80 | 76 | "codecov": "^3.0.2", |
| 77 | + "commitizen": "^2.10.1", |
| 78 | + "commitlint-circle": "^1.0.0", |
81 | 79 | "compat-trigger-event": "^1.0.0", |
82 | 80 | "component-each": "^0.2.6", |
| 81 | + "cz-conventional-changelog": "^2.1.0", |
83 | 82 | "eslint": "^4.19.1", |
84 | 83 | "eslint-config-prettier": "^2.9.0", |
85 | 84 | "eslint-plugin-mocha": "^5.0.0", |
|
107 | 106 | "sinon": "^1.7.3", |
108 | 107 | "snyk": "^1.83.0", |
109 | 108 | "watchify": "^3.7.0" |
| 109 | + }, |
| 110 | + "commitlint": { |
| 111 | + "extends": [ |
| 112 | + "@commitlint/config-conventional" |
| 113 | + ] |
| 114 | + }, |
| 115 | + "lint-staged": { |
| 116 | + "linters": { |
| 117 | + "*.{js,json,md}": [ |
| 118 | + "prettier-eslint --write", |
| 119 | + "git add" |
| 120 | + ] |
| 121 | + } |
| 122 | + }, |
| 123 | + "config": { |
| 124 | + "commitizen": { |
| 125 | + "path": "cz-conventional-changelog" |
| 126 | + } |
110 | 127 | } |
111 | 128 | } |
0 commit comments