Commit 9f3e33b
Replace chalk with node:util.styleText (#1834)
* Replace chalk with node:util.styleText
Replace usages of the external 'chalk' module with the built-in node:util.styleText across CLI code and formatters to remove/avoid the chalk dependency. Update formatter implementations (compact, default, unix, formatter) and htmlhint CLI to use styleText, adjust stdin data handling to normalize chunks to strings, and update related tests. Also clean up .gitignore entries and bump package metadata (package.json/package-lock.json) to match the changes.
* Update src/cli/htmlhint.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent e470aae commit 9f3e33b
15 files changed
Lines changed: 94 additions & 67 deletions
File tree
- dist/cli
- formatters
- src/cli
- formatters
- test/cli/formatters
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments