diff --git a/crates/oxc_linter/src/context/mod.rs b/crates/oxc_linter/src/context/mod.rs index b69aebcc7aa6f..ef2e45964152a 100644 --- a/crates/oxc_linter/src/context/mod.rs +++ b/crates/oxc_linter/src/context/mod.rs @@ -474,4 +474,6 @@ const PLUGIN_PREFIXES: phf::Map<&'static str, &'static str> = phf::phf_map! { "unicorn" => "eslint-plugin-unicorn", "vitest" => "eslint-plugin-vitest", "node" => "eslint-plugin-node", + "vue" => "eslint-plugin-vue", + "regexp" => "eslint-plugin-regexp", }; diff --git a/crates/oxc_linter/src/snapshots/vue_valid_define_emits.snap b/crates/oxc_linter/src/snapshots/vue_valid_define_emits.snap index 95f3404596e30..aaae3b27d195d 100644 --- a/crates/oxc_linter/src/snapshots/vue_valid_define_emits.snap +++ b/crates/oxc_linter/src/snapshots/vue_valid_define_emits.snap @@ -1,7 +1,7 @@ --- source: crates/oxc_linter/src/tester.rs --- - ⚠ vue(valid-define-emits): `defineEmits` is referencing locally declared variables. + ⚠ eslint-plugin-vue(valid-define-emits): `defineEmits` is referencing locally declared variables. ╭─[valid_define_emits.tsx:5:12] 4 │ const def = { notify: null } 5 │ defineEmits(def) @@ -10,7 +10,7 @@ source: crates/oxc_linter/src/tester.rs ╰──── help: inline the variable or import it from another module. - ⚠ vue(valid-define-emits): `defineEmits` has both a type-only emit and an argument. + ⚠ eslint-plugin-vue(valid-define-emits): `defineEmits` has both a type-only emit and an argument. ╭─[valid_define_emits.tsx:4:12] 3 │ /* ✗ BAD */ 4 │ defineEmits<(e: 'notify')=>void>({ submit: null }) @@ -19,7 +19,7 @@ source: crates/oxc_linter/src/tester.rs ╰──── help: remove the argument for better type inference. - ⚠ vue(valid-define-emits): `defineEmits` has been called multiple times. + ⚠ eslint-plugin-vue(valid-define-emits): `defineEmits` has been called multiple times. ╭─[valid_define_emits.tsx:4:12] 3 │ /* ✗ BAD */ 4 │ defineEmits({ notify: null }) @@ -32,7 +32,7 @@ source: crates/oxc_linter/src/tester.rs ╰──── help: combine all events into a single `defineEmits` call. - ⚠ vue(valid-define-emits): Custom events are defined in both `defineEmits` and `export default {}`. + ⚠ eslint-plugin-vue(valid-define-emits): Custom events are defined in both `defineEmits` and `export default {}`. ╭─[valid_define_emits.tsx:9:18] 8 │ /* ✗ BAD */ 9 │ defineEmits({ submit: null }) @@ -41,7 +41,7 @@ source: crates/oxc_linter/src/tester.rs ╰──── help: Remove `export default`. - ⚠ vue(valid-define-emits): Custom events are defined in both `defineEmits` and `export default {}`. + ⚠ eslint-plugin-vue(valid-define-emits): Custom events are defined in both `defineEmits` and `export default {}`. ╭─[valid_define_emits.tsx:6:21] 5 │