Skip to content

Commit

Permalink
chore: fix format and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jun 4, 2024
1 parent 9700472 commit 48e4dd8
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/src/lib/components/search-bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ onMount(() => {
}
})
const onInputClick = (event: MouseEvent) => (commandDialogOpen = windowSize.width < 720)
const onInputClick = (_event: MouseEvent) => (commandDialogOpen = windowSize.width < 720)
const onInputChange = (event: InputEvent) =>
debounce((event: InputEvent) => {
debounce((_event: InputEvent) => {
console.log("Searching...", searchInput)
}, 1_000)(event)
</script>
Expand Down
2 changes: 1 addition & 1 deletion app/src/lib/wallet/evm/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const provider = readable<() => Promise<undefined | unknown>>(
?.getProvider(),
set => {
watchConnectors(config, {
onChange: (connections, previousConnectors) => {
onChange: (connections, _previousConnectors) => {
const connector = connections.find(connector => connector.isAuthorized())
if (connector) set(() => connector.getProvider({ chainId: getChainId(config) }))
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/explorer/(components)/menu.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { page } from "$app/stores"
import { cn } from "$lib/utilities/shadcn.ts"
import type { LayoutData } from "../$types"
import type { LayoutData } from "../$types.ts"
import { Button } from "$lib/components/ui/button/index.ts"
import * as Tooltip from "$lib/components/ui/tooltip/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/explorer/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from "@sveltejs/kit"
import type { LayoutLoad } from "./$types"
import type { LayoutLoad } from "./$types.ts"
import type { SvelteComponent } from "svelte"

import TvIcon from "virtual:icons/lucide/tv"
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/transfer/(components)/chain-button.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { Button } from "$lib/components/ui/button/index.ts"
import Chevron from "./chevron.svelte"
import type { PageData } from "../$types"
import type { PageData } from "../$types.ts"
export let selectedChain: PageData["chains"][number] | undefined
export let dialogOpen: boolean
Expand Down
2 changes: 1 addition & 1 deletion app/src/routes/transfer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function swapChainsClick(_event: MouseEvent) {
let recipientInputState: "locked" | "unlocked" | "invalid" = "locked"
const onUnlockClick = (event: MouseEvent) =>
const onUnlockClick = (_event: MouseEvent) =>
(recipientInputState = recipientInputState === "locked" ? "unlocked" : "locked")
$: {
Expand Down
2 changes: 2 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@
"nursery": {
"all": true,
"noConsole": "off",
"useTopLevelRegex": "off",
"useImportRestrictions": "off",
"noUndeclaredDependencies": "off",
"noUnusedFunctionParameters": "off",
"noUselessUndefinedInitialization": "off"
},
"performance": {
Expand Down
2 changes: 1 addition & 1 deletion site/src/components/graphs/ValidatorPerformance.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ onMount(() => {
color: "#0e0f12"
}
},
max(value: any) {
max(_value: any) {
return 6_000_000
},
interval: 1_200_000
Expand Down
2 changes: 1 addition & 1 deletion typescript-sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ export type EvmAddress = `0x${string}`
export type UnionAddress = `union${string}`

export type Optional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>
export type ExtractParameters<T> = T extends new (...args: infer P) => any ? P[0] : never
export type ExtractParameters<T> = T extends new (..._args: infer P) => any ? P[0] : never

export type Coin = { denom: string; amount: string }

0 comments on commit 48e4dd8

Please sign in to comment.