nvim-config/lua/configs/linter.lua

17 lines
402 B
Lua
Raw Normal View History

2024-03-20 00:47:26 +00:00
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