Skip to content

Commit

Permalink
feat(linter): typescript/no-inferrable-types (#7438)
Browse files Browse the repository at this point in the history
  • Loading branch information
camc314 committed Nov 26, 2024
1 parent ac0d25c commit 2ac9f96
Show file tree
Hide file tree
Showing 4 changed files with 872 additions and 0 deletions.
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ xdescribe = "xdescribe"
seeked = "seeked"
labeledby = "labeledby"
hashi = "hashi"
inferrable = "inferrable"

[default.extend-identifiers]
IIFEs = "IIFEs"
Expand Down
2 changes: 2 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ mod typescript {
pub mod no_extra_non_null_assertion;
pub mod no_extraneous_class;
pub mod no_import_type_side_effects;
pub mod no_inferrable_types;
pub mod no_misused_new;
pub mod no_namespace;
pub mod no_non_null_asserted_nullish_coalescing;
Expand Down Expand Up @@ -851,6 +852,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::consistent_type_definitions,
typescript::consistent_type_imports,
typescript::explicit_function_return_type,
typescript::no_inferrable_types,
typescript::no_confusing_non_null_assertion,
typescript::no_duplicate_enum_values,
typescript::no_dynamic_delete,
Expand Down
Loading

0 comments on commit 2ac9f96

Please sign in to comment.