fix(linter): plugin prefix name for eslint-plugin-node (#5807)

This commit is contained in:
DonIsaac 2024-09-17 05:46:15 +00:00
parent 3725d5d44e
commit 858f7af2b5
2 changed files with 2 additions and 1 deletions

View file

@ -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",
};

View file

@ -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 = {}
· ───────