diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-04-15 07:16:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-15 07:16:37 -0600 |
commit | cbba61b40112b41c43285a1a279969e68df1a2e9 (patch) | |
tree | 6f2e95326033396c5f7b79b48e5a3febb0877ff3 /src/api | |
parent | 6.7.3-nightly.10 [skip ci] (diff) | |
download | ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.tar.gz ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.tar.zst ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.zip |
refactor: project maintenance (#1682)
- remove redundant `@adonisjs/auth`, `@adonisjs/session` and `@emotion/react` dependencies
- remove `.vscode` folder
- clean up some TS and ESLint issues
- migrate from deprecated "husky install" to "husky"
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/ServerApi.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/server/ServerApi.ts b/src/api/server/ServerApi.ts index 69994114e..ab6866b13 100644 --- a/src/api/server/ServerApi.ts +++ b/src/api/server/ServerApi.ts | |||
@@ -379,8 +379,7 @@ export default class ServerApi { | |||
379 | .filter(recipe => recipe.id); | 379 | .filter(recipe => recipe.id); |
380 | 380 | ||
381 | // @ts-expect-error Type 'boolean' is not assignable to type 'ConcatArray<IRecipe>'. | 381 | // @ts-expect-error Type 'boolean' is not assignable to type 'ConcatArray<IRecipe>'. |
382 | // eslint-disable-next-line unicorn/prefer-spread | 382 | this.recipes = [...this.recipes, ...this._getDevRecipes()]; |
383 | this.recipes = this.recipes.concat(this._getDevRecipes()); | ||
384 | 383 | ||
385 | debug('StubServerApi::getInstalledRecipes resolves', this.recipes); | 384 | debug('StubServerApi::getInstalledRecipes resolves', this.recipes); |
386 | return this.recipes; | 385 | return this.recipes; |
@@ -582,7 +581,7 @@ export default class ServerApi { | |||
582 | file !== 'temp', | 581 | file !== 'temp', |
583 | ); | 582 | ); |
584 | 583 | ||
585 | const recipes = paths | 584 | const recipes: IRecipe[] = paths |
586 | .map(id => { | 585 | .map(id => { |
587 | try { | 586 | try { |
588 | // eslint-disable-next-line import/no-dynamic-require | 587 | // eslint-disable-next-line import/no-dynamic-require |