[meta] Use Prettier for formatting JS in mozilla-central
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(Not tracked)
People
(Reporter: vporof, Assigned: vporof)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: meta)
Attachments
(10 files, 7 obsolete files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
We plan to reformat m-c using Prettier on July 5 before the merge. This bug serves as a place for reviewing a few more preliminary patches required before a format can be done.
Prettier was added top level in bug 1556013, smoke tests already carried out with devtools/debugger in bug 1551218.
Automatic patch reformatting during rebase is being taken care of in bug 1556328 and bug 1556393
The full roadmap is available here: https://docs.google.com/document/u/1/d/1qV3aULyhulHsNHvnlbgAxeqlMGnpklUnxmpnY1OovXk
Four different competing prettifiers were experimented with earlier this year, carrying out reformats on the entire tree and measuring their impact for every single rule individually on all of m-c. In the end, Prettier was chosen because it was the only tool providing consistency and predictability, along with parsing and integration compatibility with our existing codebase. Out of all the possible configuration options rules, we've also picked the ones that had a measurable minimal code churn, otherwise the default values were kept.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Depends on D34532
Assignee | ||
Comment 3•6 years ago
|
||
Depends on D34533
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D34534
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D34535
Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Please don't file bugs with empty descriptions, especially when there are no related bugs with context. There is always a minimal amount of context that can easily be provided.
Assignee | ||
Comment 8•6 years ago
•
|
||
(In reply to Matthew N. [:MattN] (PM me if requests are blocking you) from comment #7)
Please don't file bugs with empty descriptions, especially when there are no related bugs with context. There is always a minimal amount of context that can easily be provided.
We plan to broadcast this plan more officially sometime this week.
Edited comment 0 for some context.
Updated•6 years ago
|
Assignee | ||
Comment 9•6 years ago
|
||
Depends on D34536
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Depends on D34535
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
Depends on D34682
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
What's the landing plan for this? AIUI part 5 and probably some others are going to disable the ESLint style rules as soon as these patches land. I'm a little nervous about doing that as that's going to leave us open to bad formatting for a couple of weeks. Maybe not too bad but I'm not sure how much we want to let this regress.
Assignee | ||
Comment 14•6 years ago
|
||
None of this touches m-c before July 5. When the trees close, these patches land alongside the mega formatting.
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 15•6 years ago
|
||
Depends on D34696
Updated•6 years ago
|
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 17•6 years ago
|
||
Try run with everything: https://treeherder.mozilla.org/#/jobs?repo=try&revision=3af08bc51a3ee091df076b78c4b8386fec7a683c
Assignee | ||
Comment 18•6 years ago
|
||
Depends on D35577
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 19•6 years ago
|
||
Depends on D34536
Assignee | ||
Comment 20•6 years ago
|
||
Depends on D36399
Assignee | ||
Comment 21•6 years ago
|
||
Depends on D36400
Assignee | ||
Comment 22•6 years ago
|
||
Depends on D36401
Assignee | ||
Comment 23•6 years ago
|
||
Depends on D36402
Assignee | ||
Comment 24•6 years ago
|
||
Depends on D36403
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 25•6 years ago
|
||
Depends on D36275
Comment 26•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•1 years ago
|
Updated•1 years ago
|
Updated•1 years ago
|
Description
•