Skip to content

Commit b6f8b36

Browse files
committed
feat(linter/always-return): implement promise rule always-return
1 parent cc2a85b commit b6f8b36

File tree

3 files changed

+836
-0
lines changed

3 files changed

+836
-0
lines changed

crates/oxc_linter/src/rules.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ mod jsdoc {
588588
}
589589

590590
mod promise {
591+
pub mod always_return;
591592
pub mod avoid_new;
592593
pub mod catch_or_return;
593594
pub mod no_callback_in_promise;
@@ -939,6 +940,7 @@ oxc_macros::declare_all_lint_rules! {
939940
oxc::number_arg_out_of_range,
940941
oxc::only_used_in_recursion,
941942
oxc::uninvoked_array_callback,
943+
promise::always_return,
942944
promise::avoid_new,
943945
promise::catch_or_return,
944946
promise::no_return_wrap,

0 commit comments

Comments
 (0)