3 ms·
If I change a function signature, then my code is fine - but all the other files which import and use my function will break
by Shish2k 3y ago
If I change a function signature, then my code is fine - but all the other files which import and use my function will break
- zdragnar 3y agoThat'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