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(prettier): prevent error when no files match glob pattern #89

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

atagulalan
Copy link

This PR fixes Issue #88 where Prettier fails with error code 2 if no files match the specified glob pattern. The error causes the pnpm run lint script to stop execution entirely.

The root cause is that Prettier throws an error when no files match the provided glob pattern. This has been resolved by wrapping the glob pattern in quotes to prevent improper shell expansion.

Changes

  • Wrap glob patterns in quotes for Prettier in the lint scrips.

@atagulalan atagulalan requested a review from a team as a code owner December 18, 2024 14:37
Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: dc2cb55

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@commencis/starter-react-vite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ymehmetcan ymehmetcan merged commit 36e96f8 into Commencis:main Dec 24, 2024
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