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

Feature request: vscode-jslint – lint on save (or lint automatically) #429

Closed
fourier-space opened this issue Apr 25, 2023 · 1 comment

Comments

@fourier-space
Copy link

I hope this is the right place to file this, as it's about the vscode extension rather than jslint core. But it's page links to this github.

Is your feature request related to a problem? Please describe.
To use this extension, you have to actively run the command to lint the file (by the context menu or key binding).
There is no feature to automatically invoke the linter, such as on save.
This issue is a request for such feature!

Describe the solution you'd like
If appropriately enabled, when a javascript file is saved, the linter is run at this point.

Describe alternatives you've considered
The "Andrew Hyndman" jslint extension, which is a good interface but lags behind in jslint version, lints on each character. This is good too.

@kaizhu256
Copy link
Member

  • yes this is the right place to file
  • +1 for manual, lint-on-save hotkey ctrl+shift+j s (or cmd+shift+j s for mac)
  • -1 for automatic, lint-on-save
    • most javascript-in-the-wild follow conventions incompatible with jslint
    • more time will be lost trying to disable automatic lint-on-save (common-case), than gained from the feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants