~/talk

Javascript code formatting

Talkat React London 2017 Β· on Tuesday, 2017-03-28Β· [javascript]

Covers building Prettier: an actual JavaScript code formatter that rewrites whole files using an AST and the group/indent/if-break primitives, plus pragmatic fixes like adding parentheses for ambiguous expressions. Shows adoption data β€” 3x more files without JSX parentheses at Facebook β€” and tooling: snapshot regression tests, a conversion that runs across a large codebase in minutes, and options kept minimal. Demonstrates both technical algorithmic choices and the social rollout that makes it usable.

AI-written summary Β· about

  1. 0:00Introduction
  2. 1:27JavaScript formatting with Prettier
  3. 3:56Prettier vs ESLint
  4. 5:21Building a pretty printer
  5. 8:53Core formatting algorithm
  6. 13:12Code to formatted output
  7. 17:50Real-world formatting nuances
  8. 21:24Controversial Prettier choices
  9. 24:10Adopting Prettier
  10. 33:59Invisible Prettier fixes
  11. 36:50Success stories
  12. 37:34Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.