Skip to content

Commit 977079f

Browse files
fix
1 parent 5b8fb30 commit 977079f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,8 +2684,7 @@ impl RuleRunner for crate::rules::vue::no_multiple_slot_args::NoMultipleSlotArgs
26842684
}
26852685

26862686
impl RuleRunner for crate::rules::vue::no_required_prop_with_default::NoRequiredPropWithDefault {
2687-
const NODE_TYPES: &AstTypesBitset = &AstTypesBitset::new();
2688-
const ANY_NODE_TYPE: bool = true;
2687+
const NODE_TYPES: Option<&AstTypesBitset> = None;
26892688
}
26902689

26912690
impl RuleRunner for crate::rules::vue::valid_define_emits::ValidDefineEmits {

crates/oxc_linter/src/rules/vue/no_required_prop_with_default.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ declare_oxc_lint!(
3030
///
3131
/// ### Why is this bad?
3232
///
33-
/// If a prop is declared with a default value, whether it is required or not,
34-
/// we can always skip it in actual use. In that situation, the default value would be applied.
35-
/// So, a required prop with a default value is essentially the same as an optional prop.
33+
/// If a prop is declared with a default value, whether it is required or not,
34+
/// we can always skip it in actual use. In that situation, the default value would be applied.
35+
/// So, a required prop with a default value is essentially the same as an optional prop.
3636
///
3737
/// ### Examples
3838
///

0 commit comments

Comments
 (0)