Closed Bug 1857834 Opened 2 years ago Closed 1 year ago

Upgrade to Prettier v3

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: Logan, Assigned: Logan)

References

Details

Attachments

(2 files, 3 obsolete files)

We're currently using Prettier v2. Prettier v3 with changes/improvements to formatting; we should upgrade to it.

Assignee: nobody → loganrosen
Status: NEW → ASSIGNED

There are two equals signs when there should be just one. This was made more obvious after applying Prettier v3's auto formatting.

Depends on D190410

Prettier v3 has regressions in XHTML formatting and apparently never supported that format to begin with (see this bug). Disabling XHTML auto-formatting with Prettier accordingly.

Depends on D190411

#ignore-this-changeset

Depends on D190412

Depends on: 1857999
Attachment #9357316 - Attachment is obsolete: true

I just tried this again now that Bug 1857999 was fixed, but there are test failures because Prettier now downcases DOCTYPE to doctype, and the XHTML parser does not allow this. Looks like we now need to wait on https://github.com/prettier/prettier/issues/15476 (which the maintainer seems to be addressing despite the lack of official support for XHTML).

Comment on attachment 9357315 [details]
Bug 1857834 - fix bug in fxview-tab-list.mjs r?#fxview-reviewers

Revision D190411 was moved to bug 1860931. Setting attachment 9357315 [details] to obsolete.

Attachment #9357315 - Attachment is obsolete: true

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: loganrosen → nobody
Status: ASSIGNED → NEW
Assignee: nobody → sledru
Status: NEW → ASSIGNED
Attachment #9357314 - Attachment is obsolete: true

Logan, it looks like the Prettier issue is finally fixed, would you be interested in picking this up again?

Flags: needinfo?(loganrosen)

Sure thing, I can pick this back up.

Flags: needinfo?(loganrosen)
Attachment #9357314 - Attachment is obsolete: false
Attachment #9357317 - Attachment is obsolete: true
Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/205faab59863 update to Prettier v3 r=linter-reviewers,Standard8 https://hg.mozilla.org/integration/autoland/rev/288a8387ab8a auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

Thank you for working on this Logan, very nice to get that updated.

Assignee: sledru → loganrosen
Regressions: 1934349
See Also: → 1989474
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: