From cf282aa351cbc58691fb1b2fb4764830247cdbe8 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Mon, 25 Jul 2022 08:16:50 +0530 Subject: eslint needs to be executed at the top-level to actually work --- src/helpers/array-helpers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/helpers/array-helpers.ts') diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts index 5d28af433..33be12fa7 100644 --- a/src/helpers/array-helpers.ts +++ b/src/helpers/array-helpers.ts @@ -1,6 +1,6 @@ export default function shuffleArray(arr: any[]): any[] { return arr - .map(a => [ Math.random(), a ]) - .sort((a, b) => a[ 0 ] - b[ 0 ]) - .map(a => a[ 1 ]) -}; + .map(a => [Math.random(), a]) + .sort((a, b) => a[0] - b[0]) + .map(a => a[1]); +} -- cgit v1.2.3-54-g00ecf