From 657b2aabd94a9ec00558bee42ad3af17a7781794 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 4 Jan 2025 20:39:57 +0000 Subject: [PATCH] refactor: prefix unused params with underscores --- lib/formatDate.js | 6 +++--- test/index.test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/formatDate.js b/lib/formatDate.js index 588c237..49cf267 100644 --- a/lib/formatDate.js +++ b/lib/formatDate.js @@ -1,9 +1,9 @@ 'use strict' -const TWO_PADDED_NUMBERS = new Array(60).fill(0).map((v, i) => i.toString().padStart(2, '0')) -const THREE_PADDED_NUMBERS = new Array(1000).fill(0).map((v, i) => i.toString().padStart(3, '0')) +const TWO_PADDED_NUMBERS = new Array(60).fill(0).map((_v, i) => i.toString().padStart(2, '0')) +const THREE_PADDED_NUMBERS = new Array(1000).fill(0).map((_v, i) => i.toString().padStart(3, '0')) -const MONTH_LOOKUP = new Array(12).fill(0).map((v, i) => (i + 1).toString().padStart(2, '0')) +const MONTH_LOOKUP = new Array(12).fill(0).map((_v, i) => (i + 1).toString().padStart(2, '0')) const TZ_OFFSET_LOOKUP = {} for (let i = -900; i < 900; i += 15) { diff --git a/test/index.test.js b/test/index.test.js index c985072..c843035 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -20,7 +20,7 @@ after(() => { unmockTime() }) -test('able to instantiate target without arguments', (t) => { +test('able to instantiate target without arguments', () => { target() })