Skip to content

Commit

Permalink
feat(linter) eslint plugin unicorn: no useless promise resolve reject (
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Nov 13, 2023
1 parent 3db074b commit 0fcd0fe
Show file tree
Hide file tree
Showing 3 changed files with 910 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ mod unicorn {
pub mod no_typeof_undefined;
pub mod no_unnecessary_await;
pub mod no_useless_fallback_in_spread;
pub mod no_useless_promise_resolve_reject;
pub mod prefer_add_event_listener;
pub mod prefer_array_flat_map;
pub mod prefer_blob_reading_methods;
Expand Down Expand Up @@ -316,6 +317,7 @@ oxc_macros::declare_all_lint_rules! {
unicorn::no_typeof_undefined,
unicorn::no_unnecessary_await,
unicorn::no_useless_fallback_in_spread,
unicorn::no_useless_promise_resolve_reject,
unicorn::prefer_add_event_listener,
unicorn::prefer_array_flat_map,
unicorn::prefer_blob_reading_methods,
Expand Down
Loading

0 comments on commit 0fcd0fe

Please sign in to comment.