add js formatting, linting
This commit is contained in:
parent
fe34f088da
commit
f0e41cf05c
10
init.lua
10
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" },
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue