Skip to content

Commit

Permalink
fix(linter): plugin prefix name for eslint-plugin-node (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Sep 17, 2024
1 parent 3725d5d commit 858f7af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
2 changes: 1 addition & 1 deletion crates/oxc_linter/src/snapshots/no_exports_assign.snap
Original file line number Diff line number Diff line change
@@ -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]
1exports = {}
· ───────
Expand Down

0 comments on commit 858f7af

Please sign in to comment.