chore: add commitlint

- add `commitlint.config.mjs` file
- add `@commitlint/cli` package
- add `@commitlint/config-conventional` package
- add `commit-msg` husky script
This commit is contained in:
memodack 2025-05-04 15:52:29 +03:00
parent 187ee6c9f4
commit 5ecc6422d7
4 changed files with 1133 additions and 0 deletions

1
.husky/commit-msg Normal file
View file

@ -0,0 +1 @@
npx --no -- commitlint --edit $1

3
commitlint.config.mjs Normal file
View file

@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional'],
};

1127
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -14,6 +14,8 @@
"start:dev": "rimraf ./dist && rollup -c -w"
},
"devDependencies": {
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@eslint/js": "^9.23.0",
"@rollup/plugin-commonjs": "^28.0.3",
"@rollup/plugin-json": "^6.1.0",