mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 09:08:37 +00:00
eslint_d: fix
This commit is contained in:
parent
67d9aa7cb5
commit
33f304b6ae
3 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@
|
||||||
local markers = { "eslint.config.js", "eslint.config.mjs",
|
local markers = { "eslint.config.js", "eslint.config.mjs",
|
||||||
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
||||||
for _, filename in ipairs(markers) do
|
for _, filename in ipairs(markers) do
|
||||||
local path = vim.fs.join(cwd, filename)
|
local path = vim.fs.joinpath(cwd, filename)
|
||||||
if vim.loop.fs_stat(path) then
|
if vim.loop.fs_stat(path) then
|
||||||
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
||||||
end
|
end
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
local markers = { "eslint.config.js", "eslint.config.mjs",
|
local markers = { "eslint.config.js", "eslint.config.mjs",
|
||||||
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
||||||
for _, filename in ipairs(markers) do
|
for _, filename in ipairs(markers) do
|
||||||
local path = vim.fs.join(cwd, filename)
|
local path = vim.fs.joinpath(cwd, filename)
|
||||||
if vim.loop.fs_stat(path) then
|
if vim.loop.fs_stat(path) then
|
||||||
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
||||||
end
|
end
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
local markers = { "eslint.config.js", "eslint.config.mjs",
|
local markers = { "eslint.config.js", "eslint.config.mjs",
|
||||||
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", }
|
||||||
for _, filename in ipairs(markers) do
|
for _, filename in ipairs(markers) do
|
||||||
local path = vim.fs.join(cwd, filename)
|
local path = vim.fs.joinpath(cwd, filename)
|
||||||
if vim.loop.fs_stat(path) then
|
if vim.loop.fs_stat(path) then
|
||||||
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
return require("lint.linters.eslint_d").parser(output, bufnr, cwd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue