Re:Oxlint – written in Rust – 50-100 Times Faster than ESLint
by throwup238 on Friday December 15, 2023 @09:46AM
(#38654675)
Typescript lints are type-aware so you can’t just lint changed files, you have to relint the entire codebase to check if any type changes have impacted the unchanged code.
[ Parent
| on HN ]
Re:Oxlint – written in Rust – 50-100 Times Faster than ESLint
by pcthrowaway on Friday December 15, 2023 @10:11AM
(#38654911)
Wouldn't an issue with a type change be caught at typescript compile/check steps?
I'm not aware of eslint rules which would complain about some other untouched file if types have changed in ways such that the program still compiles
Re:Oxlint – written in Rust – 50-100 Times Faster than ESLint
by anamexis on Friday December 15, 2023 @10:32AM
(#38655101)
A few examples of typescript-eslint rules that could fail when a type in another file is changed:
https://typescript-eslint.io/rules/await-thenable/
https://typescript-eslint.io/rules/no-for-in-array
https://typescript-eslint.io/rules/no-duplicate-type-constit...