Skip to content

Commit

Permalink
feat(linter): implement typescript/no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Nov 27, 2024
1 parent 0561aac commit 840d18a
Show file tree
Hide file tree
Showing 3 changed files with 623 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 @@ -180,6 +180,7 @@ mod typescript {
pub mod no_unnecessary_type_constraint;
pub mod no_unsafe_declaration_merging;
pub mod no_unsafe_function_type;
pub mod no_unused_expressions;
pub mod no_useless_empty_export;
pub mod no_var_requires;
pub mod no_wrapper_object_types;
Expand Down Expand Up @@ -854,6 +855,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::consistent_type_definitions,
typescript::consistent_type_imports,
typescript::explicit_function_return_type,
typescript::no_unused_expressions,
typescript::no_inferrable_types,
typescript::no_confusing_non_null_assertion,
typescript::no_duplicate_enum_values,
Expand Down
Loading

0 comments on commit 840d18a

Please sign in to comment.