From 3fc8706007d896dcbde69c0ce924a6a5eb66aba6 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Mon, 4 Dec 2023 08:52:48 -0700 Subject: refactor: implement biome (#1467) - add `biome.json` - add `biome:check` and `biome:check:fix` commands to `package.json` - add `biome:check:fix` command to run as part of `prepare-code` command - install `@biomejs/biome` dependency - add `@npmcli/move-file` v2.0.1 to `pnpm.allowedDeprecatedVersions` - fix or comment out various reported lint issues --- src/components/services/tabs/TabItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/services/tabs') diff --git a/src/components/services/tabs/TabItem.tsx b/src/components/services/tabs/TabItem.tsx index 287dedfcb..804efe8a5 100644 --- a/src/components/services/tabs/TabItem.tsx +++ b/src/components/services/tabs/TabItem.tsx @@ -80,7 +80,7 @@ let pollIndicatorTransition = 'none'; let polledTransition = 'none'; let pollAnsweredTransition = 'none'; -if (window && window.matchMedia('(prefers-reduced-motion: no-preference)')) { +if (window?.matchMedia('(prefers-reduced-motion: no-preference)')) { pollIndicatorTransition = 'background 0.5s'; polledTransition = 'background 0.1s'; pollAnsweredTransition = 'background 0.1s'; -- cgit v1.2.3-54-g00ecf