Skip to content

Commit b894d3b

Browse files
committedAug 23, 2024·
feat(linter)!: make no-unused-vars correctness (#5081)
closes #5080
1 parent 47e69a8 commit b894d3b

File tree

2 files changed

+4
-4
lines changed
  • apps/oxlint/src/lint
  • crates/oxc_linter/src/rules/eslint/no_unused_vars

2 files changed

+4
-4
lines changed
 

‎apps/oxlint/src/lint/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ mod test {
427427
];
428428
let result = test(args);
429429
assert_eq!(result.number_of_files, 1);
430-
assert_eq!(result.number_of_warnings, 2);
430+
assert_eq!(result.number_of_warnings, 3);
431431
assert_eq!(result.number_of_errors, 0);
432432
}
433433

@@ -441,7 +441,7 @@ mod test {
441441
];
442442
let result = test(args);
443443
assert_eq!(result.number_of_files, 1);
444-
assert_eq!(result.number_of_warnings, 1);
444+
assert_eq!(result.number_of_warnings, 2);
445445
assert_eq!(result.number_of_errors, 0);
446446
}
447447

@@ -477,7 +477,7 @@ mod test {
477477
let args = &["fixtures/svelte/debugger.svelte"];
478478
let result = test(args);
479479
assert_eq!(result.number_of_files, 1);
480-
assert_eq!(result.number_of_warnings, 1);
480+
assert_eq!(result.number_of_warnings, 2);
481481
assert_eq!(result.number_of_errors, 0);
482482
}
483483

‎crates/oxc_linter/src/rules/eslint/no_unused_vars/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ declare_oxc_lint!(
185185
/// var global_var = 42;
186186
/// ```
187187
NoUnusedVars,
188-
nursery,
188+
correctness,
189189
dangerous_suggestion
190190
);
191191

0 commit comments

Comments
 (0)
Please sign in to comment.