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
Set newline and indentation to defaults for empty objects/arrays
Noticed that in my tests when I do "echo {} > package.json", I was then
getting an unformatted package.json after doing installs, which is
unexpected. Treat empty objects as if they had the default indentation,
since that is the result "JSON.stringify({}, null, 2)".
0 commit comments