The Wire · Showcase
ESLINT-PLUGIN-VUE CUTS TYPE CHECKING OVERHEAD WITH SMARTER INFERENCE
By RepoJournal · Filed · About Vue.js
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.
One email a day. Unsubscribe in one click.
Keep up with Vue.js in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
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