Commit 4a20d2e
committed
fix(git): refine deno formatting hook with config and update options
Key Changes Made:
* Removed --ext flag - Now uses deno fmt without extensions to respect deno.json
* Expanded file detection - Checks for .ts .js .tsx .jsx .md .json .jsonc (what Deno actually formats)
* Skip duplicate markdown formatting - Deno projects don't need separate Prettier for markdown since deno fmt handles it
* Better logging - More accurate messages about what was formatted
No deno.json Changes Needed! The hook will now:
* Respect exclude patterns
* Use existing fmt and lint configurations
* Work with existing deno task fmt and deno task lint commands1 parent 43a39c9 commit 4a20d2e
1 file changed
Lines changed: 21 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | | - | |
47 | | - | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
0 commit comments