Closed Bug 1829618 Opened 1 year ago Closed 1 year ago

Enable Prettier on json files

Categories

(Developer Infrastructure :: Lint and Formatting, task, P2)

Tracking

(firefox115 fixed)

RESOLVED FIXED
Tracking Status
firefox115 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(3 files)

As part of the forthcoming Prettier upgrades, we also want to enable Prettier for JSON files. This forms part of bug 1563927 where we can later think about enabling ESLint for JSON as well.

I think we might as well enable Prettier whilst we're enabling/upgrading it, so I think doing it before ESLint is reasonable.

Depends on: 1829620
Attachment #9330030 - Attachment description: WIP: Bug 1829618 - Enable Prettier on json files (automatic fixes). → Bug 1829618 - Enable Prettier on json files (automatic fixes). r?Mossop!
Attachment #9330032 - Attachment description: WIP: Bug 1829618 - Enable Prettier on json files (configuration changes). → Bug 1829618 - Enable Prettier on json files (configuration changes). r?Mossop!
Attachment #9330251 - Attachment description: WIP: Bug 1829618 - Enable Prettier on json files (manual test fixes). → Bug 1829618 - Enable Prettier on json files (manual test fixes). r?#devtools-reviewers!
See Also: → 1831101

Greg, should tools/browsertime/ be in either ThirdPartyPaths.txt or Generated.txt? It looks like these changes would touch tools/browsertime/package.json but that appears to now being generated? Though the whole directory is maybe third party?

Flags: needinfo?(gmierz2)

Ah you're right, thanks for catching that! The package.json, and package-lock.json files in tools/browsertime are auto-generated when we update browsertime through ./mach browsertime --update-upstream-url <TARBALLL-COMMIT-LINK>. We should add those two files to Generated.txt.

Flags: needinfo?(gmierz2)

Thanks, I'll do that in these patches.

Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/319779e24a77
Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
https://hg.mozilla.org/integration/autoland/rev/867749fa570b
Enable Prettier on json files (configuration changes). r=mossop
https://hg.mozilla.org/integration/autoland/rev/8e7811d8eb96
Enable Prettier on json files (manual test fixes). r=devtools-reviewers,jdescottes
Blocks: 1865492
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: