diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-07-30 10:54:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 14:24:54 +0530 |
commit | f4b4416ea52d564bc2dbe543a82084ed98843ccc (patch) | |
tree | 7ca6b23571c86458a6b799746c91a7191de02715 /src/stores/RecipesStore.js | |
parent | 5.6.1-nightly.8 [skip ci] (diff) | |
download | ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip |
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts
- update devDependencies
- lint properly both root /src and nested /packages
- update webhint recommended setting for tsconfig.json to shrink output
- Manage all eslint rules from the repo root
- escape single quotes in scripts to please windows build
Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'src/stores/RecipesStore.js')
-rw-r--r-- | src/stores/RecipesStore.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index b49fb72d9..c7c4c1deb 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -54,11 +54,11 @@ export default class RecipesStore extends Store { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | @computed get recipeIdForServices() { | 56 | @computed get recipeIdForServices() { |
57 | return this.stores.services.all.map(s => s.recipe.id); | 57 | return this.stores.services.all.map((s) => s.recipe.id); |
58 | } | 58 | } |
59 | 59 | ||
60 | one(id) { | 60 | one(id) { |
61 | return this.all.find(recipe => recipe.id === id); | 61 | return this.all.find((recipe) => recipe.id === id); |
62 | } | 62 | } |
63 | 63 | ||
64 | isInstalled(id) { | 64 | isInstalled(id) { |
@@ -78,7 +78,7 @@ export default class RecipesStore extends Store { | |||
78 | const recipes = {}; | 78 | const recipes = {}; |
79 | 79 | ||
80 | // Hackfix, reference this.all to fetch services | 80 | // Hackfix, reference this.all to fetch services |
81 | debug(`Check Recipe updates for ${this.all.map(recipe => recipe.id)}`); | 81 | debug(`Check Recipe updates for ${this.all.map((recipe) => recipe.id)}`); |
82 | 82 | ||
83 | recipeIds.forEach((r) => { | 83 | recipeIds.forEach((r) => { |
84 | const recipe = this.one(r); | 84 | const recipe = this.one(r); |
@@ -98,7 +98,7 @@ export default class RecipesStore extends Store { | |||
98 | const version = recipes[recipe]; | 98 | const version = recipes[recipe]; |
99 | 99 | ||
100 | // Find recipe in local recipe repository | 100 | // Find recipe in local recipe repository |
101 | const localRecipe = allJson.find(r => r.id === recipe); | 101 | const localRecipe = allJson.find((r) => r.id === recipe); |
102 | 102 | ||
103 | if (localRecipe && semver.lt(version, localRecipe.version)) { | 103 | if (localRecipe && semver.lt(version, localRecipe.version)) { |
104 | localUpdates.push(recipe); | 104 | localUpdates.push(recipe); |