Closed Bug 1826062 Opened 3 years ago Closed 2 years ago

Upgrade Prettier to the latest version

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

(6 files)

Prettier hasn't been updated for a few years, and it is about time that we did so. There's various improvements and new command line arguments to Prettier that have happened since 1.9.x.

Mainly due to the changes from 1.9 -> 2.0, there are quite a few places where we'll need to reformat the tree. Hence I'm planning on landing this during the 115 nightly cycle in May, before the next ESR happens.

Note to self: as part of this we should pass the --no-error-on-unmatched-pattern to prettier and remove the work around in run_prettier (tools/lint/eslint/__init__.py), that was added in bug 1825507.

Blocks: 1749499
Blocks: 1826063

Also keeps 'arrowParens' as 'avoid', rather than switching to the new Prettier default of 'always'.

Depends on D176465

Depends on D177025

Attachment #9331343 - Attachment description: WIP: Bug 1826062 - Upgrade Prettier to v2.0.5. → Bug 1826062 - Upgrade Prettier to v2.0.5. r?Mossop!
Attachment #9331353 - Attachment description: WIP: Bug 1826062 - Upgrade Prettier to 2.8.8. → Bug 1826062 - Upgrade Prettier to 2.8.8. r?Mossop!
Attachment #9331352 - Attachment description: WIP: Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. → Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r?Mossop!
Attachment #9331354 - Attachment description: WIP: Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. → Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r?Mossop!
Attachment #9331343 - Attachment description: Bug 1826062 - Upgrade Prettier to v2.0.5. r?Mossop! → WIP: Bug 1826062 - Upgrade Prettier to v2.0.5.
Attachment #9333334 - Attachment description: Bug 1826062 - Manual fixes for Prettier 2.0.5 upgrade. r?Mossop! → WIP: Bug 1826062 - Manual fixes for Prettier 2.0.5 upgrade.
Attachment #9331353 - Attachment description: Bug 1826062 - Upgrade Prettier to 2.8.8. r?Mossop! → WIP: Bug 1826062 - Upgrade Prettier to 2.8.8.
Attachment #9331352 - Attachment description: Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r?Mossop! → WIP: Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade.
Attachment #9333335 - Attachment description: Bug 1826062 - Manual fixes for Prettier 2.8.8 upgrade. r?Mossop! → WIP: Bug 1826062 - Manual fixes for Prettier 2.8.8 upgrade.
Attachment #9331354 - Attachment description: Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r?Mossop! → WIP: Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8.
Attachment #9331343 - Attachment description: WIP: Bug 1826062 - Upgrade Prettier to v2.0.5. → Bug 1826062 - Upgrade Prettier to v2.0.5. r?Mossop!
Attachment #9331352 - Attachment description: WIP: Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. → Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r?Mossop!
Attachment #9333334 - Attachment description: WIP: Bug 1826062 - Manual fixes for Prettier 2.0.5 upgrade. → Bug 1826062 - Manual fixes for Prettier 2.0.5 upgrade. r?Mossop!
Attachment #9331353 - Attachment description: WIP: Bug 1826062 - Upgrade Prettier to 2.8.8. → Bug 1826062 - Upgrade Prettier to 2.8.8. r?Mossop!
Attachment #9333335 - Attachment description: WIP: Bug 1826062 - Manual fixes for Prettier 2.8.8 upgrade. → Bug 1826062 - Manual fixes for Prettier 2.8.8 upgrade. r?Mossop!
Attachment #9331354 - Attachment description: WIP: Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. → Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r?Mossop!
See Also: → 1833949
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a2728941930 Upgrade Prettier to v2.0.5. r=mossop https://hg.mozilla.org/integration/autoland/rev/2077266ed81a Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish https://hg.mozilla.org/integration/autoland/rev/2e415eb6a64e Manual fixes for Prettier 2.0.5 upgrade. r=mossop,devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/43d78b92dff6 Upgrade Prettier to 2.8.8. r=mossop https://hg.mozilla.org/integration/autoland/rev/c9194fb67b65 Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu https://hg.mozilla.org/integration/autoland/rev/6d9ab7bb3a77 Manual fixes for Prettier 2.8.8 upgrade. r=mossop,webdriver-reviewers,extension-reviewers,devtools-reviewers,robwu
Regressions: 1834177
No longer regressions: 1834177
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: