[DX] Use tabs in JSON.stringify (#2674)

Occasionally the auto-built items, such as Sections.json, will be
flagged as having changes in a commit. This is because we generate that
file using spaces but our formatting uses tabs.

This PR changes all JSON.stringify({}, null, 2) to JSON.stringify({},
null, '\t'). Problem solved!

### Change Type

- [x] `patch` — Bug fix
This commit is contained in:
Steve Ruiz 2024-01-28 21:13:47 +00:00 committed by GitHub
parent a716ac36f6
commit a1e242ae3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 10 deletions

View file

@ -89,5 +89,5 @@ export async function createApiMarkdown() {
1
)
sectionsJson.push(apiInputSection)
fs.writeFileSync(sectionsJsonPath, JSON.stringify(sectionsJson, null, 2))
fs.writeFileSync(sectionsJsonPath, JSON.stringify(sectionsJson, null, '\t'))
}