eslint-config
eslint-config copied to clipboard
Remove curly "Unnecessary { after if/for-of" autofixes from on-save formatter
Clear and concise description of the problem
Pretty often I find myself writing
if (foo) {
bar()
void 0
}
to avoid ESLint collapsing that to
if (foo)
bar()
when I save the file
Suggested solution
Move "Unnecessary { after if/for-of" autofixes to on-explicit-format (or on-command-line) formatting so it doesn't autofix while I'm in the middle of writing it
Alternative
Autosaving may sometimes bypass linting, but I prefer my files not to autosave ever in some cases
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.