From 1a4119f2f6cf13e30db0baa00bbb29355e1dae93 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sun, 3 Dec 2023 19:32:14 -0700 Subject: chore: project maintenance (#1466) - temporarily disable newly introduced `jsx-a11y/control-has-associated-label` rule - add `--quiet` flag to lint command to see issues with error level only - reuse `lint` command for `lint:fix` command - use `--cache` flag for `prettier` and `eslint` commands - upgrade all non-major dependencies to latest except for `esbuild` - run `pnpm dedupe` to simplify lockfile - autofix various `.ts` and `.tsx` files with `pnpm prepare-code` command - disable newly discovered lint issue in `SearchInput` --- .../downloadManager/DownloadManagerDashboard.tsx | 16 ++++++++-------- src/components/ui/SearchInput.tsx | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/downloadManager/DownloadManagerDashboard.tsx b/src/components/downloadManager/DownloadManagerDashboard.tsx index 86facc476..25e73d48f 100644 --- a/src/components/downloadManager/DownloadManagerDashboard.tsx +++ b/src/components/downloadManager/DownloadManagerDashboard.tsx @@ -138,10 +138,10 @@ class DownloadManagerDashboard extends Component { ? null : 'Paused' : state === 'cancelled' - ? 'Cancelled' - : state === 'completed' - ? null - : 'Error'; + ? 'Cancelled' + : state === 'completed' + ? null + : 'Error'; return ( { stateParse !== null && stateParse !== 'Paused' ? 'line-through' : state === 'completed' - ? 'underline' - : null, + ? 'underline' + : null, }} > {filename} @@ -195,8 +195,8 @@ class DownloadManagerDashboard extends Component { {stateParse !== null && stateParse !== 'Paused' ? stateParse : stateParse === 'Paused' - ? stateParse - : null} + ? stateParse + : null} {url} diff --git a/src/components/ui/SearchInput.tsx b/src/components/ui/SearchInput.tsx index 39b8f95bf..b2caaa1de 100644 --- a/src/components/ui/SearchInput.tsx +++ b/src/components/ui/SearchInput.tsx @@ -82,6 +82,7 @@ class SearchInput extends Component { return (
+ {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}