From 8a0e610113c8e8f247238e2696ab91b530a77cc4 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Sat, 29 Jun 2024 09:51:38 +1000 Subject: [PATCH] tests: Run ESLint on tests --- eslint.config.js | 5 +- package.json | 2 +- packages/angular-form/package.json | 2 +- packages/form-core/package.json | 2 +- packages/form-core/vite.config.ts | 3 +- packages/lit-form/package.json | 2 +- packages/react-form/package.json | 2 +- packages/react-form/tests/useField.test.tsx | 24 +-- packages/react-form/vite.config.ts | 3 +- packages/solid-form/package.json | 2 +- .../solid-form/tests/createField.test.tsx | 4 +- packages/valibot-form-adapter/package.json | 2 +- packages/valibot-form-adapter/vite.config.ts | 3 +- packages/vue-form/package.json | 2 +- packages/vue-form/vite.config.ts | 3 +- packages/yup-form-adapter/package.json | 2 +- packages/yup-form-adapter/vite.config.ts | 3 +- packages/zod-form-adapter/package.json | 2 +- packages/zod-form-adapter/vite.config.ts | 3 +- pnpm-lock.yaml | 199 ++++++++++++++++-- 20 files changed, 221 insertions(+), 49 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 6c16cb115..f995e5f27 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,17 +6,14 @@ import { tanstackConfig } from '@tanstack/config/eslint' export default [ ...tanstackConfig, { - name: 'tanstack/local', + name: 'tanstack/temp', rules: { 'ts/array-type': 'off', 'ts/ban-types': 'off', 'ts/method-signature-style': 'off', 'ts/naming-convention': 'off', 'ts/no-unnecessary-type-assertion': 'off', - 'ts/prefer-for-of': 'off', - 'ts/require-await': 'off', 'no-async-promise-executor': 'off', - 'no-empty': 'off', }, }, ] diff --git a/package.json b/package.json index acaa09f8b..a79ef5607 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "devDependencies": { "@eslint-react/eslint-plugin": "^1.5.16", "@solidjs/testing-library": "^0.8.6", - "@tanstack/config": "^0.8.6", + "@tanstack/config": "^0.9.0", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@testing-library/user-event": "^14.5.2", diff --git a/packages/angular-form/package.json b/packages/angular-form/package.json index d9bb0292c..7a15c1fd7 100644 --- a/packages/angular-form/package.json +++ b/packages/angular-form/package.json @@ -17,7 +17,7 @@ "sideEffects": false, "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts54": "tsc", "test:lib": "vitest", diff --git a/packages/form-core/package.json b/packages/form-core/package.json index 300f66147..f01395ec8 100644 --- a/packages/form-core/package.json +++ b/packages/form-core/package.json @@ -38,7 +38,7 @@ ], "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", diff --git a/packages/form-core/vite.config.ts b/packages/form-core/vite.config.ts index a219ddc97..6334a53d9 100644 --- a/packages/form-core/vite.config.ts +++ b/packages/form-core/vite.config.ts @@ -1,9 +1,10 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' +import packageJson from './package.json' const config = defineConfig({ test: { - name: 'form-core', + name: packageJson.name, dir: './tests', watch: false, environment: 'jsdom', diff --git a/packages/lit-form/package.json b/packages/lit-form/package.json index 9aae747f9..4eb9e1d3b 100644 --- a/packages/lit-form/package.json +++ b/packages/lit-form/package.json @@ -17,7 +17,7 @@ "sideEffects": false, "scripts": { "clean": "rimraf ./build && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js", diff --git a/packages/react-form/package.json b/packages/react-form/package.json index 825eb4c55..adf046b04 100644 --- a/packages/react-form/package.json +++ b/packages/react-form/package.json @@ -17,7 +17,7 @@ "sideEffects": false, "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js -p tsconfig.legacy.json", diff --git a/packages/react-form/tests/useField.test.tsx b/packages/react-form/tests/useField.test.tsx index 881c440f3..67b5b8908 100644 --- a/packages/react-form/tests/useField.test.tsx +++ b/packages/react-form/tests/useField.test.tsx @@ -2,10 +2,10 @@ import * as React from 'react' import { describe, expect, it, vi } from 'vitest' import { render, waitFor } from '@testing-library/react' import { userEvent } from '@testing-library/user-event' +import { StrictMode } from 'react' import { useForm } from '../src/index' import { sleep } from './utils' import type { FieldApi, FormApi } from '../src/index' -import { StrictMode } from 'react' const user = userEvent.setup() @@ -48,7 +48,7 @@ describe('useField', () => { expect(input).toHaveValue('FirstName') }) - it('should use field default value first', async () => { + it('should use field default value first', () => { type Person = { firstName: string lastName: string @@ -164,7 +164,7 @@ describe('useField', () => { onBlur={field.handleBlur} onChange={(e) => field.handleChange(e.target.value)} /> -
{field.getMeta().errorMap?.onChange}
+{field.getMeta().errorMap.onChange}
)} /> @@ -215,8 +215,8 @@ describe('useField', () => { onBlur={field.handleBlur} onChange={(e) => field.handleChange(e.target.value)} /> -{field.getMeta().errorMap?.onChange}
-{field.getMeta().errorMap?.onBlur}
+{field.getMeta().errorMap.onChange}
+{field.getMeta().errorMap.onBlur}
)} /> @@ -269,7 +269,7 @@ describe('useField', () => { onBlur={field.handleBlur} onChange={(e) => field.handleChange(e.target.value)} /> -{field.getMeta().errorMap?.onChange}
+{field.getMeta().errorMap.onChange}
)} /> @@ -325,8 +325,8 @@ describe('useField', () => { onBlur={field.handleBlur} onChange={(e) => field.handleChange(e.target.value)} /> -{field.getMeta().errorMap?.onChange}
-{field.getMeta().errorMap?.onBlur}
+{field.getMeta().errorMap.onChange}
+{field.getMeta().errorMap.onBlur}
)} /> @@ -406,7 +406,7 @@ describe('useField', () => { function FieldInfo({ field }: { field: FieldApi{field.state.value ?? ''}
} + children={(field) =>{field.state.value}
} /> ) } @@ -859,7 +859,7 @@ describe('useField', () => { it('should validate allow pushvalue to implicitly set a default value', async () => { type Person = { - people: string[] + people: Array{field().getMeta().errorMap?.onChange}
-{field().getMeta().errorMap?.onBlur}
+{field().getMeta().errorMap.onChange}
+{field().getMeta().errorMap.onBlur}
)} /> diff --git a/packages/valibot-form-adapter/package.json b/packages/valibot-form-adapter/package.json index 314b144fd..9ec741427 100644 --- a/packages/valibot-form-adapter/package.json +++ b/packages/valibot-form-adapter/package.json @@ -38,7 +38,7 @@ ], "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", "test:types:ts51": "node ../../node_modules/typescript51/lib/tsc.js", diff --git a/packages/valibot-form-adapter/vite.config.ts b/packages/valibot-form-adapter/vite.config.ts index b9ef9747c..6334a53d9 100644 --- a/packages/valibot-form-adapter/vite.config.ts +++ b/packages/valibot-form-adapter/vite.config.ts @@ -1,9 +1,10 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' +import packageJson from './package.json' const config = defineConfig({ test: { - name: 'valibot-form-adapter', + name: packageJson.name, dir: './tests', watch: false, environment: 'jsdom', diff --git a/packages/vue-form/package.json b/packages/vue-form/package.json index 7f3eab674..7942195a4 100644 --- a/packages/vue-form/package.json +++ b/packages/vue-form/package.json @@ -34,7 +34,7 @@ "sideEffects": false, "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", diff --git a/packages/vue-form/vite.config.ts b/packages/vue-form/vite.config.ts index 10615925b..33d59f5f8 100644 --- a/packages/vue-form/vite.config.ts +++ b/packages/vue-form/vite.config.ts @@ -1,11 +1,12 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' import vue from '@vitejs/plugin-vue' +import packageJson from './package.json' const config = defineConfig({ plugins: [vue()], test: { - name: 'vue-query', + name: packageJson.name, dir: './tests', watch: false, environment: 'jsdom', diff --git a/packages/yup-form-adapter/package.json b/packages/yup-form-adapter/package.json index f200769b6..f5e78c1c3 100644 --- a/packages/yup-form-adapter/package.json +++ b/packages/yup-form-adapter/package.json @@ -38,7 +38,7 @@ ], "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", diff --git a/packages/yup-form-adapter/vite.config.ts b/packages/yup-form-adapter/vite.config.ts index f8bdc32bb..6334a53d9 100644 --- a/packages/yup-form-adapter/vite.config.ts +++ b/packages/yup-form-adapter/vite.config.ts @@ -1,9 +1,10 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' +import packageJson from './package.json' const config = defineConfig({ test: { - name: 'yup-form-adapter', + name: packageJson.name, dir: './tests', watch: false, environment: 'jsdom', diff --git a/packages/zod-form-adapter/package.json b/packages/zod-form-adapter/package.json index ec392fd02..fd5d66b76 100644 --- a/packages/zod-form-adapter/package.json +++ b/packages/zod-form-adapter/package.json @@ -38,7 +38,7 @@ ], "scripts": { "clean": "rimraf ./dist && rimraf ./coverage", - "test:eslint": "eslint ./src", + "test:eslint": "eslint ./src ./tests", "test:types": "pnpm run \"/^test:types:ts[0-9]{2}$/\"", "test:types:ts49": "node ../../node_modules/typescript49/lib/tsc.js -p tsconfig.legacy.json", "test:types:ts50": "node ../../node_modules/typescript50/lib/tsc.js", diff --git a/packages/zod-form-adapter/vite.config.ts b/packages/zod-form-adapter/vite.config.ts index c94fa167d..6334a53d9 100644 --- a/packages/zod-form-adapter/vite.config.ts +++ b/packages/zod-form-adapter/vite.config.ts @@ -1,9 +1,10 @@ import { defineConfig, mergeConfig } from 'vitest/config' import { tanstackViteConfig } from '@tanstack/config/vite' +import packageJson from './package.json' const config = defineConfig({ test: { - name: 'zod-form-adapter', + name: packageJson.name, dir: './tests', watch: false, environment: 'jsdom', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e473adc6a..048f7f32a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^0.8.6 version: 0.8.6(@solidjs/router@0.13.0(solid-js@1.7.12))(solid-js@1.7.12) '@tanstack/config': - specifier: ^0.8.6 - version: 0.8.6(@types/node@20.10.6)(esbuild@0.20.2)(eslint@8.57.0)(rollup@4.17.1)(typescript@5.4.2)(vite@5.2.10(@types/node@20.10.6)(less@4.2.0)(sass@1.72.0)(sugarss@4.0.1)(terser@5.29.1)) + specifier: ^0.9.0 + version: 0.9.0(@types/node@20.10.6)(esbuild@0.20.2)(eslint@8.57.0)(rollup@4.17.1)(typescript@5.4.2)(vite@5.2.10(@types/node@20.10.6)(less@4.2.0)(sass@1.72.0)(sugarss@4.0.1)(terser@5.29.1)) '@testing-library/jest-dom': specifier: ^6.4.2 version: 6.4.2(vitest@1.3.1(@types/node@20.10.6)(jsdom@24.0.0)(less@4.2.0)(sass@1.72.0)(sugarss@4.0.1)(terser@5.29.1)) @@ -2409,14 +2409,14 @@ packages: resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + '@eslint/eslintrc@3.1.0': + resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@eslint/js@8.57.0': resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@eslint/js@9.5.0': - resolution: {integrity: sha512-A7+AOT2ICkodvtsWnxZP4Xxk3NbZ3VMHd8oihydLRGrJgqqdEz1qSeEgXYyT/Cu8h1TWWsQRejIx48mtjZ5y1w==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@floating-ui/core@1.5.3': resolution: {integrity: sha512-O0WKDOo0yhJuugCx6trZQj5jVJ9yR0ystG2JaNAemYUWce+pmM6WUEFIibnWyEJKdrDxhm75NoSRME35FNaM/Q==} @@ -3207,8 +3207,8 @@ packages: '@angular/common': '>=16 < 18' '@angular/core': '>=16 < 18' - '@tanstack/config@0.8.6': - resolution: {integrity: sha512-SrvXII1DM3izYsrCoFfS4i+H/rGT30IOhG96De3J0/mbkCicB8rWSgV0FfrLoIlQc4FUyULNCw7/Pn3iZCGM7g==} + '@tanstack/config@0.9.0': + resolution: {integrity: sha512-SeJjYW2RMaO+U51aNu3p92GHzs4yZPeKT9F4R32U7PgDFRGMLUpFh5oiYwtr5RuEddn0Vk9jwcfhnCuCHUgSuQ==} engines: {node: '>=18'} hasBin: true @@ -3446,7 +3446,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: @@ -3778,6 +3778,11 @@ packages: engines: {node: '>=0.4.0'} hasBin: true + acorn@8.12.0: + resolution: {integrity: sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw==} + engines: {node: '>=0.4.0'} + hasBin: true + adjust-sourcemap-loader@4.0.0: resolution: {integrity: sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A==} engines: {node: '>=8.9'} @@ -4125,6 +4130,14 @@ packages: resolution: {integrity: sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg==} engines: {node: '>=6.0'} + ci-info@4.0.0: + resolution: {integrity: sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==} + engines: {node: '>=8'} + + clean-regexp@1.0.0: + resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==} + engines: {node: '>=4'} + clean-stack@2.2.0: resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} engines: {node: '>=6'} @@ -4288,6 +4301,9 @@ packages: core-js-compat@3.36.0: resolution: {integrity: sha512-iV9Pd/PsgjNWBXeq8XRtWVSgz2tKAfhfvBs7qxYty+RlRd+OCksaWmOnc4JKrTc1cToXL1N0s3l/vwlxPtdElw==} + core-js-compat@3.37.1: + resolution: {integrity: sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg==} + core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} @@ -4725,6 +4741,12 @@ packages: peerDependencies: eslint: '>=7' + eslint-plugin-unicorn@54.0.0: + resolution: {integrity: sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==} + engines: {node: '>=18.18'} + peerDependencies: + eslint: '>=8.56.0' + eslint-scope@5.1.1: resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==} engines: {node: '>=8.0.0'} @@ -4737,11 +4759,19 @@ packages: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + eslint-visitor-keys@4.0.0: + resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true + espree@10.1.0: + resolution: {integrity: sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -5070,6 +5100,10 @@ packages: resolution: {integrity: sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==} engines: {node: '>=8'} + globals@14.0.0: + resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + engines: {node: '>=18'} + globals@15.6.0: resolution: {integrity: sha512-UzcJi88Hw//CurUIRa9Jxb0vgOCcuD/MNjwmXp633cyaRKkCWACkoqHCtfZv43b1kqXGg/fpOa8bwgacCeXsVg==} engines: {node: '>=18'} @@ -5148,6 +5182,9 @@ packages: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} + hosted-git-info@2.8.9: + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + hosted-git-info@4.1.0: resolution: {integrity: sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==} engines: {node: '>=10'} @@ -5634,6 +5671,11 @@ packages: engines: {node: '>=4'} hasBin: true + jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -6150,6 +6192,9 @@ packages: engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} hasBin: true + normalize-package-data@2.5.0: + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} + normalize-package-data@3.0.3: resolution: {integrity: sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA==} engines: {node: '>=10'} @@ -6491,6 +6536,10 @@ packages: pkg-types@1.0.3: resolution: {integrity: sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==} + pluralize@8.0.0: + resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} + engines: {node: '>=4'} + possible-typed-array-names@1.0.0: resolution: {integrity: sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==} engines: {node: '>= 0.4'} @@ -6777,10 +6826,18 @@ packages: engines: {node: ^16.14.0 || >=18.0.0} deprecated: This package is no longer supported. Please use @npmcli/package-json instead. + read-pkg-up@7.0.1: + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} + read-pkg-up@9.1.0: resolution: {integrity: sha512-vaMRR1AC1nrd5CQM0PhlRsO5oc2AAigqr7cCrZ/MW/Rsaflz4RlgzkpL4qoU/z1F6wrbd85iFv1OQj/y5RdGvg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + read-pkg@5.2.0: + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} + read-pkg@7.1.0: resolution: {integrity: sha512-5iOehe+WF75IccPc30bWTbpdDQLOCc3Uu8bi3Dte3Eueij81yx1Mrufk8qBx/YAbR4uL1FdUr+7BKXDwEtisXg==} engines: {node: '>=12.20'} @@ -6828,6 +6885,10 @@ packages: regex-parser@2.3.0: resolution: {integrity: sha512-TVILVSz2jY5D47F4mA4MppkBrafEaiUWJO/TcZHEIuI13AqoZMkK1WMA4Om1YkYbTx+9Ki1/tSUXbceyr9saRg==} + regexp-tree@0.1.27: + resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} + hasBin: true + regexp.prototype.flags@1.5.2: resolution: {integrity: sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==} engines: {node: '>= 0.4'} @@ -6836,6 +6897,10 @@ packages: resolution: {integrity: sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==} engines: {node: '>=4'} + regjsparser@0.10.0: + resolution: {integrity: sha512-qx+xQGZVsy55CH0a1hiVwHmqjLryfh7wQyF5HO07XJ9f7dQMY/gPQHhlyDkIzJKC+x2fUCpCcUODUUUFrm7SHA==} + hasBin: true + regjsparser@0.9.1: resolution: {integrity: sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==} hasBin: true @@ -7596,6 +7661,14 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} + type-fest@0.6.0: + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} + + type-fest@0.8.1: + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} + type-fest@2.19.0: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} @@ -9835,9 +9908,21 @@ snapshots: transitivePeerDependencies: - supports-color - '@eslint/js@8.57.0': {} + '@eslint/eslintrc@3.1.0': + dependencies: + ajv: 6.12.6 + debug: 4.3.5 + espree: 10.1.0 + globals: 14.0.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - supports-color - '@eslint/js@9.5.0': {} + '@eslint/js@8.57.0': {} '@floating-ui/core@1.5.3': dependencies: @@ -10580,15 +10665,16 @@ snapshots: '@tanstack/store': 0.5.0 tslib: 2.6.2 - '@tanstack/config@0.8.6(@types/node@20.10.6)(esbuild@0.20.2)(eslint@8.57.0)(rollup@4.17.1)(typescript@5.4.2)(vite@5.2.10(@types/node@20.10.6)(less@4.2.0)(sass@1.72.0)(sugarss@4.0.1)(terser@5.29.1))': + '@tanstack/config@0.9.0(@types/node@20.10.6)(esbuild@0.20.2)(eslint@8.57.0)(rollup@4.17.1)(typescript@5.4.2)(vite@5.2.10(@types/node@20.10.6)(less@4.2.0)(sass@1.72.0)(sugarss@4.0.1)(terser@5.29.1))': dependencies: '@commitlint/parse': 19.0.3 - '@eslint/js': 9.5.0 + '@eslint/js': 8.57.0 commander: 12.1.0 current-git-branch: 1.1.0 esbuild-register: 3.5.0(esbuild@0.20.2) eslint-config-prettier: 9.1.0(eslint@8.57.0) eslint-plugin-import-x: 0.5.1(eslint@8.57.0)(typescript@5.4.2) + eslint-plugin-unicorn: 54.0.0(eslint@8.57.0) globals: 15.6.0 interpret: 3.1.1 jsonfile: 6.1.0 @@ -11348,10 +11434,16 @@ snapshots: dependencies: acorn: 8.10.0 + acorn-jsx@5.3.2(acorn@8.12.0): + dependencies: + acorn: 8.12.0 + acorn-walk@8.3.2: {} acorn@8.10.0: {} + acorn@8.12.0: {} + adjust-sourcemap-loader@4.0.0: dependencies: loader-utils: 2.0.4 @@ -11740,6 +11832,12 @@ snapshots: chrome-trace-event@1.0.3: {} + ci-info@4.0.0: {} + + clean-regexp@1.0.0: + dependencies: + escape-string-regexp: 1.0.5 + clean-stack@2.2.0: {} cli-cursor@3.1.0: @@ -11896,6 +11994,10 @@ snapshots: dependencies: browserslist: 4.23.0 + core-js-compat@3.37.1: + dependencies: + browserslist: 4.23.0 + core-util-is@1.0.3: {} cosmiconfig@7.1.0: @@ -12436,6 +12538,28 @@ snapshots: dependencies: eslint: 8.57.0 + eslint-plugin-unicorn@54.0.0(eslint@8.57.0): + dependencies: + '@babel/helper-validator-identifier': 7.24.7 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint/eslintrc': 3.1.0 + ci-info: 4.0.0 + clean-regexp: 1.0.0 + core-js-compat: 3.37.1 + eslint: 8.57.0 + esquery: 1.5.0 + indent-string: 4.0.0 + is-builtin-module: 3.2.1 + jsesc: 3.0.2 + pluralize: 8.0.0 + read-pkg-up: 7.0.1 + regexp-tree: 0.1.27 + regjsparser: 0.10.0 + semver: 7.6.2 + strip-indent: 3.0.0 + transitivePeerDependencies: + - supports-color + eslint-scope@5.1.1: dependencies: esrecurse: 4.3.0 @@ -12448,6 +12572,8 @@ snapshots: eslint-visitor-keys@3.4.3: {} + eslint-visitor-keys@4.0.0: {} + eslint@8.57.0: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) @@ -12491,6 +12617,12 @@ snapshots: transitivePeerDependencies: - supports-color + espree@10.1.0: + dependencies: + acorn: 8.12.0 + acorn-jsx: 5.3.2(acorn@8.12.0) + eslint-visitor-keys: 4.0.0 + espree@9.6.1: dependencies: acorn: 8.10.0 @@ -12871,6 +13003,8 @@ snapshots: dependencies: type-fest: 0.20.2 + globals@14.0.0: {} + globals@15.6.0: {} globby@11.1.0: @@ -12940,6 +13074,8 @@ snapshots: dependencies: parse-passwd: 1.0.0 + hosted-git-info@2.8.9: {} + hosted-git-info@4.1.0: dependencies: lru-cache: 6.0.0 @@ -13423,6 +13559,8 @@ snapshots: jsesc@2.5.2: {} + jsesc@3.0.2: {} + json-buffer@3.0.1: {} json-parse-even-better-errors@2.3.1: {} @@ -13966,6 +14104,13 @@ snapshots: dependencies: abbrev: 2.0.0 + normalize-package-data@2.5.0: + dependencies: + hosted-git-info: 2.8.9 + resolve: 1.22.8 + semver: 5.7.2 + validate-npm-package-license: 3.0.4 + normalize-package-data@3.0.3: dependencies: hosted-git-info: 4.1.0 @@ -14377,6 +14522,8 @@ snapshots: mlly: 1.4.2 pathe: 1.1.1 + pluralize@8.0.0: {} + possible-typed-array-names@1.0.0: {} postcss-js@4.0.1(postcss@8.4.32): @@ -14651,12 +14798,25 @@ snapshots: normalize-package-data: 6.0.0 npm-normalize-package-bin: 3.0.1 + read-pkg-up@7.0.1: + dependencies: + find-up: 4.1.0 + read-pkg: 5.2.0 + type-fest: 0.8.1 + read-pkg-up@9.1.0: dependencies: find-up: 6.3.0 read-pkg: 7.1.0 type-fest: 2.19.0 + read-pkg@5.2.0: + dependencies: + '@types/normalize-package-data': 2.4.1 + normalize-package-data: 2.5.0 + parse-json: 5.2.0 + type-fest: 0.6.0 + read-pkg@7.1.0: dependencies: '@types/normalize-package-data': 2.4.1 @@ -14714,6 +14874,8 @@ snapshots: regex-parser@2.3.0: {} + regexp-tree@0.1.27: {} + regexp.prototype.flags@1.5.2: dependencies: call-bind: 1.0.7 @@ -14730,6 +14892,10 @@ snapshots: unicode-match-property-ecmascript: 2.0.0 unicode-match-property-value-ecmascript: 2.1.0 + regjsparser@0.10.0: + dependencies: + jsesc: 0.5.0 + regjsparser@0.9.1: dependencies: jsesc: 0.5.0 @@ -14893,8 +15059,7 @@ snapshots: '@types/node-forge': 1.3.11 node-forge: 1.3.1 - semver@5.7.2: - optional: true + semver@5.7.2: {} semver@6.3.1: {} @@ -15521,6 +15686,10 @@ snapshots: type-fest@0.21.3: {} + type-fest@0.6.0: {} + + type-fest@0.8.1: {} + type-fest@2.19.0: {} type-fest@3.13.1: {}