Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(linter): Add promise/no-return-wrap #9537

Merged
merged 26 commits into from
Mar 11, 2025
Merged
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
@@ -526,6 +526,7 @@ mod promise {
pub mod no_new_statics;
pub mod no_promise_in_callback;
pub mod no_return_in_finally;
pub mod no_return_wrap;
pub mod param_names;
pub mod prefer_await_to_callbacks;
pub mod prefer_await_to_then;
@@ -857,6 +858,7 @@ oxc_macros::declare_all_lint_rules! {
oxc::uninvoked_array_callback,
promise::avoid_new,
promise::catch_or_return,
promise::no_return_wrap,
promise::no_nesting,
promise::no_promise_in_callback,
promise::no_callback_in_promise,
Loading