Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesmac committed Dec 18, 2024
1 parent a969b90 commit 58b7c1e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"wagmi",
"webp",
"xylabs",
"Xyos",
"yarnpkg"
]
}
2 changes: 1 addition & 1 deletion packages/button/src/components/ButtonExTo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const ButtonToEx = forwardRef<HTMLButtonElement, ButtonExProps>(({
const localOnClick = (event: MouseEvent<HTMLButtonElement>) => {
onClick?.(event)
if (to) {
navigate(to, toOptions)
void navigate(to, toOptions)
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/components/RedirectWithQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const RedirectWithQuery: React.ComponentType<RedirectWithQueryProps> = ({
globalThis.location.href = href
} else {
if (newPath !== pathname) {
navigate(newPath, { replace: true, ...toOptions })
void navigate(newPath, { replace: true, ...toOptions })
}
}
})
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/src/hooks/useNavigateToEthAddress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const useNavigateToEthAddress = () => {
if (event.metaKey || toEtherScan) {
window.open(path, '_blank')
} else {
navigate(to ?? path, toOptions)
void navigate(to ?? path, toOptions)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ const Template: StoryFn<WalletDiscoveryPaperProps> = (args: WalletDiscoveryPaper
setEvent(event.detail)
}

// eslint-disable-next-line @eslint-react/web-api/no-leaked-event-listener
globalThis.addEventListener(AccountsChangedEventName, accountChangedListener)
// eslint-disable-next-line @eslint-react/web-api/no-leaked-event-listener
globalThis.addEventListener(ChainChangedEventName, chainChangedListener)

return () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useUniversalRedirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const useCheckUniversalRedirect = (name: string = DEFAULT_NAME) => {
const pendingTo = localStorage.getItem(name)
if (pendingTo !== null) {
localStorage.removeItem(name)
navigate(pendingTo)
void navigate(pendingTo)
}
}, [navigate])
}
2 changes: 1 addition & 1 deletion packages/link/src/LinkToEx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LinkToEx = forwardRef<HTMLAnchorElement, LinkExProps>(({
console.error('onClick threw', elementName, funnel, placement, ex)
}
if (to && toOptions) {
navigate(to, toOptions)
void navigate(to, toOptions)
}
}
userEvents.userClick({
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/product-theme/xyos/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { shapeFragment, spacingFragment } from '../../theme-fragments/index.ts'
import { darkThemeOptions } from './darkThemeOptions.tsx'
import { lightThemeOptions } from './lightThemeOptions.tsx'

export const XyosTheme = (theme: Theme): Theme => createTheme({
export const XyosTheme = (): Theme => createTheme({
colorSchemes: {
dark: darkThemeOptions,
light: lightThemeOptions,
Expand Down

0 comments on commit 58b7c1e

Please sign in to comment.