From f0e41cf05c2ac65a1d5b220879f61b3b2dd3c7bb Mon Sep 17 00:00:00 2001 From: Danny Wigg Date: Sun, 16 Feb 2025 16:22:20 +0000 Subject: [PATCH] add js formatting, linting --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.lua b/init.lua index 55df3df1..614b9c09 100644 --- a/init.lua +++ b/init.lua @@ -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" }, --