I want VS Code to fix all linting errors on save, but ignore warnings.
This rule fixes everything it can on save:
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
.eslintrc.js:
rules: {
'react/self-closing-comp':
process.env.NODE_ENV === 'production'
? 'error'
: 'warn',
But I want it ignore warnings.
How can I do that?