Skip to content

Commit 0815fe8

Browse files
feat(linter): Add promise/no-return-wrap (#9537)
Relates to #4655 . Rule details: https://github.com/eslint-community/eslint-plugin-promise/blob/main/docs/rules/no-return-wrap.md --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent eae1a41 commit 0815fe8

File tree

3 files changed

+763
-0
lines changed

3 files changed

+763
-0
lines changed

crates/oxc_linter/src/rules.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ mod promise {
529529
pub mod no_new_statics;
530530
pub mod no_promise_in_callback;
531531
pub mod no_return_in_finally;
532+
pub mod no_return_wrap;
532533
pub mod param_names;
533534
pub mod prefer_await_to_callbacks;
534535
pub mod prefer_await_to_then;
@@ -863,6 +864,7 @@ oxc_macros::declare_all_lint_rules! {
863864
oxc::uninvoked_array_callback,
864865
promise::avoid_new,
865866
promise::catch_or_return,
867+
promise::no_return_wrap,
866868
promise::no_nesting,
867869
promise::no_promise_in_callback,
868870
promise::no_callback_in_promise,

0 commit comments

Comments
 (0)