Skip to content

Commit

Permalink
feat(task): init eslint-plugin-tree-shaking rule (oxc-project#2662)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven authored Mar 10, 2024
1 parent 588e946 commit f8e8af2
Show file tree
Hide file tree
Showing 5 changed files with 733 additions and 39 deletions.
5 changes: 5 additions & 0 deletions crates/oxc_linter/src/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ mod nextjs {
pub mod no_unwanted_polyfillio;
}

mod tree_shaking {
pub mod no_side_effects_in_initialization;
}

oxc_macros::declare_all_lint_rules! {
deepscan::bad_array_method_on_arguments,
deepscan::bad_bitwise_operator,
Expand Down Expand Up @@ -622,4 +626,5 @@ oxc_macros::declare_all_lint_rules! {
nextjs::no_document_import_in_page,
nextjs::no_unwanted_polyfillio,
nextjs::no_before_interactive_script_outside_document,
tree_shaking::no_side_effects_in_initialization,
}
Loading

0 comments on commit f8e8af2

Please sign in to comment.