Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(rome_js_analyze): fix typos
  • Loading branch information
ddanielsantos committed Jul 7, 2023
commit c7db366f3f4695d7b8e3443ac341fb37a4f2d9de
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ use rome_js_syntax::{
};

declare_rule! {
/// Disallow fallthrough of case statements
/// Disallow fallthrough of case statements.
///
/// Case statements in switch statements fall through by default. This can lead to unexpected behavior when forgotten.
/// This rule disallows fallthrough of case statements.
/// This rule disallows the fallthrough of case statements.
///
/// Source: https://eslint.org/docs/latest/rules/no-fallthrough
///
Expand Down Expand Up @@ -82,7 +82,7 @@ impl Rule for NoFallthroughSwitchClause {
},
)
.note(markup! {
"Add a `break` statement to the end of this case to prevent fallthrough."
"Add a `break` or `return` statement to the end of this case to prevent fallthrough."
}),
)
}
Expand Down