From 8234dbae8fcf73ca83bbda31d929aa57ca521a53 Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Sat, 7 Dec 2024 16:24:58 +0000 Subject: [PATCH] [SDK] Feature: Adds tsdoc parsing and other eslint rules (#5622) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## PR-Codex overview This PR focuses on improving TypeScript typings, updating ESLint configurations, and refining package dependencies across various files in the `thirdweb` package. ### Detailed summary - Changed parameter name from `uri` to `_uri` in `onDisplayUri` callback. - Updated `WalletCreationOptions` type definition. - Modified listener type to use `_event`. - Added ESLint rules for better coding practices. - Removed outdated TSDoc tags and added `@example` tag. - Updated package dependencies in `pnpm-lock.yaml`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- package.json | 2 - packages/thirdweb/.eslintrc.cjs | 54 ++++ .../wallet-connect/receiver/receiver.test.ts | 2 +- .../src/wallets/wallet-connect/types.ts | 2 +- packages/thirdweb/src/wallets/wallet-types.ts | 2 +- packages/thirdweb/tsdoc.json | 236 +++++++++--------- pnpm-lock.yaml | 139 ++++++++--- 7 files changed, 281 insertions(+), 156 deletions(-) create mode 100644 packages/thirdweb/.eslintrc.cjs diff --git a/package.json b/package.json index fd78cf125a6..be9271cd035 100644 --- a/package.json +++ b/package.json @@ -70,8 +70,6 @@ "ws@>=8.0.0 <8.17.1": "8.17.1", "ws@>=7.0.0 <7.5.10": "7.5.10", "ws@>=6.0.0 <6.2.3": "6.2.3", - "eslint": "8.57.0", - "@typescript-eslint/typescript-estree": "^7.14.1", "axios@<1.7.4": "^1.7.4", "send@<0.19.0": "^0.19.0", "elliptic@<6.5.7": "^6.5.7", diff --git a/packages/thirdweb/.eslintrc.cjs b/packages/thirdweb/.eslintrc.cjs new file mode 100644 index 00000000000..22c409e6540 --- /dev/null +++ b/packages/thirdweb/.eslintrc.cjs @@ -0,0 +1,54 @@ +module.exports = { + rules: { + "no-restricted-syntax": [ + "warn", + { + selector: "CallExpression[callee.name='useEffect']", + message: + 'Are you *sure* you need to use "useEffect" here? If you loading any async function prefer using "useQuery".', + }, + { + selector: "CallExpression[callee.name='createContext']", + message: + 'Are you *sure* you need to use a "Context"? In almost all cases you should prefer passing props directly.', + }, + { + selector: "CallExpression[callee.name='defineChain']", + message: "Use getCachedChain instead for all internal usage", + }, + ], + "no-unused-vars": [ + "warn", + { + argsIgnorePattern: "^_", + varsIgnorePattern: "^_", + caughtErrorsIgnorePattern: "^_", + destructuredArrayIgnorePattern: "^_", + ignoreRestSiblings: true, + args: "none", // Ignore variables used in type definitions + }, + ], + "tsdoc/syntax": "warn", + }, + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint", "eslint-plugin-tsdoc"], + parserOptions: { + ecmaVersion: 2019, + ecmaFeatures: { + impliedStrict: true, + jsx: true, + }, + warnOnUnsupportedTypeScriptVersion: false, + }, + overrides: [ + // THIS NEEDS TO GO LAST! + { + files: ["*.ts", "*.js", "*.tsx", "*.jsx"], + extends: ["biome"], + }, + ], + env: { + browser: true, + node: true, + }, +}; diff --git a/packages/thirdweb/src/wallets/wallet-connect/receiver/receiver.test.ts b/packages/thirdweb/src/wallets/wallet-connect/receiver/receiver.test.ts index c4aaebc92fc..d4c30d3ab72 100644 --- a/packages/thirdweb/src/wallets/wallet-connect/receiver/receiver.test.ts +++ b/packages/thirdweb/src/wallets/wallet-connect/receiver/receiver.test.ts @@ -27,7 +27,7 @@ const URI_MOCK = const DEFAULT_METADATA = getDefaultAppMetadata(); -const listeners: Record Promise> = {}; +const listeners: Record Promise> = {}; const signClientMock = { on: vi.fn((event, listener) => { diff --git a/packages/thirdweb/src/wallets/wallet-connect/types.ts b/packages/thirdweb/src/wallets/wallet-connect/types.ts index 68130013cb3..5586c2529dc 100644 --- a/packages/thirdweb/src/wallets/wallet-connect/types.ts +++ b/packages/thirdweb/src/wallets/wallet-connect/types.ts @@ -160,7 +160,7 @@ export type WCConnectOptions = { * }) * ``` */ - onDisplayUri?: (uri: string) => void; + onDisplayUri?: (_uri: string) => void; } >; }; diff --git a/packages/thirdweb/src/wallets/wallet-types.ts b/packages/thirdweb/src/wallets/wallet-types.ts index 44472d6f774..796b443588f 100644 --- a/packages/thirdweb/src/wallets/wallet-types.ts +++ b/packages/thirdweb/src/wallets/wallet-types.ts @@ -134,7 +134,7 @@ export type WalletAutoConnectionOption = * @example * ```ts * type X = WalletCreationOptions<'io.metamask'> - * ```` + * ``` */ export type WalletCreationOptions = T extends "smart" ? SmartWalletOptions diff --git a/packages/thirdweb/tsdoc.json b/packages/thirdweb/tsdoc.json index 689611fa15b..bd52d169c78 100644 --- a/packages/thirdweb/tsdoc.json +++ b/packages/thirdweb/tsdoc.json @@ -1,118 +1,122 @@ { - "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", - "tagDefinitions": [ - { - "tagName": "@contract", - "syntaxKind": "block" - }, - { - "tagName": "@wallet", - "syntaxKind": "block" - }, - { - "tagName": "@extension", - "syntaxKind": "block" - }, - { - "tagName": "@rpc", - "syntaxKind": "block" - }, - { - "tagName": "@transaction", - "syntaxKind": "block" - }, - { - "tagName": "@connectWallet", - "syntaxKind": "block" - }, - { - "tagName": "@theme", - "syntaxKind": "block" - }, - { - "tagName": "@locale", - "syntaxKind": "block" - }, - { - "tagName": "@component", - "syntaxKind": "block" - }, - { - "tagName": "@walletConfig", - "syntaxKind": "block" - }, - { - "tagName": "@walletConnection", - "syntaxKind": "block" - }, - { - "tagName": "@walletUtils", - "syntaxKind": "block" - }, - { - "tagName": "@buyCrypto", - "syntaxKind": "block" - }, - { - "tagName": "@storage", - "syntaxKind": "block" - }, - { - "tagName": "@auth", - "syntaxKind": "block" - }, - { - "tagName": "@utils", - "syntaxKind": "block" - }, - { - "tagName": "@chain", - "syntaxKind": "block" - }, - { - "tagName": "@modules", - "syntaxKind": "block" - }, - { - "tagName": "@social", - "syntaxKind": "block" - }, - { - "tagName": "@client", - "syntaxKind": "block" - }, - { - "tagName": "@nft", - "syntaxKind": "block" - }, - { - "tagName": "@account", - "syntaxKind": "block" - } - ], - "supportForTags": { - "@contract": true, - "@wallet": true, - "@extension": true, - "@rpc": true, - "@transaction": true, - "@connectWallet": true, - "@theme": true, - "@locale": true, - "@component": true, - "@walletConfig": true, - "@walletConnection": true, - "@walletUtils": true, - "@buyCrypto": true, - "@storage": true, - "@auth": true, - "@utils": true, - "@chain": true, - "@modules": true, - "@social": true, - "@client": true, - "@nft": true, - "@account": true, - "@beta": true - } + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "tagDefinitions": [ + { + "tagName": "@example", + "syntaxKind": "block" + }, + { + "tagName": "@contract", + "syntaxKind": "block" + }, + { + "tagName": "@wallet", + "syntaxKind": "block" + }, + { + "tagName": "@extension", + "syntaxKind": "block" + }, + { + "tagName": "@rpc", + "syntaxKind": "block" + }, + { + "tagName": "@transaction", + "syntaxKind": "block" + }, + { + "tagName": "@connectWallet", + "syntaxKind": "block" + }, + { + "tagName": "@theme", + "syntaxKind": "block" + }, + { + "tagName": "@locale", + "syntaxKind": "block" + }, + { + "tagName": "@component", + "syntaxKind": "block" + }, + { + "tagName": "@walletConfig", + "syntaxKind": "block" + }, + { + "tagName": "@walletConnection", + "syntaxKind": "block" + }, + { + "tagName": "@walletUtils", + "syntaxKind": "block" + }, + { + "tagName": "@buyCrypto", + "syntaxKind": "block" + }, + { + "tagName": "@storage", + "syntaxKind": "block" + }, + { + "tagName": "@auth", + "syntaxKind": "block" + }, + { + "tagName": "@utils", + "syntaxKind": "block" + }, + { + "tagName": "@chain", + "syntaxKind": "block" + }, + { + "tagName": "@modules", + "syntaxKind": "block" + }, + { + "tagName": "@social", + "syntaxKind": "block" + }, + { + "tagName": "@client", + "syntaxKind": "block" + }, + { + "tagName": "@nft", + "syntaxKind": "block" + }, + { + "tagName": "@account", + "syntaxKind": "block" + } + ], + "supportForTags": { + "@contract": true, + "@wallet": true, + "@extension": true, + "@rpc": true, + "@transaction": true, + "@connectWallet": true, + "@theme": true, + "@locale": true, + "@component": true, + "@walletConfig": true, + "@walletConnection": true, + "@walletUtils": true, + "@buyCrypto": true, + "@storage": true, + "@auth": true, + "@utils": true, + "@chain": true, + "@modules": true, + "@social": true, + "@client": true, + "@nft": true, + "@account": true, + "@beta": true + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7a942f1ce91..1863d8cb89a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,8 +25,6 @@ overrides: ws@>=8.0.0 <8.17.1: 8.17.1 ws@>=7.0.0 <7.5.10: 7.5.10 ws@>=6.0.0 <6.2.3: 6.2.3 - eslint: 8.57.0 - '@typescript-eslint/typescript-estree': ^7.14.1 axios@<1.7.4: ^1.7.4 send@<0.19.0: ^0.19.0 elliptic@<6.5.7: ^6.5.7 @@ -280,7 +278,7 @@ importers: version: 2.5.5 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -404,7 +402,7 @@ importers: version: 8.4.7(bufferutil@4.0.8)(prettier@3.4.2)(utf-8-validate@5.0.10) tailwindcss: specifier: 3.4.16 - version: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + version: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) typescript: specifier: 5.7.2 version: 5.7.2 @@ -528,10 +526,10 @@ importers: version: 8.4.49 tailwindcss: specifier: 3.4.16 - version: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + version: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2))) typescript: specifier: 5.7.2 version: 5.7.2 @@ -630,7 +628,7 @@ importers: version: 2.5.5 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -697,7 +695,7 @@ importers: version: 8.4.49 tailwindcss: specifier: 3.4.16 - version: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + version: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) tsx: specifier: 4.19.2 version: 4.19.2 @@ -766,7 +764,7 @@ importers: version: 2.5.5 tailwindcss-animate: specifier: ^1.0.7 - version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2))) + version: 1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2))) thirdweb: specifier: workspace:* version: link:../../packages/thirdweb @@ -815,7 +813,7 @@ importers: version: 6.0.1(jiti@2.4.1)(postcss@8.4.49)(tsx@4.19.2)(yaml@2.6.1) tailwindcss: specifier: 3.4.16 - version: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + version: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) typescript: specifier: 5.7.2 version: 5.7.2 @@ -2842,7 +2840,7 @@ packages: resolution: {integrity: sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: - eslint: 8.57.0 + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 '@eslint-community/regexpp@4.12.1': resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} @@ -5911,7 +5909,7 @@ packages: engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: '@typescript-eslint/parser': ^7.0.0 - eslint: 8.57.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: @@ -5921,7 +5919,7 @@ packages: resolution: {integrity: sha512-8lKUOebNLcR0D7RvlcloOacTOWzOqemWEWkKSVpMZVF/XVcwjPR+3MD08QzbW9TCGJ+DwIc6zUSGZ9vd8cO1IA==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: 8.57.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: @@ -5939,12 +5937,16 @@ packages: resolution: {integrity: sha512-/MzmgNd3nnbDbOi3LfasXWWe292+iuo+umJ0bCCMCPc1jLO/z2BQmWUUUXvXLbrQey/JgzdF/OV+I5bzEGwJkQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: 8.57.0 + eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: optional: true + '@typescript-eslint/types@6.19.0': + resolution: {integrity: sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==} + engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/types@7.14.1': resolution: {integrity: sha512-mL7zNEOQybo5R3AavY+Am7KLv8BorIv7HCYS5rKoNZKQD9tsfGUpO4KdAn3sSUvTiS4PQkr2+K0KJbxj8H9NDg==} engines: {node: ^18.18.0 || >=20.0.0} @@ -5953,6 +5955,15 @@ packages: resolution: {integrity: sha512-gY2TVzeve3z6crqh2Ic7Cr+CAv6pfb0Egee7J5UAVWCpVvDI/F71wNfolIim4FE6hT15EbpZFVUj9j5i38jYXA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/typescript-estree@6.19.0': + resolution: {integrity: sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==} + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/typescript-estree@7.14.1': resolution: {integrity: sha512-k5d0VuxViE2ulIO6FbxxSZaxqDVUyMbXcidC8rHvii0I56XZPv8cq+EhMns+d/EVIL41sMXqRbK3D10Oza1bbA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -5962,22 +5973,35 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@8.17.0': + resolution: {integrity: sha512-JqkOopc1nRKZpX+opvKqnM3XUlM7LpFMD0lYxTqOTKQfCWAmxw45e3qlOCsEqEB2yuacujivudOFpCnqkBDNMw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/utils@7.14.1': resolution: {integrity: sha512-CMmVVELns3nak3cpJhZosDkm63n+DwBlDX8g0k4QUa9BMnF+lH2lr3d130M1Zt1xxmB3LLk3NV7KQCq86ZBBhQ==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: - eslint: 8.57.0 + eslint: ^8.56.0 '@typescript-eslint/utils@8.17.0': resolution: {integrity: sha512-bQC8BnEkxqG8HBGKwG9wXlZqg37RKSMY7v/X8VEWD8JG2JuTHuNK0VFvMPMUKQcbk6B+tf05k+4AShAEtCtJ/w==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: 8.57.0 + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: optional: true + '@typescript-eslint/visitor-keys@6.19.0': + resolution: {integrity: sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==} + engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/visitor-keys@7.14.1': resolution: {integrity: sha512-Crb+F75U1JAEtBeQGxSKwI60hZmmzaqA3z9sYsVm8X7W5cwLEm5bRe0/uXS6+MR/y8CVpKSR/ontIAIEPFcEkA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -7930,7 +7954,7 @@ packages: eslint-config-next@15.0.4: resolution: {integrity: sha512-97mLaAhbJKVQYXUBBrenRtEUAA6bNDPxWfaFEd6mEhKfpajP4wJrW4l7BUlHuYWxR8oQa9W014qBJpumpJQwWA==} peerDependencies: - eslint: 8.57.0 + eslint: ^7.23.0 || ^8.0.0 || ^9.0.0 typescript: '>=3.3.1' peerDependenciesMeta: typescript: @@ -7943,7 +7967,7 @@ packages: resolution: {integrity: sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - eslint: 8.57.0 + eslint: '*' eslint-plugin-import: '*' eslint-plugin-import-x: '*' peerDependenciesMeta: @@ -7956,7 +7980,7 @@ packages: resolution: {integrity: sha512-ynztX0k7CQ3iDL7fDEIeg3g0O/d6QPv7IBI9fdYLhXp5fAp0fi8X22xF/D3+Pk0f90R27uwqa1clHpay6t0l8Q==} engines: {node: '>=18.0.0'} peerDependencies: - eslint: 8.57.0 + eslint: '>=8.0.0' eslint-module-utils@2.12.0: resolution: {integrity: sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg==} @@ -7984,7 +8008,7 @@ packages: engines: {node: '>=4'} peerDependencies: '@typescript-eslint/parser': '*' - eslint: 8.57.0 + eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9 peerDependenciesMeta: '@typescript-eslint/parser': optional: true @@ -7993,43 +8017,43 @@ packages: resolution: {integrity: sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==} engines: {node: '>=4.0'} peerDependencies: - eslint: 8.57.0 + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 eslint-plugin-markdown@3.0.1: resolution: {integrity: sha512-8rqoc148DWdGdmYF6WSQFT3uQ6PO7zXYgeBpHAOAakX/zpq+NvFYbDA/H7PYzHajwtmaOzAwfxyl++x0g1/N9A==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: - eslint: 8.57.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 eslint-plugin-mdx@3.1.5: resolution: {integrity: sha512-lUE7tP7IrIRHU3gTtASDe5u4YM2SvQveYVJfuo82yn3MLh/B/v05FNySURCK4aIxIYF1QYo3IRemQG/lyQzpAg==} engines: {node: '>=18.0.0'} peerDependencies: - eslint: 8.57.0 + eslint: '>=8.0.0' eslint-plugin-react-compiler@19.0.0-beta-df7b47d-20241124: resolution: {integrity: sha512-82PfnllC8jP/68KdLAbpWuYTcfmtGLzkqy2IW85WopKMTr+4rdQpp+lfliQ/QE79wWrv/dRoADrk3Pdhq25nTw==} engines: {node: ^14.17.0 || ^16.0.0 || >= 18.0.0} peerDependencies: - eslint: 8.57.0 + eslint: '>=7' eslint-plugin-react-hooks@5.1.0: resolution: {integrity: sha512-mpJRtPgHN2tNAvZ35AMfqeB3Xqeo273QxrHJsbBEPWODRM4r0yB6jfoROqKEYrOn27UtRPpcpHc2UqyBSuUNTw==} engines: {node: '>=10'} peerDependencies: - eslint: 8.57.0 + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 eslint-plugin-react@7.37.2: resolution: {integrity: sha512-EsTAnj9fLVr/GZleBLFbj/sSuXeWmp1eXIN60ceYnZveqEaUCyW4X+Vh4WTdUhCkW4xutXYqTXCUSyqD4rB75w==} engines: {node: '>=4'} peerDependencies: - eslint: 8.57.0 + eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 eslint-plugin-storybook@0.11.1: resolution: {integrity: sha512-yGKpAYkBm/Q2hZg476vRUAvd9lAccjjSvzU5nYy3BSQbKTPy7uopx7JEpwk2vSuw4weTMZzWF64z9/gp/K5RCg==} engines: {node: '>= 18'} peerDependencies: - eslint: 8.57.0 + eslint: '>=6' eslint-plugin-svg-jsx@1.2.4: resolution: {integrity: sha512-sClnpIQY9OOxDLpf3JJU/m6Xk11dJqoaSRC5eyAt8Akp86/DNbzO8C6tyr3wjfJnPvgWjisYnEkUTw2m9yG45Q==} @@ -10491,6 +10515,10 @@ packages: resolution: {integrity: sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==} engines: {node: '>=16 || 14 >=14.17'} + minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + engines: {node: '>=16 || 14 >=14.17'} + minimatch@9.0.5: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} @@ -21207,10 +21235,27 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/types@6.19.0': {} + '@typescript-eslint/types@7.14.1': {} '@typescript-eslint/types@8.17.0': {} + '@typescript-eslint/typescript-estree@6.19.0(typescript@5.7.2)': + dependencies: + '@typescript-eslint/types': 6.19.0 + '@typescript-eslint/visitor-keys': 6.19.0 + debug: 4.3.7(supports-color@8.1.1) + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.3 + semver: 7.6.3 + ts-api-utils: 1.4.3(typescript@5.7.2) + optionalDependencies: + typescript: 5.7.2 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/typescript-estree@7.14.1(typescript@5.7.2)': dependencies: '@typescript-eslint/types': 7.14.1 @@ -21226,6 +21271,21 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/typescript-estree@8.17.0(typescript@5.7.2)': + dependencies: + '@typescript-eslint/types': 8.17.0 + '@typescript-eslint/visitor-keys': 8.17.0 + debug: 4.3.7(supports-color@8.1.1) + fast-glob: 3.3.2 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.4.3(typescript@5.7.2) + optionalDependencies: + typescript: 5.7.2 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/utils@7.14.1(eslint@8.57.0)(typescript@5.7.2)': dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.0) @@ -21242,13 +21302,18 @@ snapshots: '@eslint-community/eslint-utils': 4.4.1(eslint@8.57.0) '@typescript-eslint/scope-manager': 8.17.0 '@typescript-eslint/types': 8.17.0 - '@typescript-eslint/typescript-estree': 7.14.1(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 8.17.0(typescript@5.7.2) eslint: 8.57.0 optionalDependencies: typescript: 5.7.2 transitivePeerDependencies: - supports-color + '@typescript-eslint/visitor-keys@6.19.0': + dependencies: + '@typescript-eslint/types': 6.19.0 + eslint-visitor-keys: 3.4.3 + '@typescript-eslint/visitor-keys@7.14.1': dependencies: '@typescript-eslint/types': 7.14.1 @@ -22630,7 +22695,7 @@ snapshots: '@oclif/plugin-not-found': 2.3.23(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2) '@oclif/plugin-plugins': 5.4.4 '@oclif/plugin-warn-if-update-available': 2.0.24(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2) - '@typescript-eslint/typescript-estree': 7.14.1(typescript@5.7.2) + '@typescript-eslint/typescript-estree': 6.19.0(typescript@5.7.2) acorn: 8.8.1 acorn-walk: 8.2.0 axios: 1.7.4 @@ -23976,7 +24041,7 @@ snapshots: dependencies: fast-glob: 3.3.2 postcss: 8.4.49 - tailwindcss: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + tailwindcss: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) eslint-scope@5.1.1: dependencies: @@ -27361,6 +27426,10 @@ snapshots: dependencies: brace-expansion: 2.0.1 + minimatch@9.0.3: + dependencies: + brace-expansion: 2.0.1 + minimatch@9.0.5: dependencies: brace-expansion: 2.0.1 @@ -28291,7 +28360,7 @@ snapshots: camelcase-css: 2.0.1 postcss: 8.4.49 - postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)): + postcss-load-config@4.0.2(postcss@8.4.49)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)): dependencies: lilconfig: 3.1.3 yaml: 2.6.1 @@ -30149,11 +30218,11 @@ snapshots: tailwind-merge@2.5.5: {} - tailwindcss-animate@1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2))): + tailwindcss-animate@1.0.7(tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2))): dependencies: - tailwindcss: 3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + tailwindcss: 3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) - tailwindcss@3.4.16(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)): + tailwindcss@3.4.16(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)): dependencies: '@alloc/quick-lru': 5.2.0 arg: 5.0.2 @@ -30172,7 +30241,7 @@ snapshots: postcss: 8.4.49 postcss-import: 15.1.0(postcss@8.4.49) postcss-js: 4.0.1(postcss@8.4.49) - postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@types/node@22.10.1)(typescript@5.7.2)) + postcss-load-config: 4.0.2(postcss@8.4.49)(ts-node@10.9.2(@swc/core@1.10.0)(@types/node@22.10.1)(typescript@5.7.2)) postcss-nested: 6.2.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 resolve: 1.22.8