Skip to content

Commit 1f94b1e

Browse files
committed
chore: configure commitlint
1 parent 565f9e7 commit 1f94b1e

File tree

3 files changed

+860
-42
lines changed

3 files changed

+860
-42
lines changed

commitlint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*!
2+
* React Native Autolink
3+
*
4+
* Copyright 2016-2020 Josh Swan
5+
* Released under the MIT license
6+
* https://github.com/joshswan/react-native-autolink/blob/master/LICENSE
7+
*/
8+
9+
module.exports = {
10+
extends: ['@commitlint/config-conventional'],
11+
};

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
"devDependencies": {
3636
"@babel/core": "^7.8.4",
3737
"@babel/preset-typescript": "^7.8.3",
38+
"@commitlint/cli": "^8.3.5",
39+
"@commitlint/config-conventional": "^8.3.4",
3840
"@types/jest": "^25.1.2",
3941
"@types/react": "^16.9.19",
4042
"@types/react-native": "^0.61.12",
@@ -47,17 +49,22 @@
4749
"eslint-plugin-jsx-a11y": "^6.2.3",
4850
"eslint-plugin-react": "^7.14.3",
4951
"eslint-plugin-react-hooks": "^1.7.0",
52+
"husky": "^4.2.1",
5053
"jest": "^25.1.0",
5154
"jest-junit": "^10.0.0",
52-
"react": "16.12.0",
53-
"react-dom": "16.12.0",
55+
"react": "16.9.0",
5456
"react-native": "^0.61.5",
5557
"react-test-renderer": "^16.12.0",
5658
"typescript": "^3.7.5"
5759
},
5860
"peerDependencies": {
5961
"react-native": ">=0.25.0"
6062
},
63+
"husky": {
64+
"hooks": {
65+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
66+
}
67+
},
6168
"jest": {
6269
"preset": "react-native",
6370
"transformIgnorePatterns": [

0 commit comments

Comments
 (0)