Skip to content

Commit 871f9d9

Browse files
zzt1224camc314
andauthored
feat(linter): implement no-useless-assignment (oxc-project#15466)
Co-authored-by: Cameron Clark <cameron.clark@hey.com>
1 parent 22ce6af commit 871f9d9

6 files changed

Lines changed: 1874 additions & 2 deletions

File tree

crates/oxc_linter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ workspace = true
2525
doctest = true
2626

2727
[dependencies]
28-
oxc_allocator = { workspace = true, features = ["fixed_size"] }
28+
oxc_allocator = { workspace = true, features = ["fixed_size", "bitset"] }
2929
oxc_ast = { workspace = true }
3030
oxc_ast_macros = { workspace = true }
3131
oxc_ast_visit = { workspace = true, features = ["serialize"] }

crates/oxc_linter/src/generated/rule_runner_impls.rs

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/generated/rules_enum.rs

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/oxc_linter/src/rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ pub(crate) mod eslint {
173173
pub mod no_unused_private_class_members;
174174
pub mod no_unused_vars;
175175
pub mod no_use_before_define;
176+
pub mod no_useless_assignment;
176177
pub mod no_useless_backreference;
177178
pub mod no_useless_call;
178179
pub mod no_useless_catch;

0 commit comments

Comments
 (0)