-
Notifications
You must be signed in to change notification settings - Fork 336
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
Add eslint.codeActionsOnSave.options #1945
base: main
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree [company="Vanta"] |
@microsoft-github-policy-service agree company="Vanta" |
@dbaeumer I think I've followed your instructions correctly in #1938 (comment). Is there a way I can build and install this extension locally so I can test whether the setting works? |
You can run from source
To build and install locally do the following:
Let me know how it goes. |
I did a first quick look and one thing I noticed is: do we want to support to only provide options without any rule modifications. That would have an impact on the code here: https://github.com/microsoft/vscode-eslint/blob/main/server/src/eslint.ts#L515 |
I was thinking if |
I think we should still allow this. If users already customized this and he simply wants to add some basic options I would still prefer to allow this. |
Add an
eslint.codeActionsOnSave.options
that allows users to customize the options that ESLint runs with on save. This allows passing in a different set of options to ESLint on save, allowing a greater degree of customization thaneslint.codeActionsOnSave.rules
.See motivation in #1938 (comment).