Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions crates/oxc_linter/src/generated/rule_runner_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2727,6 +2727,29 @@ impl RuleRunner for crate::rules::typescript::no_require_imports::NoRequireImpor
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::typescript::no_restricted_types::NoRestrictedTypes {
const NODE_TYPES: Option<&AstTypesBitset> = Some(&AstTypesBitset::from_types(&[
AstType::TSAnyKeyword,
AstType::TSBigIntKeyword,
AstType::TSBooleanKeyword,
AstType::TSClassImplements,
AstType::TSInterfaceHeritage,
AstType::TSNeverKeyword,
AstType::TSNullKeyword,
AstType::TSNumberKeyword,
AstType::TSObjectKeyword,
AstType::TSStringKeyword,
AstType::TSSymbolKeyword,
AstType::TSTupleType,
AstType::TSTypeLiteral,
AstType::TSTypeReference,
AstType::TSUndefinedKeyword,
AstType::TSUnknownKeyword,
AstType::TSVoidKeyword,
]));
const RUN_FUNCTIONS: RuleRunFunctionsImplemented = RuleRunFunctionsImplemented::Run;
}

impl RuleRunner for crate::rules::typescript::no_this_alias::NoThisAlias {
const NODE_TYPES: Option<&AstTypesBitset> = Some(&AstTypesBitset::from_types(&[
AstType::AssignmentExpression,
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 @@ -240,6 +240,7 @@ pub(crate) mod typescript {
pub mod no_non_null_assertion;
pub mod no_redundant_type_constituents;
pub mod no_require_imports;
pub mod no_restricted_types;
pub mod no_this_alias;
pub mod no_unnecessary_boolean_literal_compare;
pub mod no_unnecessary_parameter_property_assignment;
Expand Down Expand Up @@ -1106,6 +1107,7 @@ oxc_macros::declare_all_lint_rules! {
typescript::no_non_null_assertion,
typescript::no_redundant_type_constituents,
typescript::no_require_imports,
typescript::no_restricted_types,
typescript::no_this_alias,
typescript::no_unnecessary_boolean_literal_compare,
typescript::no_unnecessary_parameter_property_assignment,
Expand Down
Loading
Loading