Skip to content

Commit

Permalink
fix: improve commit lint config to use conventional
Browse files Browse the repository at this point in the history
  • Loading branch information
LMaxence committed May 7, 2023
1 parent c7c03f2 commit 4db5062
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 52 deletions.
27 changes: 2 additions & 25 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ["@commitlint/config-angular"],
/*
* Resolve and load @commitlint/format from node_modules.
* Referenced package must be installed yep
*/
formatter: "@commitlint/format",
/*
* Whether commitlint uses the default ignore rules.
*/
defaultIgnores: true,
/*
* Custom URL to show upon failure
*/
helpUrl:
"https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines",
rules: {
"type-enum": [2, 'always' ,["ci", "docs", "feat", "fix", "refactor", "test", "chore"]],
},
module.exports = {
extends: ['@commitlint/config-conventional']
};

module.exports = Configuration;
62 changes: 36 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"homepage": "https://github.com/Escape-Technologies/mookme",
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-angular": "^17.0.0",
"@commitlint/config-conventional": "^17.6.3",
"@escape.tech/mookme": "^2.2.0"
}
}

0 comments on commit 4db5062

Please sign in to comment.