-
Notifications
You must be signed in to change notification settings - Fork 13
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
JSON5 support #144
Labels
enhancement
New feature or request
Comments
any uodate by any chance? |
Gudahtt
added a commit
that referenced
this issue
Dec 2, 2024
Refactor how the JSON parser is constructed, how options are parsed, and how the sort compare function is created. These are each handled by separate functions now, rather than being inlined into the custom parser. This is intended to make it easier to extend different types of JSON parsers (e.g. #144).
Gudahtt
added a commit
that referenced
this issue
Dec 2, 2024
Refactor how the JSON parser is constructed, how options are parsed, and how the sort compare function is created. These are each handled by separate functions now, rather than being inlined into the custom parser. This is intended to make it easier to extend different types of JSON parsers (e.g. #144).
Gudahtt
added a commit
that referenced
this issue
Dec 2, 2024
Refactor how the JSON parser is constructed, how options are parsed, and how the sort compare function is created. These are each handled by separate functions now, rather than being inlined into the custom parser. This is intended to make it easier to extend different types of JSON parsers (e.g. #144).
This should be relatively easy to support, given that JSON5 shares the same Prettier parser as JSON. I did some refactoring in #249 to make this easier, but haven't had time to explore this yet. I can come back to this sometime in the future, but if you or someone else wants to give it a try, please feel free! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently it doesn't work for .json5 files, is there a possibility to add support for json5?
The text was updated successfully, but these errors were encountered: