Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix front-matter_linter when called with --verbose #28231

Merged
merged 3 commits into from
Aug 2, 2023

Conversation

queengooborg
Copy link
Collaborator

This PR fixes the front-matter linter when called with the --verbose option. The script attempts to call chalk.red(), however chalk is not a dependency of the project, let alone imported by the script.

@queengooborg queengooborg requested a review from a team as a code owner July 28, 2023 02:31
@queengooborg queengooborg requested review from bsmth and removed request for a team July 28, 2023 02:31
@github-actions github-actions bot added the system Infrastructure and configuration for the project label Jul 28, 2023
@Josh-Cena
Copy link
Member

chalk is transitively installed in this repo from Yari and Jest. Does this actually cause failures if we add import chalk from "chalk"?

@queengooborg
Copy link
Collaborator Author

I don't see how it could, but I don't think it's worth it to add an entire import for one single line, especially if we do not have the package added as a direct dependency. And I don't think we should add an entire dependency for the one single line either.

(Note: on Unix, the output of the console error is already colored red, so the line is redundant anyways.)

@Josh-Cena
Copy link
Member

Sure, that sounds okay to me. Just putting a random thought.

@queengooborg
Copy link
Collaborator Author

This PR is still in need of review!

Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, let's do this :)

@Josh-Cena Josh-Cena merged commit 9f27a13 into main Aug 2, 2023
7 of 8 checks passed
@Josh-Cena Josh-Cena deleted the front-matter-linter-fix branch August 2, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system Infrastructure and configuration for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants