Skip to content

Commit

Permalink
feat(linter): typescript/prefer-function-type
Browse files Browse the repository at this point in the history
  • Loading branch information
张润钊 committed Feb 20, 2024
1 parent 0f28dc8 commit 75221ca
Show file tree
Hide file tree
Showing 3 changed files with 909 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 @@ -115,6 +115,7 @@ mod typescript {
pub mod no_unsafe_declaration_merging;
pub mod no_var_requires;
pub mod prefer_as_const;
pub mod prefer_function_type;
pub mod triple_slash_reference;
}

Expand Down Expand Up @@ -405,6 +406,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::no_unsafe_declaration_merging,
typescript::no_var_requires,
typescript::prefer_as_const,
typescript::prefer_function_type,
typescript::triple_slash_reference,
jest::expect_expect,
jest::max_expects,
Expand Down
Loading

0 comments on commit 75221ca

Please sign in to comment.