$ the-wire · showcase
ESLINT-PLUGIN-VUE CUTS TYPE CHECKING OVERHEAD WITH SMARTER INFERENCE
By RepoJournal · Filed · About Vue.js · Composed from the cited sources · methodology
eslint-plugin-vue just ditched unnecessary type-aware parser services by switching to runtime type inference that handles TypeScript syntax without the performance tax.
The plugin's type handling got leaner in a targeted refactor [1] that extracts the `getNameParamNode` helper and replaces `inferRuntimeTypeFromTypeNode` with `inferRuntimeType`, cutting through common TypeScript patterns without demanding the full type-aware parser. This mirrors the approach already proven in the `no-boolean-default` rule, now applied consistently across the codebase [1]. The change also introduces `skipTSAsExpression` handling to better catch edge cases [1]. If you maintain rules that inspect type annotations or default values, this lands in your next plugin release and silently improves linting speed on TypeScript codebases.
Action items
- → Watch for the next eslint-plugin-vue release containing this refactor vuejs/eslint-plugin-vue [monitor]
References
- [1] refactor: extract `getNameParamNode` and improve type handling ↗ vuejs/eslint-plugin-vue