Commit graph

9 commits

Author SHA1 Message Date
Ahmed Kamal
2d2e425d25
feat(eslint): add option to disable eslint auto format (#4225)
## Description

This adds an option to disable eslint's autoformatting. The reasons for
not wanting an auto format by eslint are:
1. 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
2. A personal preference not to have a linter change my code which I'm
sure other people share.
3. 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](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-08 14:05:00 +01:00
Folke Lemaitre
7a5dbeae75
feat: use LazyVim everywhere instead of require("lazyvim.util") 2024-03-22 09:15:09 +01:00
Nick Hester
71a73e8334
fix(eslint): correct working directories name (#2071) 2024-01-21 19:53:09 +01:00
Folke Lemaitre
f1a8f24a36 feat(format): new LazyVim formatter with integrations for lsp/none-ls/conform/eslint/... 2023-10-12 11:48:02 +02:00
Folke Lemaitre
e8c26c70e2
refactor(eslint): use util.get_clients instead of deprecated method 2023-10-10 11:54:33 +02:00
Mike Duminy
2ec4da7fa5
fix(format): eslint should respect autoformat (#897) 2023-06-08 07:48:34 +02:00
Folke Lemaitre
b227d9727a
perf(eslint): only run EslintFixAll for the current buffer when there are diagnostics from eslint 2023-05-19 22:49:25 +02:00
Folke Lemaitre
f1dbd097e4
fix(eslint): only run EslintFixAll on buffers where eslint is attached 2023-03-10 08:54:56 +01:00
Folke Lemaitre
75299da24c
feat(eslint): added an extra for eslint lsp that runs EslintFixAll before saving a buffer 2023-03-10 08:44:47 +01:00