Skip to content

Commit

Permalink
Enable noUnusedImports and noUnusedVariables in Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 14, 2024
1 parent 77277ef commit 07d2a51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"complexity": {
"noUselessSwitchCase": "off"
},
"correctness": {
"noUnusedImports": "warn",
"noUnusedVariables": "warn"
},
"suspicious": {
"noConsoleLog": "warn"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async function waitForElementToBeRemovedOrHidden(callback: () => HTMLElement | n
await waitFor(() =>
expect(element).toHaveAttribute('class', expect.stringContaining('--closed')),
);
} catch (error) {
} catch {
await waitForElementToBeRemoved(element);
}
}
Expand Down

0 comments on commit 07d2a51

Please sign in to comment.