add more linters

This commit is contained in:
Noah Håkansson 2024-01-30 14:25:06 +01:00
parent b402f79541
commit 721cb29480
1 changed files with 13 additions and 1 deletions

View File

@ -16,6 +16,7 @@ function M.config()
null_ls.setup({ null_ls.setup({
debug = false, debug = false,
sources = { sources = {
-- Formatters
formatting.stylua, formatting.stylua,
formatting.black, formatting.black,
formatting.prettier.with({ formatting.prettier.with({
@ -36,9 +37,20 @@ function M.config()
-- extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" }, -- extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
}), }),
formatting.eslint_d, formatting.eslint_d,
-- Linters / Diagnostics
diagnostics.eslint_d, diagnostics.eslint_d,
diagnostics.flake8, diagnostics.flake8,
-- diagnostics.flake8,
-- diagnostics.revive, -- Golang linter
diagnostics.yamllint,
diagnostics.jsonlint,
diagnostics.shellcheck.with({
filetypes = { 'sh', 'zsh' },
}),
diagnostics.zsh,
-- Code Actions
code_actions.eslint_d, code_actions.eslint_d,
}, },
}) })