chore(git): install husky and commitlint

This commit is contained in:
Lucas committed 2026-01-12 18:35:39 +01:00
1 parent 81737767ee
commit 64ca235045
5 files changed
+574 -39

No files matched your search

+1
View File
@@ -0,0 +1 @@
pnpm exec commitlint --edit "$1"
+2
View File
@@ -0,0 +1,2 @@
pnpm run lint
pnpm run check
+1
View File
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
+6 -2
View File
@@ -8,7 +8,8 @@
"preview": "astro preview",
"astro": "astro",
"lint": "eslint .",
"check": "astro check"
"check": "astro check",
"prepare": "husky"
},
"dependencies": {
"@astrojs/check": "^0.9.6",
@@ -19,11 +20,14 @@
"sharp": "^0.34.3"
},
"devDependencies": {
"@commitlint/cli": "^20.3.1",
"@commitlint/config-conventional": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^8.52.0",
"@typescript-eslint/parser": "^8.52.0",
"astro-eslint-parser": "^1.2.2",
"eslint": "^9.39.2",
"eslint-plugin-astro": "^1.5.0",
"husky": "^9.1.7",
"typescript": "^5.9.3"
},
"pnpm": {
@@ -32,4 +36,4 @@
"sharp"
]
}
}
}
+564 -37
View File
File diff suppressed because it is too large. Load diff