New Linting Rules
recording made private on YouTubehttps://youtu.be/kmo_RAdquIs
summary
A custom linter built by the author flags real issues: typeof null bug, 24 coercion cases with 7 gotchas (rule: never use == true/false and avoid comparing to empty string/0/[]), recommends restrictmode.org to detect unsafe coercions and a letter tool to transpile explicit block-scoping (let) back to ES3/ES5. Advice: name function expressions for readable stack traces, use block scoping for per-iteration let in loops, follow four simple rules for this binding, and prefer object delegation via Object.create over class-style prototype hacks.
AI-written summary · about







