Skip to content

Commit 858f7af

Browse files
committed
fix(linter): plugin prefix name for eslint-plugin-node (#5807)
1 parent 3725d5d commit 858f7af

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

crates/oxc_linter/src/context/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -343,4 +343,5 @@ const PLUGIN_PREFIXES: phf::Map<&'static str, &'static str> = phf::phf_map! {
343343
"typescript" => "typescript-eslint",
344344
"unicorn" => "eslint-plugin-unicorn",
345345
"vitest" => "eslint-plugin-vitest",
346+
"node" => "eslint-plugin-node",
346347
};

crates/oxc_linter/src/snapshots/no_exports_assign.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
source: crates/oxc_linter/src/tester.rs
33
---
4-
node(no-exports-assign): Disallow the assignment to `exports`.
4+
eslint-plugin-node(no-exports-assign): Disallow the assignment to `exports`.
55
╭─[no_exports_assign.tsx:1:1]
66
1exports = {}
77
· ───────

0 commit comments

Comments
 (0)