[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:
parent
a716ac36f6
commit
a1e242ae3a
9 changed files with 10 additions and 10 deletions
|
@ -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'))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue