Skip to content

Commit

Permalink
Add configuration for conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmo committed Nov 21, 2024
1 parent 6c2058b commit aa73302
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
12 changes: 12 additions & 0 deletions configuration/conventional.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
extends: ['@commitlint/config-conventional'],
plugins: ['@somehow-digital/commitlint-plugin-spellcheck'],
rules: {
'spellcheck/body': [2, 'always'],
'spellcheck/footer': [2, 'always'],
'spellcheck/header': [2, 'always'],
'spellcheck/scope': [2, 'always'],
'spellcheck/subject': [2, 'always'],
'spellcheck/type': [2, 'always'],
},
};
1 change: 1 addition & 0 deletions knip.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default {
ignoreDependencies: [
'commitlint-config-.*',
'@somehow-digital/commitlint-plugin-spellcheck',
'@commitlint/config-conventional',
],
project: ['configuration/**'],
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"exports": {
".": "./configuration/basic.js",
"./basic": "./configuration/basic.js"
"./basic": "./configuration/basic.js",
"./conventional": "./configuration/conventional.js"
},
"files": [
"./configuration/"
Expand All @@ -33,6 +34,7 @@
"@commitlint/cli": "^19.5.0"
},
"dependencies": {
"@commitlint/config-conventional": "^19.6.0",
"@somehow-digital/commitlint-plugin-spellcheck": "^1.0.1"
},
"devDependencies": {
Expand Down
20 changes: 20 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit aa73302

Please sign in to comment.