chore: Add eslint rule for no-shadow (#6658)

* chore: Add eslint rule for no-shadow

* fix
This commit is contained in:
Tom Moor
2024-03-09 14:04:27 -07:00
committed by GitHub
parent fc37070ac8
commit fe4c2fb7d6
18 changed files with 52 additions and 48 deletions

View File

@@ -121,8 +121,8 @@ export function unicodeCLDRtoISO639(locale: string) {
*
* @returns The current date
*/
export function getCurrentDateAsString(locales?: Intl.LocalesArgument) {
return new Date().toLocaleDateString(locales, {
export function getCurrentDateAsString(locale?: Intl.LocalesArgument) {
return new Date().toLocaleDateString(locale, {
year: "numeric",
month: "long",
day: "numeric",
@@ -134,8 +134,8 @@ export function getCurrentDateAsString(locales?: Intl.LocalesArgument) {
*
* @returns The current time
*/
export function getCurrentTimeAsString(locales?: Intl.LocalesArgument) {
return new Date().toLocaleTimeString(locales, {
export function getCurrentTimeAsString(locale?: Intl.LocalesArgument) {
return new Date().toLocaleTimeString(locale, {
hour: "numeric",
minute: "numeric",
});
@@ -147,8 +147,8 @@ export function getCurrentTimeAsString(locales?: Intl.LocalesArgument) {
*
* @returns The current date and time
*/
export function getCurrentDateTimeAsString(locales?: Intl.LocalesArgument) {
return new Date().toLocaleString(locales, {
export function getCurrentDateTimeAsString(locale?: Intl.LocalesArgument) {
return new Date().toLocaleString(locale, {
year: "numeric",
month: "long",
day: "numeric",