nvim-config/lua/configs/linter.lua
2024-03-19 17:47:26 -07:00

17 lines
402 B
Lua

local function config()
local lint = require('lint')
-- TODO: make sure these work given old setup
-- detected root of project based on .eslintrc file
-- sudo pacman -S eslint_d
-- sudo npm install -g eslint_d
lint.linters_by_ft = {
javascript = { 'eslint_d' },
typescript = { 'eslint_d' },
typescriptreact = { 'eslint_d' },
}
-- TODO: lint on write autocommand
end
return config