⬆️(deps) migrate to typescript-eslint 8
A major version of typescript-eslint has been released. This version contains some breaking change and rules change so we have to tweak our eslint configuration. https://main--typescript-eslint.netlify.app/blog/announcing-typescript-eslint-v8
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
a3eadc50db
commit
b0b7061b7a
@@ -25,7 +25,8 @@ export const isValidTimeZone = (timezone: string) => {
|
||||
Intl.DateTimeFormat(undefined, { timeZone: timezone });
|
||||
|
||||
return true;
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
} catch (_error) {
|
||||
// If an error occurs, it could be due to an invalid time zone or lack of Intl support
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user