Skip to content

Commit

Permalink
chore: Add conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
svsool committed Aug 1, 2020
1 parent e48f63c commit afb90df
Show file tree
Hide file tree
Showing 4 changed files with 1,130 additions and 32 deletions.
1 change: 1 addition & 0 deletions .huskyrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ const disableLinters = Number(process.env.DISABLE_MEMO_HOOKS) === 1;
module.exports = {
hooks: {
'pre-commit': disableLinters ? undefined : 'lint-staged',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
7 changes: 7 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [0, 'never', []],
'header-max-length': [2, 'always', 120],
},
};
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@
"compile": "webpack --mode development",
"watch": "webpack --mode development -w",
"pretest": "tsc -p ./ && yarn run webpack --mode development",
"release": "standard-version",
"ts": "tsc --noEmit",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@commitlint/cli": "^9.1.1",
"@commitlint/config-conventional": "^9.1.1",
"@types/glob": "^7.1.1",
"@types/jest": "^26.0.7",
"@types/lodash.groupby": "^4.6.6",
Expand All @@ -162,6 +165,7 @@
"lint-staged": "^10.2.9",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"standard-version": "^8.0.2",
"ts-jest": "^26.1.4",
"ts-loader": "^8.0.1",
"typescript": "^3.9.7",
Expand Down
Loading

0 comments on commit afb90df

Please sign in to comment.