Skip to content

Commit 7216d4d

Browse files
committed
feat(linter): add vue/valid-define-emits
1 parent cb96836 commit 7216d4d

File tree

4 files changed

+458
-0
lines changed

4 files changed

+458
-0
lines changed

crates/oxc_linter/src/context/host.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ impl<'a> ContextHost<'a> {
292292
pub fn frameworks(&self) -> FrameworkFlags {
293293
self.frameworks
294294
}
295+
296+
pub fn frameworks_options(&self) -> FrameworkOptions {
297+
self.frameworks_options
298+
}
295299
}
296300

297301
impl<'a> From<ContextHost<'a>> for Vec<Message<'a>> {

crates/oxc_linter/src/rules.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,10 @@ mod node {
576576
pub mod no_new_require;
577577
}
578578

579+
mod vue {
580+
pub mod valid_define_emits;
581+
}
582+
579583
oxc_macros::declare_all_lint_rules! {
580584
eslint::array_callback_return,
581585
eslint::arrow_body_style,
@@ -1103,4 +1107,5 @@ oxc_macros::declare_all_lint_rules! {
11031107
vitest::prefer_to_be_object,
11041108
vitest::prefer_to_be_truthy,
11051109
vitest::require_local_test_context_for_concurrent_snapshots,
1110+
vue::valid_define_emits,
11061111
}

0 commit comments

Comments
 (0)