From a6f8df678549829a0dfcd6d7609ee098efeacb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phan=20=C4=90=C4=83ng=20Khoa?= Date: Thu, 10 Apr 2025 20:47:52 +0700 Subject: [PATCH] Merge pull request #818 from rice-cracker-dev/eslint-fix languages: fix eslint_d error on load --- docs/release-notes/rl-0.8.md | 1 + modules/plugins/languages/astro.nix | 2 +- modules/plugins/languages/svelte.nix | 2 +- modules/plugins/languages/ts.nix | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 40f2af57..6fc28a55 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -288,6 +288,7 @@ [rice-cracker-dev](https://github.com/rice-cracker-dev): - `eslint_d` now checks for configuration files to load. +- Fixed an error where `eslint_d` fails to load. [Sc3l3t0n](https://github.com/Sc3l3t0n): diff --git a/modules/plugins/languages/astro.nix b/modules/plugins/languages/astro.nix index 9c359a2e..c12f6ada 100644 --- a/modules/plugins/languages/astro.nix +++ b/modules/plugins/languages/astro.nix @@ -62,7 +62,7 @@ local markers = { "eslint.config.js", "eslint.config.mjs", ".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", } 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 return require("lint.linters.eslint_d").parser(output, bufnr, cwd) end diff --git a/modules/plugins/languages/svelte.nix b/modules/plugins/languages/svelte.nix index 67f11bc2..e01ec427 100644 --- a/modules/plugins/languages/svelte.nix +++ b/modules/plugins/languages/svelte.nix @@ -61,7 +61,7 @@ local markers = { "eslint.config.js", "eslint.config.mjs", ".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", } 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 return require("lint.linters.eslint_d").parser(output, bufnr, cwd) end diff --git a/modules/plugins/languages/ts.nix b/modules/plugins/languages/ts.nix index 1736af2b..ffab265b 100644 --- a/modules/plugins/languages/ts.nix +++ b/modules/plugins/languages/ts.nix @@ -103,7 +103,7 @@ local markers = { "eslint.config.js", "eslint.config.mjs", ".eslintrc", ".eslintrc.json", ".eslintrc.js", ".eslintrc.yml", } 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 return require("lint.linters.eslint_d").parser(output, bufnr, cwd) end