feat(linter)!: make no-unused-vars correctness (#5081)

closes #5080
This commit is contained in:
DonIsaac 2024-08-23 13:12:59 +00:00
parent 47e69a8c94
commit b894d3b33e
2 changed files with 4 additions and 4 deletions

View file

@ -427,7 +427,7 @@ mod test {
];
let result = test(args);
assert_eq!(result.number_of_files, 1);
assert_eq!(result.number_of_warnings, 2);
assert_eq!(result.number_of_warnings, 3);
assert_eq!(result.number_of_errors, 0);
}
@ -441,7 +441,7 @@ mod test {
];
let result = test(args);
assert_eq!(result.number_of_files, 1);
assert_eq!(result.number_of_warnings, 1);
assert_eq!(result.number_of_warnings, 2);
assert_eq!(result.number_of_errors, 0);
}
@ -477,7 +477,7 @@ mod test {
let args = &["fixtures/svelte/debugger.svelte"];
let result = test(args);
assert_eq!(result.number_of_files, 1);
assert_eq!(result.number_of_warnings, 1);
assert_eq!(result.number_of_warnings, 2);
assert_eq!(result.number_of_errors, 0);
}

View file

@ -185,7 +185,7 @@ declare_oxc_lint!(
/// var global_var = 42;
/// ```
NoUnusedVars,
nursery,
correctness,
dangerous_suggestion
);