We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
eslint/no-unused-vars
1 parent 68497e6 commit 344ef88Copy full SHA for 344ef88
crates/oxc_linter/src/rules/eslint/no_unused_vars/tests/oxc.rs
@@ -73,6 +73,7 @@ fn test_vars_simple() {
73
("console.log(function a() {} ? b : c)", None),
74
("console.log(a ? function b() {} : c)", None),
75
("console.log(a ? b : function c() {})", None),
76
+ ("cb => (cb(), 0)", None),
77
];
78
let fail = vec![
79
("let a = 1", None),
crates/oxc_linter/src/rules/eslint/no_unused_vars/usage.rs
@@ -600,6 +600,9 @@ impl<'a> Symbol<'_, 'a> {
600
}
601
602
(parent, AstKind::SequenceExpression(seq)) => {
603
+ if matches!(parent, AstKind::CallExpression(_)) {
604
+ continue;
605
+ }
606
debug_assert!(
607
!seq.expressions.is_empty(),
608
"empty SequenceExpressions should be a parse error."
0 commit comments