Skip to content

Commit

Permalink
feat(task): init eslint-plugin-tree-shaking rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven committed Mar 10, 2024
1 parent a218242 commit 9047964
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
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,
}

0 comments on commit 9047964

Please sign in to comment.