Skip to content

Commit

Permalink
Upgrade eslint deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Nov 5, 2024
1 parent a7cf91b commit 7b788b3
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 320 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
"@types/node": "^18.11.18",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.49.0",
"eslint": "^9.14.0",
"eslint-config-next": "^15.0.2",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^9.1.0",
"jest": "^29.7.0",
"jest-transform-yaml": "^1.1.2",
"postcss": "^8.4.47",
Expand Down
2 changes: 1 addition & 1 deletion src/context/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function getIndexForToken(token?: IToken): number | undefined {
export function tryFindToken(chain: ChainName, addressOrDenom?: string): IToken | null {
try {
return getWarpCore().findToken(chain, addressOrDenom);
} catch (error) {
} catch {
return null;
}
}
4 changes: 2 additions & 2 deletions src/utils/url.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export function isValidRelativeUrl(urlString: string | null | undefined): boolean {
try {
return !!urlString && Boolean(new URL(urlString, document.baseURI));
} catch (e) {
} catch {
return false;
}
}

export function isValidHttpsUrl(urlString: string | null | undefined): boolean {
try {
return !!urlString && Boolean(new URL(urlString)) && urlString.substring(0, 8) === 'https://';
} catch (e) {
} catch {
return false;
}
}
Loading

0 comments on commit 7b788b3

Please sign in to comment.