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: Fix jsonSortOrder validation #263

Merged
merged 4 commits into from
Jan 10, 2025
Merged

Conversation

Gudahtt
Copy link
Owner

@Gudahtt Gudahtt commented Jan 10, 2025

The validation assumed that the option would be omitted from prettierOptions if it was not set. However it appears that Prettier sets it to undefined rather than omitting it altogether.

The validation has been updated to treat undefined as equivalent to the option being omitted.

Fixes #262

The validation assumed that the option would be omitted from
`prettierOptions` if it was not set. However it appears that Prettier
sets it to `undefined` rather than omitting it altogether.

The validation has been updated to treat `undefined` as equivalent to
the option being omitted.

Fixes #262
@Gudahtt Gudahtt marked this pull request as ready for review January 10, 2025 01:03
@Gudahtt Gudahtt enabled auto-merge (squash) January 10, 2025 01:04
@Gudahtt Gudahtt merged commit 9016c08 into main Jan 10, 2025
12 checks passed
@Gudahtt Gudahtt deleted the fix-json-sort-order-default branch January 10, 2025 01:04
@Gudahtt
Copy link
Owner Author

Gudahtt commented Jan 10, 2025

Looks like this was broken in #258

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.

Invalid 'jsonSortOrder' option; expected string, got 'undefined'
1 participant