Vscode-eslint: Feature: "fix all problems" on save

Created on 1 Aug 2016  路  3Comments  路  Source: microsoft/vscode-eslint

I'd be very nice if the plugin came with an option to run the "fix all problems" after saving like is done in other editors.

If I get some time at work, I can look into adding this. But I wanted to submit this issue as well in case the vscode team wanted to handle it.

bug

Most helpful comment

The VS Code 1.6 release will have API to particiapte in save. When this is in and available I will adapt it.

All 3 comments

Also do fix all problems on
image
Thanks

PS if eslint can overwrite the standard formatting feature in vscode then format on save can be made more global

https://github.com/Microsoft/vscode/issues/4039

The VS Code 1.6 release will have API to particiapte in save. When this is in and available I will adapt it.

I adopted the API and release a new version of the extension. Please note that auto fix on save only works for manual save or for save on focus lost. This is consistent with format on save in VS Code.

Was this page helpful?
0 / 5 - 0 ratings