Skip to content

Commit

Permalink
chore(commitlint): add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
James Singleton authored and nellyk committed Jan 14, 2020
1 parent 8a977e3 commit c59df72
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test-results
__tests__
CODEOWNERS
.travis.yml
*.tgz
.jest-cache
.vscode
commitlint.config.js
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"react-dom": "^16.0.0"
},
"devDependencies": {
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"githook-scripts": "^1.0.1",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"husky": "^3.1.0",
"jest": ">=23.0.0"
},
"contributors": [
Expand All @@ -44,16 +44,19 @@
"jest-preset.js"
],
"scripts": {
"githook:commit-msg": "commitlint --edit $GIT_PARAMS",
"test": "jest",
"test:git-history": "commitlint --from origin/master --to HEAD",
"posttest": "npm run test:git-history"
"test": "jest"
},
"jest": {
"preset": "amex-jest-preset",
"coveragePathIgnorePatterns": [
"<rootDir>/jest-setup.js",
"<rootDir>/commitlint.config.js"
]
},
"husky": {
"hooks": {
"pre-commit": "npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}

0 comments on commit c59df72

Please sign in to comment.