add js formatting, linting

This commit is contained in:
Danny Wigg 2025-02-16 16:22:20 +00:00
parent fe34f088da
commit f0e41cf05c
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -646,6 +646,12 @@ require('lazy').setup({
},
},
},
eslint = {
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
settings = {
format = false,
},
},
}
-- Ensure the servers and tools above are installed
@ -716,6 +722,10 @@ require('lazy').setup({
end,
formatters_by_ft = {
lua = { 'stylua' },
javascript = { 'prettierd', stop_after_first = true },
javascriptreact = { 'prettierd', stop_after_first = true },
typescript = { 'prettierd', stop_after_first = true },
typescriptreact = { 'prettierd', stop_after_first = true },
-- Conform can also run multiple formatters sequentially
-- python = { "isort", "black" },
--