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

ci: pass globs to prettier rather than the shell #512

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xudyang1
Copy link
Contributor

Without quotes, globs are expanded by the shell. If **/*.json is expanded by shell, it only contains json files in a subdirectory of the project's root (e.g., snippets/css.json). With quotes, "**/*.json" is passed as an argument to prettier, and now prettier can work as expected.

Copy link
Collaborator

@OkelleyDevelopment OkelleyDevelopment left a comment

Choose a reason for hiding this comment

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

Looks ok to me, but I think @rafamadriz should also take a look since the CI job was added originally by them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants