~/talk

Advanced Linting in Node js

Talkat EmpireNode 2016 · on Monday, 2016-11-07· [javascript]
slides:none on file

Argues that linting must go beyond style to detect real bugs by enforcing patterns, demonstrates writing custom ESLint rules with ESLint and ASTExplorer.net, builds a ~20-line rule that flags a promise used inside a callback and shows it removing errors, points out existing rules like no-throw-literal and mentions publishing as eslint-plugin-promise which thousands use, and claims this approach catches mismatched callback/promise, lodash/underscore, and other pattern bugs early.

AI-written summary · about

  1. 0:00Intro
  2. 0:32Why you should lint
  3. 4:38Error Handling
  4. 5:56Callback Pattern
  5. 7:15Promise Pattern
  6. 9:08Mismatched Patterns
  7. 11:05Common Mismatched Patterns
  8. 12:42Creating Custom ESLINT Rules
  9. 14:47Mixing Promises and Callbacks
~/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.