mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-15 00:58:37 +00:00
Merge pull request #818 from rice-cracker-dev/eslint-fix
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
languages: fix eslint_d error on load
This commit is contained in:
parent
67d9aa7cb5
commit
a6f8df6785
4 changed files with 4 additions and 3 deletions
|
@ -288,6 +288,7 @@
|
||||||
[rice-cracker-dev](https://github.com/rice-cracker-dev):
|
[rice-cracker-dev](https://github.com/rice-cracker-dev):
|
||||||
|
|
||||||
- `eslint_d` now checks for configuration files to load.
|
- `eslint_d` now checks for configuration files to load.
|
||||||
|
- Fixed an error where `eslint_d` fails to load.
|
||||||
|
|
||||||
[Sc3l3t0n](https://github.com/Sc3l3t0n):
|
[Sc3l3t0n](https://github.com/Sc3l3t0n):
|
||||||
|
|
||||||
|
|
|
@ -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