From 5abd8ef2dc21793eb54b713de2e1669e62203af8 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Thu, 6 Jun 2024 13:41:51 -0700 Subject: [PATCH] Neovim: Disable eslint linting Eslint is still being run when formatting though. --- nvim/lua/kickstart/plugins/lint.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nvim/lua/kickstart/plugins/lint.lua b/nvim/lua/kickstart/plugins/lint.lua index af11d0e..4380513 100644 --- a/nvim/lua/kickstart/plugins/lint.lua +++ b/nvim/lua/kickstart/plugins/lint.lua @@ -24,8 +24,11 @@ return { -- text = { "vale" } -- } lint.linters_by_ft['markdown'] = { 'markdownlint' } - lint.linters_by_ft['typescript'] = { 'eslint' } - lint.linters_by_ft['javascript'] = { 'eslint' } + + -- JS and TS already run eslint when formatting with conform.nvim. + -- Additionally, this causes issues in JS or TS projects that do not have an eslint config file. + -- lint.linters_by_ft['typescript'] = { 'eslint' } + -- lint.linters_by_ft['javascript'] = { 'eslint' } -- You can disable the default linters by setting their filetypes to nil: -- lint.linters_by_ft['clojure'] = nil