From f4b4416ea52d564bc2dbe543a82084ed98843ccc Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 30 Jul 2021 10:54:54 +0200 Subject: 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 --- src/stores/RecipesStore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/stores/RecipesStore.js') 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 { } @computed get recipeIdForServices() { - return this.stores.services.all.map(s => s.recipe.id); + return this.stores.services.all.map((s) => s.recipe.id); } one(id) { - return this.all.find(recipe => recipe.id === id); + return this.all.find((recipe) => recipe.id === id); } isInstalled(id) { @@ -78,7 +78,7 @@ export default class RecipesStore extends Store { const recipes = {}; // Hackfix, reference this.all to fetch services - debug(`Check Recipe updates for ${this.all.map(recipe => recipe.id)}`); + debug(`Check Recipe updates for ${this.all.map((recipe) => recipe.id)}`); recipeIds.forEach((r) => { const recipe = this.one(r); @@ -98,7 +98,7 @@ export default class RecipesStore extends Store { const version = recipes[recipe]; // Find recipe in local recipe repository - const localRecipe = allJson.find(r => r.id === recipe); + const localRecipe = allJson.find((r) => r.id === recipe); if (localRecipe && semver.lt(version, localRecipe.version)) { localUpdates.push(recipe); -- cgit v1.2.3-54-g00ecf