17 lines
402 B
Lua
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
|