From fcc641e52486d95c9984c5b2a5ac9105cfbdf45a Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Mon, 16 Sep 2024 10:39:42 -0400 Subject: [PATCH] fix(linter): plugin prefix name for eslint-plugin-node --- crates/oxc_linter/src/context/mod.rs | 1 + crates/oxc_linter/src/snapshots/no_exports_assign.snap | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/oxc_linter/src/context/mod.rs b/crates/oxc_linter/src/context/mod.rs index 53589f2a47a758..94be18593d9bb1 100644 --- a/crates/oxc_linter/src/context/mod.rs +++ b/crates/oxc_linter/src/context/mod.rs @@ -343,4 +343,5 @@ const PLUGIN_PREFIXES: phf::Map<&'static str, &'static str> = phf::phf_map! { "typescript" => "typescript-eslint", "unicorn" => "eslint-plugin-unicorn", "vitest" => "eslint-plugin-vitest", + "node" => "eslint-plugin-node", }; diff --git a/crates/oxc_linter/src/snapshots/no_exports_assign.snap b/crates/oxc_linter/src/snapshots/no_exports_assign.snap index 717ae8354d976b..a35b064aa764cd 100644 --- a/crates/oxc_linter/src/snapshots/no_exports_assign.snap +++ b/crates/oxc_linter/src/snapshots/no_exports_assign.snap @@ -1,7 +1,7 @@ --- source: crates/oxc_linter/src/tester.rs --- - ⚠ node(no-exports-assign): Disallow the assignment to `exports`. + ⚠ eslint-plugin-node(no-exports-assign): Disallow the assignment to `exports`. ╭─[no_exports_assign.tsx:1:1] 1 │ exports = {} · ───────