aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/communityRecipes/store.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-04-18 08:18:36 -0600
committerLibravatar GitHub <noreply@github.com>2024-04-18 08:18:36 -0600
commitc49723056acec489765acb54bae3889ac07f25af (patch)
tree58bea705d61a728b060e615ce514b8d4a7936c9e /src/features/communityRecipes/store.ts
parentfeat: hide all services workspace (#1713) (diff)
downloadferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.gz
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.tar.zst
ferdium-app-c49723056acec489765acb54bae3889ac07f25af.zip
refactor: bring down eslint warnings to zero (#1714)
- install `@eslint-react/eslint-plugin` dependency - configure `@eslint-react/eslint-plugin` in eslint config - modernize `lint` command in `package.json` - disable or fix various reported lint issues - fix `div` being nested in `p` for settings - replace deprecated `event.keyCode` with `event.key` - update isEscKeyPress method and unit tests which used deprecated `event.keyCode` - allow `eslint` v8 as peer dependency for `@eslint-react/eslint-plugin`
Diffstat (limited to 'src/features/communityRecipes/store.ts')
-rw-r--r--src/features/communityRecipes/store.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/communityRecipes/store.ts b/src/features/communityRecipes/store.ts
index 1c21908e2..548867528 100644
--- a/src/features/communityRecipes/store.ts
+++ b/src/features/communityRecipes/store.ts
@@ -27,6 +27,7 @@ export class CommunityRecipesStore extends FeatureStore {
27 return this.stores.recipePreviews.dev.map( 27 return this.stores.recipePreviews.dev.map(
28 (recipePreview: { isDevRecipe: boolean; author: any[] }) => { 28 (recipePreview: { isDevRecipe: boolean; author: any[] }) => {
29 // TODO: Need to figure out if this is even necessary/used 29 // TODO: Need to figure out if this is even necessary/used
30 // eslint-disable-next-line no-param-reassign
30 recipePreview.isDevRecipe = !!recipePreview.author.some( 31 recipePreview.isDevRecipe = !!recipePreview.author.some(
31 (author: { email: string }) => 32 (author: { email: string }) =>
32 author.email === this.stores.user.data.email, 33 author.email === this.stores.user.data.email,