Skip to content

Commit

Permalink
feat(linter): add typescript/no-explicit-any (#881)
Browse files Browse the repository at this point in the history
Implements `no-explicit-any` from `typescript-eslint`. Replaces #519
since it appears abandoned.
  • Loading branch information
DonIsaac committed Sep 10, 2023
1 parent 5eb6196 commit 35e1898
Show file tree
Hide file tree
Showing 3 changed files with 949 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 @@ -85,6 +85,7 @@ mod typescript {
pub mod consistent_type_exports;
pub mod no_duplicate_enum_values;
pub mod no_empty_interface;
pub mod no_explicit_any;
pub mod no_extra_non_null_assertion;
pub mod no_misused_new;
pub mod no_namespace;
Expand Down Expand Up @@ -182,6 +183,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::consistent_type_exports,
typescript::no_duplicate_enum_values,
typescript::no_empty_interface,
typescript::no_explicit_any,
typescript::no_extra_non_null_assertion,
typescript::no_non_null_asserted_optional_chain,
typescript::no_unnecessary_type_constraint,
Expand Down
Loading

0 comments on commit 35e1898

Please sign in to comment.