Enable prettier for self-hosted code
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
References
(Blocks 1 open bug)
Details
Attachments
(30 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1782273 - Part 15: Rewrap lines in js/src/builtin/{Set,Sorting,Tuple,Utilities}.js. r=tcampbell!
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
We currently have a mix of old 4-space tabs and new 2-space tabs in self-hosted JS code. Let's enable prettier to make this more consistent.
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Depends on D153235
| Assignee | ||
Comment 3•3 years ago
|
||
Depends on D153236
| Assignee | ||
Comment 4•3 years ago
|
||
Depends on D153237
| Assignee | ||
Comment 5•3 years ago
|
||
Depends on D153238
| Assignee | ||
Comment 6•3 years ago
|
||
Depends on D153239
| Assignee | ||
Comment 7•3 years ago
|
||
Depends on D153240
| Assignee | ||
Comment 8•3 years ago
|
||
Depends on D153241
| Assignee | ||
Comment 9•3 years ago
|
||
Depends on D153242
| Assignee | ||
Comment 10•3 years ago
|
||
Depends on D153243
| Assignee | ||
Comment 11•3 years ago
|
||
Depends on D153244
| Assignee | ||
Comment 12•3 years ago
|
||
Depends on D153245
| Assignee | ||
Comment 13•3 years ago
|
||
Depends on D153246
| Assignee | ||
Comment 14•3 years ago
|
||
Depends on D153247
| Assignee | ||
Comment 15•3 years ago
|
||
Depends on D153248
| Assignee | ||
Comment 16•3 years ago
|
||
Depends on D153249
| Assignee | ||
Comment 17•3 years ago
|
||
Depends on D153250
| Assignee | ||
Comment 18•3 years ago
|
||
Depends on D153251
| Assignee | ||
Comment 19•3 years ago
|
||
Depends on D153252
| Assignee | ||
Comment 20•3 years ago
|
||
Depends on D153253
| Assignee | ||
Comment 21•3 years ago
|
||
Depends on D153254
| Assignee | ||
Comment 22•3 years ago
|
||
Depends on D153255
| Assignee | ||
Comment 23•3 years ago
|
||
Depends on D153256
| Assignee | ||
Comment 24•3 years ago
|
||
Depends on D153257
| Assignee | ||
Comment 25•3 years ago
|
||
Depends on D153258
| Assignee | ||
Comment 26•3 years ago
|
||
Depends on D153259
| Assignee | ||
Comment 27•3 years ago
|
||
Depends on D153260
| Assignee | ||
Comment 28•3 years ago
|
||
Depends on D153261
| Assignee | ||
Comment 29•3 years ago
|
||
The "prettierrc" matches almost the top-level "prettierrc", except for two changes:
- "printWidth" is changed to 100, because we have many long lines.
- "quoteProps" is changed to "consistent" to handle the
sanctionedSimpleUnitIdentifiersarray.
Depends on D153262
Updated•3 years ago
|
Comment 30•3 years ago
|
||
We've embraced clang-format for all the C++ and been happier for it. Adding some consistency to self-hosting makes for one less thing to think about when writing it, so this sounds good.
| Assignee | ||
Comment 31•3 years ago
|
||
| Assignee | ||
Comment 32•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 33•3 years ago
|
||
Comment 34•3 years ago
|
||
Comment 35•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/29ba93e15767
https://hg.mozilla.org/mozilla-central/rev/48911a329fcc
https://hg.mozilla.org/mozilla-central/rev/d28d5b505b12
https://hg.mozilla.org/mozilla-central/rev/480f3be49bf1
https://hg.mozilla.org/mozilla-central/rev/dd16540f2123
https://hg.mozilla.org/mozilla-central/rev/71fdd9221205
https://hg.mozilla.org/mozilla-central/rev/1e5c20b1a804
https://hg.mozilla.org/mozilla-central/rev/ff084083223d
https://hg.mozilla.org/mozilla-central/rev/64885a01f4c2
https://hg.mozilla.org/mozilla-central/rev/38a2a58b4811
https://hg.mozilla.org/mozilla-central/rev/953af7b6e4ec
https://hg.mozilla.org/mozilla-central/rev/601f77dbe7c9
https://hg.mozilla.org/mozilla-central/rev/b2c80460a4ff
https://hg.mozilla.org/mozilla-central/rev/5ab0db00d8cf
https://hg.mozilla.org/mozilla-central/rev/9904a8855f7b
https://hg.mozilla.org/mozilla-central/rev/f07b36c9f54d
https://hg.mozilla.org/mozilla-central/rev/cabdf7282126
https://hg.mozilla.org/mozilla-central/rev/4f6cdc668207
https://hg.mozilla.org/mozilla-central/rev/19b76ea0f786
https://hg.mozilla.org/mozilla-central/rev/b387d0933e42
https://hg.mozilla.org/mozilla-central/rev/30f04fe93a0b
https://hg.mozilla.org/mozilla-central/rev/51bb9288e5f0
https://hg.mozilla.org/mozilla-central/rev/d9b43f4633f8
https://hg.mozilla.org/mozilla-central/rev/c317e8916990
https://hg.mozilla.org/mozilla-central/rev/7d28e64fe6b9
https://hg.mozilla.org/mozilla-central/rev/1c3ad91ce8ec
https://hg.mozilla.org/mozilla-central/rev/f94c2d3cf7ae
https://hg.mozilla.org/mozilla-central/rev/94e6e04ec617
https://hg.mozilla.org/mozilla-central/rev/de70aed071a2
https://hg.mozilla.org/mozilla-central/rev/f8fc3c47d6ed
Description
•