You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm run fix will rewrite the keywords property with unnecessary newlines even with lintFormatting indicated as false.
"keywords": [
"test"
],
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:
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
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: