~/talk

TypeScript Static Analysis Hidden Gems

Talkat JSDayIE 2023 · on Tuesday, 2023-09-26· [typescript]
slides:none on file

Shows concrete tools and configurations that find real problems: use typescript-eslint recommended type-check rules to catch mistakes like awaiting non-promises and to auto-suggest turning onclick into an async or removing a useless await that can eliminate a third of a file, set eslint to --max-warnings=0 and VSCode's source.fixAll to enforce fixes, stop using eslint for formatting and use Prettier or deprint instead, run knip to detect unused exports and even a 300MB unused dependency, and scaffold all of this with create-typescript-app.

AI-written summary · about

  1. 0:00Introduction to static analysis
  2. 1:25ESLint basics and setup
  3. 7:42Stop using ESLint for formatting
  4. 10:11TypeScript and ESLint integration
  5. 15:28Finding unused code with TypeScript
  6. 17:10Knip for unused dependencies
  7. 19:37Create TypeScript App overview
  8. 22:42Recap and closing remarks
~/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.