LazyVim
LazyVim copied to clipboard
feat(eslint): add option to disable eslint auto format
Description
This adds an option to disable eslint's autoformatting. The reasons for not wanting an auto format by eslint are:
- It is generally not recommended to use a linter as a formatter as highlighted by https://typescript-eslint.io/users/what-about-formatting/#:~:text=We%20recommend%20against%20using%20ESLint,dprint%2C%20or%20an%20equivalent%20instead
- A personal preference not to have a linter change my code which I'm sure other people share.
- As highlighted in the link above, eslint auto format can be quite slow.
I would even argue that this should be the default, but I've left it as is in order not to break anyone's config or ruffle anyone's feathers.
Checklist
- [x] I've read the CONTRIBUTING guidelines.