2 ms·
That's a job for TypeScript, not eslint.
by zdragnar 3y ago
That's a job for TypeScript, not eslint.
- kristiandupont 3y agoLinter rules can rely on the type system
- zdragnar 3y agoWhat eslint rule would apply to the caller of a function after that function's signature changes that wouldn't also be picked up by TypeScript? In particular, the call site itself hasn't changed, as this thread assumes the linter is only run on changed files
- kristiandupont 3y agoAnamexis has a couple of examples in this response: https://news.ycombinator.com/item?id=38655101 https://news.ycombinator.com/item?id=38655101