Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-tsc --fix for CLI bulk auto-fixes (like you can do one at a time inside VSCode) #4999

Open
justingrant opened this issue Nov 8, 2024 · 0 comments
Labels
feature request Request new features

Comments

@justingrant
Copy link

What problem does this feature solve?

It saves developers huge amounts of time when fixing large numbers of lint issues in .vue files.

Vue integration with VSCode makes it easy to auto-fix problems that are auto-fixable. It'd be great to have this capability available on the vue-tsc CLI as well, because when upgrading TS, other dependencies, or TS configs you'll often get hundreds of auto-fixable problems in a large codebase, and it's inefficient and error prone to fix these one at a time in the IDE. I know this because I just auto-fixed 200+ import => import type in the IDE and it took a long time and hundreds of mouse clicks.

What does the proposed solution look like?

Here's an example CLI tool that does this with regular TSC: https://github.com/microsoft/ts-fix

It'd be great if there were a similar capability for Vue tools, e.g. vue-tsc --fix just like there's npx eslint . --fix.

Also, the VSCode integration should expose a command in the extension like vscode-eslint's:
image

@justingrant justingrant added the feature request Request new features label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request new features
Projects
None yet
Development

No branches or pull requests

1 participant