Description
Continuation of #3287
The examples are inconsistently formatted, both in our source code and when running the refresh on the website.
- string without quotes:
faker/src/modules/finance/index.ts
Lines 126 to 128 in 00be2e1
- single line string newline:
faker/src/modules/finance/index.ts
Lines 971 to 972 in 00be2e1
- single line string inline:
faker/src/modules/food/index.ts
Line 43 in 3c7abb5
- array without leading/ending space:
faker/src/modules/helpers/index.ts
Line 821 in 3c7abb5
- array with leading/ending space:
faker/src/modules/helpers/index.ts
Line 619 in 3c7abb5
Also some examples seem to refer to old parameter defaults or locale data as well.
We should define a function that formats our examples consistently.
Potentially automatically via script.