Commit c0a686d
authored
build: fix hooks verification (#19)
### TL;DR
Replace commitizen with commitlint for commit message validation and typos with cspell for spell checking.
### What changed?
- Added commitlint configuration with `commitlint.config.js` using conventional commit standards
- Replaced typos with cspell for spell checking in the pre-commit hook
- Updated lefthook.yml to use cspell instead of typos and commitlint instead of commitizen
- Added new dev dependencies: `@commitlint/cli`, `@commitlint/config-conventional`, and `cspell`
- Simplified the oxfmt command in lefthook by removing the `exec` prefix
- Removed empty `.prettierignore` file
### How to test?
1. Make a commit with an invalid commit message format to verify commitlint rejects it
2. Make a commit with a valid conventional commit message to verify it passes
3. Introduce a spelling error in a file and verify cspell catches it in the pre-commit hook
### Why make this change?
This change standardizes the commit message format using the widely-adopted conventional commits specification, which improves commit history readability and enables automated changelog generation. It also replaces the optional typos tool with cspell, which provides more consistent spell checking across the team without requiring external tool installation.1 parent 755c659 commit c0a686d
5 files changed
Lines changed: 1501 additions & 16 deletions
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
0 commit comments