-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(fix): preserve original formatting #195
Labels
Comments
Thanks @nlwillia, yeah tricky one as this is being done basically by JSON.stringify. |
JamieMason
changed the title
fix-mismatches rewrites simple array properties even when lintFormatting is false
feat(fix): preserve original formatting
May 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Given:
Running
npm run fix
will rewrite the keywords property with unnecessary newlines even withlintFormatting
indicated as false.Suggested Solution
I imagine it's a headache to consider whitespace when reconstituting files, but it would be preferable for keys that aren't changed to be emitted the same as how they're read if formatting is turned off.
The text was updated successfully, but these errors were encountered: