Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Pretty-print settings.json when writing it out
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed May 5, 2020
1 parent f42af45 commit d5d85aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const saveShellSettings = (settings) => {
fs.mkdirSync(nearPath);
}
const shellSettingsPath = path.join(nearPath, SETTINGS_FILE_NAME);
fs.writeFileSync(shellSettingsPath, JSON.stringify(settings));
const indentationSize = 4;
fs.writeFileSync(shellSettingsPath, JSON.stringify(settings, null, indentationSize));
} catch (e) {
console.log(e);
}
Expand Down

0 comments on commit d5d85aa

Please sign in to comment.