From 32fe7d0dda2b9768a5fd41c06c8409e52db6716c Mon Sep 17 00:00:00 2001 From: Serge Ilyashenko Date: Wed, 25 Sep 2024 15:53:30 +0200 Subject: [PATCH] fix(homepage): random examples lint error --- apps/homepage-legacy/tsconfig.json | 1 + apps/homepage/src/components/RandomExamples.astro | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/homepage-legacy/tsconfig.json b/apps/homepage-legacy/tsconfig.json index f5ce6d0..f59ee9a 100644 --- a/apps/homepage-legacy/tsconfig.json +++ b/apps/homepage-legacy/tsconfig.json @@ -22,5 +22,6 @@ "noFallthroughCasesInSwitch": true }, "include": ["src"], + "exclude": ["dist"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/apps/homepage/src/components/RandomExamples.astro b/apps/homepage/src/components/RandomExamples.astro index 90a074e..7df826a 100644 --- a/apps/homepage/src/components/RandomExamples.astro +++ b/apps/homepage/src/components/RandomExamples.astro @@ -8,8 +8,8 @@ import "./PieScript.astro"; Array.from({ length: Math.floor(Math.random() * 10 + 1) }, () => Math.floor(Math.random() * 101) ) - ).map(set => ( - + ).map((set, index) => ( +