When I make changes to the files in this project in VSCode, it makes a bunch of formatting changes that I end up having to revert. I don't care what settings we're using here, I just don't want my editor to trample on them.
This project uses eslint and editorconfig, and it has .vscode/settings.json file.
When I run npm run lint on the main branch, all is well.
When I open a file like index.js or index.test.ts in VSCode and hit Save, it formats a bunch of the code, leading to a huge diff. npm run lint still passes after those changes, so apparently eslint is indifferent about all those formatting preferences that my editor is applying on save?
Forgive my ignorance on the matter, but what am I doing wrong here?
When I make changes to the files in this project in VSCode, it makes a bunch of formatting changes that I end up having to revert. I don't care what settings we're using here, I just don't want my editor to trample on them.
This project uses eslint and editorconfig, and it has
.vscode/settings.jsonfile.When I run
npm run linton the main branch, all is well.When I open a file like
index.jsorindex.test.tsin VSCode and hit Save, it formats a bunch of the code, leading to a huge diff.npm run lintstill passes after those changes, so apparently eslint is indifferent about all those formatting preferences that my editor is applying on save?Forgive my ignorance on the matter, but what am I doing wrong here?