Skip to content

Commit ba2f1d1

Browse files
committed
chore: add commitlint configuration
1 parent d77dadb commit ba2f1d1

4 files changed

Lines changed: 135 additions & 1 deletion

File tree

commitlint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [2, 'always', 200],
5+
},
6+
};

knip.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
ignoreDependencies: ['@commitlint/config-conventional'],
23
entry: [
34
'src/entry-*',
45
'src/app.tsx',
@@ -7,5 +8,5 @@ module.exports = {
78
'src/components/**/*',
89
'src/lib/**/*',
910
],
10-
ignore: ['app.config.timestamp_*.js'],
11+
ignore: ['commitlint.config.js', 'app.config.timestamp_*.js'],
1112
};

package-lock.json

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"h3": "^1.15.11"
3030
},
3131
"devDependencies": {
32+
"@commitlint/config-conventional": "^20.5.0",
3233
"@eslint/js": "^9.18.0",
3334
"@playwright/test": "^1.56.1",
3435
"@tailwindcss/vite": "^4.1.11",

0 commit comments

Comments
 (0)