aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-03 19:32:14 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-03 19:32:14 -0700
commit1a4119f2f6cf13e30db0baa00bbb29355e1dae93 (patch)
tree5318a894513bb93e1d1897dfc84a52f62779d88f /src
parent6.6.1-nightly.16 [skip ci] (diff)
downloadferdium-app-1a4119f2f6cf13e30db0baa00bbb29355e1dae93.tar.gz
ferdium-app-1a4119f2f6cf13e30db0baa00bbb29355e1dae93.tar.zst
ferdium-app-1a4119f2f6cf13e30db0baa00bbb29355e1dae93.zip
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`
Diffstat (limited to 'src')
-rw-r--r--src/api/server/ServerApi.ts1
-rw-r--r--src/components/downloadManager/DownloadManagerDashboard.tsx16
-rw-r--r--src/components/ui/SearchInput.tsx1
-rw-r--r--src/features/workspaces/components/WorkspaceItem.tsx1
-rw-r--r--src/stores/AppStore.ts4
5 files changed, 11 insertions, 12 deletions
diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts
index c6cbbd2e2..6e4485cfb 100644
--- a/src/api/server/ServerApi.ts
+++ b/src/api/server/ServerApi.ts
@@ -542,7 +542,6 @@ export default class ServerApi {
542 return Promise.all( 542 return Promise.all(
543 services.map(async (service: any) => this._prepareServiceModel(service)), 543 services.map(async (service: any) => this._prepareServiceModel(service)),
544 ); 544 );
545 /* eslint-enable no-return-await */
546 } 545 }
547 546
548 async _prepareServiceModel(service: { recipeId: string }) { 547 async _prepareServiceModel(service: { recipeId: string }) {
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<IProps, IState> {
138 ? null 138 ? null
139 : 'Paused' 139 : 'Paused'
140 : state === 'cancelled' 140 : state === 'cancelled'
141 ? 'Cancelled' 141 ? 'Cancelled'
142 : state === 'completed' 142 : state === 'completed'
143 ? null 143 ? null
144 : 'Error'; 144 : 'Error';
145 145
146 return ( 146 return (
147 <Card 147 <Card
@@ -181,8 +181,8 @@ class DownloadManagerDashboard extends Component<IProps, IState> {
181 stateParse !== null && stateParse !== 'Paused' 181 stateParse !== null && stateParse !== 'Paused'
182 ? 'line-through' 182 ? 'line-through'
183 : state === 'completed' 183 : state === 'completed'
184 ? 'underline' 184 ? 'underline'
185 : null, 185 : null,
186 }} 186 }}
187 > 187 >
188 {filename} 188 {filename}
@@ -195,8 +195,8 @@ class DownloadManagerDashboard extends Component<IProps, IState> {
195 {stateParse !== null && stateParse !== 'Paused' 195 {stateParse !== null && stateParse !== 'Paused'
196 ? stateParse 196 ? stateParse
197 : stateParse === 'Paused' 197 : stateParse === 'Paused'
198 ? stateParse 198 ? stateParse
199 : null} 199 : null}
200 </Typography> 200 </Typography>
201 </Box> 201 </Box>
202 <Typography variant="body2">{url}</Typography> 202 <Typography variant="body2">{url}</Typography>
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<IProps, IState> {
82 82
83 return ( 83 return (
84 <div className={classnames([className, 'search-input'])}> 84 <div className={classnames([className, 'search-input'])}>
85 {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
85 <label htmlFor={name}> 86 <label htmlFor={name}>
86 <Icon icon={mdiMagnify} /> 87 <Icon icon={mdiMagnify} />
87 <input 88 <input
diff --git a/src/features/workspaces/components/WorkspaceItem.tsx b/src/features/workspaces/components/WorkspaceItem.tsx
index 6c4dd649b..36c6ed2f5 100644
--- a/src/features/workspaces/components/WorkspaceItem.tsx
+++ b/src/features/workspaces/components/WorkspaceItem.tsx
@@ -1,4 +1,3 @@
1/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
2import { Component, ReactElement } from 'react'; 1import { Component, ReactElement } from 'react';
3import { observer } from 'mobx-react'; 2import { observer } from 'mobx-react';
4import withStyles, { WithStylesProps } from 'react-jss'; 3import withStyles, { WithStylesProps } from 'react-jss';
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index ab98ca89c..9af0a9a4f 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -49,8 +49,8 @@ const mainWindow = getCurrentWindow();
49const executablePath = isMac 49const executablePath = isMac
50 ? remoteProcess.execPath 50 ? remoteProcess.execPath
51 : isWinPortable 51 : isWinPortable
52 ? process.env.PORTABLE_EXECUTABLE_FILE 52 ? process.env.PORTABLE_EXECUTABLE_FILE
53 : process.execPath; 53 : process.execPath;
54const autoLauncher = new AutoLaunch({ 54const autoLauncher = new AutoLaunch({
55 name: 'Ferdium', 55 name: 'Ferdium',
56 path: executablePath, 56 path: executablePath,