Skip to content

Commit

Permalink
fix(no-unused-vars): enable for jsx files (#1277)
Browse files Browse the repository at this point in the history
This commit enables the no-unused-vars lint rule for JSX files, by wiring through `jsxFactory` and `jsxFragmentFactory`.
  • Loading branch information
lucacasonato authored May 29, 2024
1 parent df778aa commit 49aae25
Show file tree
Hide file tree
Showing 10 changed files with 459 additions and 28 deletions.
246 changes: 246 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ default = []
docs = []

[dependencies]
deno_ast = { version = "0.38.0", features = ["scopes", "transforms", "utils", "visit", "view"] }
deno_ast = { version = "0.38.0", features = ["scopes", "transforms", "utils", "visit", "view", "react"] }
log = "0.4.20"
serde = { version = "1.0.195", features = ["derive"] }
serde_json = "1.0.111"
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no_unused_vars.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Enforces all variables used at least once.
Enforces all variables are used at least once.

If there are variables that are declared but not used anywhere, it's most likely
because of incomplete refactoring. This lint rule detects and warns such unused
Expand Down
Loading

0 comments on commit 49aae25

Please sign in to comment.