-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
autoFixOnSave not working when standard is installed globally #373
Comments
Hello! 👋 @ocroz I don't have the time to investigate this bug.
You really should, so others working on your project can have the same linting rules. |
Hello I installed it locally, same issues. It doesn't fix anything. Windows 10, vscode, node, npm, standard, all latest stable. |
I tested my installation with Settings:
Also, I agree that it should install with --save-dev instead of --global. |
With: standard.vscode-standard@v2.0.1
On Windows 10 and remote Container in WSL2 with node@v16.13.1 and npm@8.1.2.
I can run
standard --fix
however I install standardlocally
orglobally
.Now, if I configure
"standard.autoFixOnSave": true
in mysettings.json
, it works only if standard is installed locally using;npm install --save-dev --no-optional standard
.autoFixOnSave
should work if standard is installedglobally
too, using:npm install --global --no-optional standard
.Then, no need to install standard to all my javascript projects.
I don't know this code, and I'm not confident enough to to submit a pull request to fix this bug. Can anyone help?
The text was updated successfully, but these errors were encountered: