~/talk

Setting Up ESLint and TypeScript for React

Talkat React Miami 2023 · 2023-04-20..04-21· [react, typescript, developer-experience]
slides:none on file

Shows exact configs and commands: npm installs, eslint --init, extend eslint:recommended, use the TypeScript-ESLint parser and plugin with parserOptions.project true, run eslint --fix with report-unused-disable-directives and max-warnings=0, keep formatting to Prettier and editor autoformat on save, tsconfig settings like strict true jsx react preserve module ES2021 skipLibCheck. Demonstrates type-aware ESLint rules that catch await-on-non-promises and remove dead code, supplies a ready template repo to copy and run.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Static analysis tools
  3. 3:12What is a formatter and how to set up Prettier
  4. 7:21ESLint basics
  5. 10:11ESLint for React
  6. 13:18ESLint vs formatting
  7. 14:43TypeScript intro
  8. 16:27TypeScript with React
  9. 19:58TypeScript compiler options
  10. 21:03TypeScript vs ESLint
  11. 22:08TypeScript ESLint
  12. 24:59Type info in ESLint
  13. 25:43Setup recap
~/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.