diff --git a/biome.jsonc b/biome.jsonc index f72e0087d..cfc1f300e 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.1.3/schema.json", + "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json", "vcs": { "enabled": true, "clientKind": "git", @@ -41,42 +41,45 @@ "useSingleVarDeclarator": "error", "noUnusedTemplateLiteral": "error", "useNumberNamespace": "error", - "noInferrableTypes": "error" + "noInferrableTypes": "error", + "useGroupedAccessorPairs": "error", + "useNumericSeparators": "error", + "useSymbolDescription": "error" }, "suspicious": { - "noConsole": "warn" + "recommended": true, + "noConsole": "warn", + "noConstantBinaryExpressions": "error", + "noUnassignedVariables": "error", + "noUnknownAtRules": "off" }, "correctness": { "noUnusedVariables": "warn", "noUnusedImports": "error", - "useImportExtensions": "off" + "useImportExtensions": "off", + "noNestedComponentDefinitions": "off", + "noReactPropAssignments": "error", + "noRestrictedElements": "error", + "useSingleJsDocAsterisk": "error", + "useJsonImportAttributes": "off", + "useUniqueElementIds": "info" }, "a11y": { "noSvgWithoutTitle": "off" }, + "performance": { + "recommended": true, + "noAwaitInLoops": "off" // TODO: turn on, too many cases + }, "nursery": { "recommended": true, - "noAwaitInLoop": "off", // TODO: turn on, too many cases "noFloatingPromises": "error", "noMisusedPromises": "error", - "noConstantBinaryExpression": "error", - "useAdjacentGetterSetter": "error", "noImportCycles": "off", // TODO: enable some time, too many cases right now. - "noNestedComponentDefinitions": "off", // TODO: turn on - "noReactPropAssign": "error", - "noRestrictedElements": "error", "noShadow": "off", // TODO: turn on, too many cases - "noTsIgnore": "error", - "noUnassignedVariables": "error", - "noUselessBackrefInRegex": "error", - "noUselessEscapeInString": "error", "noUselessUndefined": "error", - "noUnknownAtRule": "off", // tailwind "useExplicitType": "off", // TODO: check if we want to. way too many cases - "useNumericSeparators": "error", - "useSingleJsDocAsterisk": "error", - "useSortedClasses": "off", // TODO: turn on - "useSymbolDescription": "error" + "useSortedClasses": "off" // TODO: turn on } } }, diff --git a/package.json b/package.json index ffe6e8eb8..088fd4c18 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "wouter": "^3.7.1" }, "devDependencies": { - "@biomejs/biome": "2.1.3", + "@biomejs/biome": "2.2.4", "@jgoz/esbuild-plugin-typecheck": "^4.0.3", "@jgoz/jest-esbuild": "^1.0.9", "@octokit/openapi-webhooks-types": "^12.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index adfb4f12a..a8fb74d0f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -74,8 +74,8 @@ importers: version: 3.7.1(react@19.1.1) devDependencies: '@biomejs/biome': - specifier: 2.1.3 - version: 2.1.3 + specifier: 2.2.4 + version: 2.2.4 '@jgoz/esbuild-plugin-typecheck': specifier: ^4.0.3 version: 4.0.3(esbuild@0.25.10)(typescript@5.9.2) @@ -396,55 +396,55 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} - '@biomejs/biome@2.1.3': - resolution: {integrity: sha512-KE/tegvJIxTkl7gJbGWSgun7G6X/n2M6C35COT6ctYrAy7SiPyNvi6JtoQERVK/VRbttZfgGq96j2bFmhmnH4w==} + '@biomejs/biome@2.2.4': + resolution: {integrity: sha512-TBHU5bUy/Ok6m8c0y3pZiuO/BZoY/OcGxoLlrfQof5s8ISVwbVBdFINPQZyFfKwil8XibYWb7JMwnT8wT4WVPg==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.1.3': - resolution: {integrity: sha512-LFLkSWRoSGS1wVUD/BE6Nlt2dSn0ulH3XImzg2O/36BoToJHKXjSxzPEMAqT9QvwVtk7/9AQhZpTneERU9qaXA==} + '@biomejs/cli-darwin-arm64@2.2.4': + resolution: {integrity: sha512-RJe2uiyaloN4hne4d2+qVj3d3gFJFbmrr5PYtkkjei1O9c+BjGXgpUPVbi8Pl8syumhzJjFsSIYkcLt2VlVLMA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.1.3': - resolution: {integrity: sha512-Q/4OTw8P9No9QeowyxswcWdm0n2MsdCwWcc5NcKQQvzwPjwuPdf8dpPPf4r+x0RWKBtl1FLiAUtJvBlri6DnYw==} + '@biomejs/cli-darwin-x64@2.2.4': + resolution: {integrity: sha512-cFsdB4ePanVWfTnPVaUX+yr8qV8ifxjBKMkZwN7gKb20qXPxd/PmwqUH8mY5wnM9+U0QwM76CxFyBRJhC9tQwg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.1.3': - resolution: {integrity: sha512-KXouFSBnoxAWZYDQrnNRzZBbt5s9UJkIm40hdvSL9mBxSSoxRFQJbtg1hP3aa8A2SnXyQHxQfpiVeJlczZt76w==} + '@biomejs/cli-linux-arm64-musl@2.2.4': + resolution: {integrity: sha512-7TNPkMQEWfjvJDaZRSkDCPT/2r5ESFPKx+TEev+I2BXDGIjfCZk2+b88FOhnJNHtksbOZv8ZWnxrA5gyTYhSsQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@2.1.3': - resolution: {integrity: sha512-2hS6LgylRqMFmAZCOFwYrf77QMdUwJp49oe8PX/O8+P2yKZMSpyQTf3Eo5ewnsMFUEmYbPOskafdV1ds1MZMJA==} + '@biomejs/cli-linux-arm64@2.2.4': + resolution: {integrity: sha512-M/Iz48p4NAzMXOuH+tsn5BvG/Jb07KOMTdSVwJpicmhN309BeEyRyQX+n1XDF0JVSlu28+hiTQ2L4rZPvu7nMw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@2.1.3': - resolution: {integrity: sha512-KaLAxnROouzIWtl6a0Y88r/4hW5oDUJTIqQorOTVQITaKQsKjZX4XCUmHIhdEk8zMnaiLZzRTAwk1yIAl+mIew==} + '@biomejs/cli-linux-x64-musl@2.2.4': + resolution: {integrity: sha512-m41nFDS0ksXK2gwXL6W6yZTYPMH0LughqbsxInSKetoH6morVj43szqKx79Iudkp8WRT5SxSh7qVb8KCUiewGg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@2.1.3': - resolution: {integrity: sha512-NxlSCBhLvQtWGagEztfAZ4WcE1AkMTntZV65ZvR+J9jp06+EtOYEBPQndA70ZGhHbEDG57bR6uNvqkd1WrEYVA==} + '@biomejs/cli-linux-x64@2.2.4': + resolution: {integrity: sha512-orr3nnf2Dpb2ssl6aihQtvcKtLySLta4E2UcXdp7+RTa7mfJjBgIsbS0B9GC8gVu0hjOu021aU8b3/I1tn+pVQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@2.1.3': - resolution: {integrity: sha512-V9CUZCtWH4u0YwyCYbQ3W5F4ZGPWp2C2TYcsiWFNNyRfmOW1j/TY/jAurl33SaRjgZPO5UUhGyr9m6BN9t84NQ==} + '@biomejs/cli-win32-arm64@2.2.4': + resolution: {integrity: sha512-NXnfTeKHDFUWfxAefa57DiGmu9VyKi0cDqFpdI+1hJWQjGJhJutHPX0b5m+eXvTKOaf+brU+P0JrQAZMb5yYaQ==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.1.3': - resolution: {integrity: sha512-dxy599q6lgp8ANPpR8sDMscwdp9oOumEsVXuVCVT9N2vAho8uYXlCz53JhxX6LtJOXaE73qzgkGQ7QqvFlMC0g==} + '@biomejs/cli-win32-x64@2.2.4': + resolution: {integrity: sha512-3Y4V4zVRarVh/B/eSHczR4LYoSVyv3Dfuvm3cWs5w/HScccS0+Wt/lHOcDTRYeHjQmMYVC3rIRWqyN2EI52+zg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -3784,39 +3784,39 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} - '@biomejs/biome@2.1.3': + '@biomejs/biome@2.2.4': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.1.3 - '@biomejs/cli-darwin-x64': 2.1.3 - '@biomejs/cli-linux-arm64': 2.1.3 - '@biomejs/cli-linux-arm64-musl': 2.1.3 - '@biomejs/cli-linux-x64': 2.1.3 - '@biomejs/cli-linux-x64-musl': 2.1.3 - '@biomejs/cli-win32-arm64': 2.1.3 - '@biomejs/cli-win32-x64': 2.1.3 - - '@biomejs/cli-darwin-arm64@2.1.3': + '@biomejs/cli-darwin-arm64': 2.2.4 + '@biomejs/cli-darwin-x64': 2.2.4 + '@biomejs/cli-linux-arm64': 2.2.4 + '@biomejs/cli-linux-arm64-musl': 2.2.4 + '@biomejs/cli-linux-x64': 2.2.4 + '@biomejs/cli-linux-x64-musl': 2.2.4 + '@biomejs/cli-win32-arm64': 2.2.4 + '@biomejs/cli-win32-x64': 2.2.4 + + '@biomejs/cli-darwin-arm64@2.2.4': optional: true - '@biomejs/cli-darwin-x64@2.1.3': + '@biomejs/cli-darwin-x64@2.2.4': optional: true - '@biomejs/cli-linux-arm64-musl@2.1.3': + '@biomejs/cli-linux-arm64-musl@2.2.4': optional: true - '@biomejs/cli-linux-arm64@2.1.3': + '@biomejs/cli-linux-arm64@2.2.4': optional: true - '@biomejs/cli-linux-x64-musl@2.1.3': + '@biomejs/cli-linux-x64-musl@2.2.4': optional: true - '@biomejs/cli-linux-x64@2.1.3': + '@biomejs/cli-linux-x64@2.2.4': optional: true - '@biomejs/cli-win32-arm64@2.1.3': + '@biomejs/cli-win32-arm64@2.2.4': optional: true - '@biomejs/cli-win32-x64@2.1.3': + '@biomejs/cli-win32-x64@2.2.4': optional: true '@clack/core@0.3.5': diff --git a/src/pages/popup/components/ConnectWalletForm.tsx b/src/pages/popup/components/ConnectWalletForm.tsx index 71429d1f6..b2fdc4462 100644 --- a/src/pages/popup/components/ConnectWalletForm.tsx +++ b/src/pages/popup/components/ConnectWalletForm.tsx @@ -351,6 +351,7 @@ export const ConnectWalletForm = ({ )} + {/** biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID */} + {/** biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID */} { )} + {/** biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID */}
+ {/** biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID */} + {/** biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID */} {}} diff --git a/src/pages/popup/components/Settings/RateOfPay.tsx b/src/pages/popup/components/Settings/RateOfPay.tsx index 49041fd18..93141f62f 100644 --- a/src/pages/popup/components/Settings/RateOfPay.tsx +++ b/src/pages/popup/components/Settings/RateOfPay.tsx @@ -106,6 +106,7 @@ const RateOfPayInput = ({ ); return ( + // biome-ignore lint/correctness/useUniqueElementIds: referenced as stable ID { export const MainLayout = ({ children }: { children: React.ReactNode }) => { return ( + // biome-ignore lint/correctness/useUniqueElementIds: main is unique, as at top-level layout
diff --git a/src/pages/shared/components/Icons.tsx b/src/pages/shared/components/Icons.tsx index a32ee6c1c..fc065c533 100644 --- a/src/pages/shared/components/Icons.tsx +++ b/src/pages/shared/components/Icons.tsx @@ -1,3 +1,4 @@ +// biome-ignore-all lint/correctness/useUniqueElementIds: our IDs are unique here import React from 'react'; export const Spinner = (props: React.SVGProps) => {