Skip to content

Commit

Permalink
test(linter): add a passing case to no_undef (#5580)
Browse files Browse the repository at this point in the history
closes #2093
  • Loading branch information
Boshen committed Sep 7, 2024
1 parent 1bc08e2 commit 5f27551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/rules/eslint/no_undef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ fn test() {
"class C { static { function a() {} a; } }",
"class C { static { a; function a() {} } }",
"String;Array;Boolean;",
"function resolve<T>(path: string): T { return { path } as T; }"
];

let fail = vec![
Expand Down

0 comments on commit 5f27551

Please sign in to comment.