Replace eslint config with biomejs
This commit is contained in:
parent
546ec10a3a
commit
5bce2a44d1
1 changed files with 5 additions and 3 deletions
|
|
@ -1,9 +1,11 @@
|
|||
return {
|
||||
on_attach = function(_, bufnr)
|
||||
-- Auto format with eslint fix all
|
||||
-- Format document on save
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
buffer = bufnr,
|
||||
command = "EslintFixAll",
|
||||
})
|
||||
callback = function()
|
||||
vim.lsp.buf.format()
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Reference in a new issue