diff --git a/biome.json b/biome.json index 02caffa..c8ebc01 100644 --- a/biome.json +++ b/biome.json @@ -12,6 +12,10 @@ "complexity": { "noUselessSwitchCase": "off" }, + "correctness": { + "noUnusedImports": "warn", + "noUnusedVariables": "warn" + }, "suspicious": { "noConsoleLog": "warn" } diff --git a/packages/react-timerange-picker/src/TimeRangePicker.spec.tsx b/packages/react-timerange-picker/src/TimeRangePicker.spec.tsx index 075156d..f0c3a9c 100644 --- a/packages/react-timerange-picker/src/TimeRangePicker.spec.tsx +++ b/packages/react-timerange-picker/src/TimeRangePicker.spec.tsx @@ -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); } }