Skip to content

Commit

Permalink
fix: biome errors
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed May 13, 2024
1 parent 83eae9d commit 497779f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/lib/components/connect/connection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export let connectedWalletName: $$Props["connectedWalletName"]
export let chainWalletsInformation: $$Props["chainWalletsInformation"]
$: connectText =
connectStatus === "connected" && address?.length
connectStatus === "connected" && address && address?.length > 0
? chain === "evm"
? truncateEvmAddress(address, -1)
: truncateUnionAddress(address, -1)
Expand Down
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@
"noConsole": "off",
"noNodejsModules": "off",
"useImportRestrictions": "off",
"noUndeclaredDependencies": "off"
"noUndeclaredDependencies": "off",
"noUselessUndefinedInitialization": "off"
},
"performance": {
"all": true,
Expand Down
4 changes: 1 addition & 3 deletions site/src/components/graphs/ValidatorPerformance.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ function seriesValue(value: any, name: string): string {
}
}
const hiddenData = new Array(128 / 4)
.fill(0)
.map((_, i) => [i * 4, "-"])
const hiddenData = new Array(128 / 4).fill(0).map((_, i) => [i * 4, "-"])
let myChart: HTMLElement | null
Expand Down
3 changes: 1 addition & 2 deletions tools/biome/biome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
in
{
_module.args.biome = biome;
# (system == "x86_64-linux")
checks.biome-lint = mkCi false (pkgs.stdenv.mkDerivation {
checks.biome-lint = mkCi (system == "x86_64-linux") (pkgs.stdenv.mkDerivation {
name = "biome-lint";
description = "Lint js,ts,jsx,tsx,d.ts,json,jsonc,astro,svelte,vue files";
src = with unstablePkgs.lib.fileset; toSource {
Expand Down

0 comments on commit 497779f

Please sign in to comment.