Skip to content

Commit 9f3e33b

Browse files
coliffCopilot
andauthored
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

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ yarn-error.log*
2727
.nyc_output
2828
coverage
2929

30-
# Compiled binary addons (https://nodejs.org/api/addons.html)
31-
build/Release
32-
3330
# Dependency directory
3431
# Commenting this out is preferred by some people, see
3532
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
@@ -40,9 +37,6 @@ node_modules
4037
.AppleDouble
4138
.LSOverride
4239

43-
# Babel-compiled files
44-
lib
45-
4640
# Test related files
4741
test/unit/coverage
4842
test/e2e/reports

dist/cli/formatter.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli/formatters/compact.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli/formatters/default.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cli/formatters/unix.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)