From 70ca023941a5d0db02d992ed30f9b12677157f63 Mon Sep 17 00:00:00 2001 From: Drew Davis Date: Wed, 18 Nov 2026 20:11:21 -0500 Subject: [PATCH 1/2] ci: Migrate from eslint to oxlint --- .claude/skills/refactor-component/SKILL.md | 2 +- .github/workflows/main.yml | 4 +- .oxlintrc.json | 18 + .prettierrc | 2 - .vscode/extensions.json | 2 +- .vscode/settings.json | 12 +- agent_docs/code_style.md | 2 +- agent_docs/development.md | 2 +- docker/hyperdx/Dockerfile | 2 +- knip.json | 1 - nx.json | 8 +- oxlint/base.jsonc | 143 ++ oxlint/react-hook-form-plugin.mjs | 8 + package.json | 15 +- packages/api/.oxlintrc.json | 98 + packages/api/eslint.config.mjs | 126 -- packages/api/package.json | 4 +- packages/app/.oxlintrc.json | 315 +++ packages/app/.prettierignore | 5 + packages/app/Dockerfile | 2 +- packages/app/eslint.config.mjs | 287 --- packages/app/package.json | 16 +- packages/app/src/BenchmarkPage.tsx | 2 - packages/app/src/DBDashboardPage.tsx | 2 +- packages/app/src/DBSearchPage.tsx | 1 - packages/app/src/SessionSidePanel.tsx | 2 +- packages/app/src/components/DBInfraPanel.tsx | 2 +- .../app/src/components/DBRowOverviewPanel.tsx | 2 +- .../app/src/components/DBRowSidePanel.tsx | 1 - .../app/src/components/KubeComponents.tsx | 4 +- .../src/components/TimePicker/TimePicker.tsx | 1 - .../__tests__/ContextSidePanel.test.tsx | 1 - .../__tests__/DBNumberChart.test.tsx | 1 - .../app/src/components/aiSummarize/helpers.ts | 1 - .../app/src/components/alerts/AckAlert.tsx | 1 - .../components/alerts/AlertHistoryCards.tsx | 2 +- packages/app/src/config.ts | 1 - .../app/src/hooks/useDashboardRefresh.tsx | 1 - packages/app/src/hooks/useMetricNames.ts | 1 - packages/app/src/timeQuery.ts | 7 +- packages/app/src/timeZone.ts | 2 - packages/app/src/utils/alerts.ts | 2 - packages/app/src/utils/csv.ts | 1 - packages/cli/.oxlintrc.json | 29 + packages/cli/eslint.config.mjs | 77 - packages/cli/package.json | 2 +- packages/common-utils/.oxlintrc.json | 85 + packages/common-utils/eslint.config.mjs | 110 - packages/common-utils/package.json | 4 +- packages/hdx-eval/.oxlintrc.json | 26 + packages/hdx-eval/eslint.config.mjs | 73 - packages/hdx-eval/package.json | 4 +- ...ings.test.mjs => oxlint-warnings.test.mjs} | 85 +- scripts/ci/__tests__/ratchet.test.mjs | 36 +- ...slint-warnings.mjs => oxlint-warnings.mjs} | 157 +- scripts/ci/ratchet-baseline.json | 2 +- scripts/ci/ratchet.mjs | 3 +- yarn.lock | 1832 +++++------------ 58 files changed, 1532 insertions(+), 2105 deletions(-) create mode 100644 .oxlintrc.json create mode 100644 oxlint/base.jsonc create mode 100644 oxlint/react-hook-form-plugin.mjs create mode 100644 packages/api/.oxlintrc.json delete mode 100644 packages/api/eslint.config.mjs create mode 100644 packages/app/.oxlintrc.json create mode 100644 packages/app/.prettierignore delete mode 100644 packages/app/eslint.config.mjs create mode 100644 packages/cli/.oxlintrc.json delete mode 100644 packages/cli/eslint.config.mjs create mode 100644 packages/common-utils/.oxlintrc.json delete mode 100644 packages/common-utils/eslint.config.mjs create mode 100644 packages/hdx-eval/.oxlintrc.json delete mode 100644 packages/hdx-eval/eslint.config.mjs rename scripts/ci/__tests__/{eslint-warnings.test.mjs => oxlint-warnings.test.mjs} (57%) rename scripts/ci/{eslint-warnings.mjs => oxlint-warnings.mjs} (61%) diff --git a/.claude/skills/refactor-component/SKILL.md b/.claude/skills/refactor-component/SKILL.md index fbd9fb1405..28788a39b3 100644 --- a/.claude/skills/refactor-component/SKILL.md +++ b/.claude/skills/refactor-component/SKILL.md @@ -178,7 +178,7 @@ cd packages/app && yarn ci:unit # Unit tests (or the appropriate package) make e2e # E2E tests — re-run the same tests from step 1 to catch regressions ``` -If lint fails with import-sort or formatting errors, run `npx eslint --fix ` on the affected files and re-check. If there are unused-import warnings, remove the unused imports manually. +If lint fails with import-sort or formatting errors, run `npx oxlint --fix ` and `npx prettier --write ` from the package directory and re-check. If there are unused-import warnings, remove the unused imports manually. If an E2E test fails, investigate whether the failure is related to the refactoring (e.g. a broken import path at runtime) or a pre-existing flake. Fix refactoring-related failures before presenting the result. The E2E tests identified in step 1 are the most important — if those pass, the refactor is safe. diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54520c2bfc..2761e4259b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,10 +55,10 @@ jobs: # Whole-repo escape-hatch ratchet — runs unconditionally (not via `nx # affected`, and not via `make ci-lint`, which this job no longer calls), # so the gate can't be silently skipped for a PR that touches few projects. - - name: Escape-hatch ratchet and ESLint wrapper tests + - name: Escape-hatch ratchet and lint wrapper tests run: node --test scripts/ci/__tests__/ratchet.test.mjs - scripts/ci/__tests__/eslint-warnings.test.mjs + scripts/ci/__tests__/oxlint-warnings.test.mjs # Also unconditional, and against the PR's own tree. claude-code-review.yml # runs this file too, but from a base-branch checkout, so a PR that breaks # what it pins (the AGENTS.md heading every review footer links to) passes diff --git a/.oxlintrc.json b/.oxlintrc.json new file mode 100644 index 0000000000..f92e7ebeee --- /dev/null +++ b/.oxlintrc.json @@ -0,0 +1,18 @@ +// Only here so that oxlint run from the repo root (editors, lint-staged) +// accepts the options below, which oxlint reads from the top-level config +// only. Packages get their rules, and the same options, from their own +// .oxlintrc.json via oxlint/base.jsonc. Files outside a package are not linted. +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "options": { "typeAware": true, "reportUnusedDisableDirectives": "warn" }, + "plugins": [], + "categories": { + "correctness": "off", + "suspicious": "off", + "pedantic": "off", + "perf": "off", + "style": "off", + "restriction": "off", + "nursery": "off" + } +} diff --git a/.prettierrc b/.prettierrc index 4cde60c965..30b5a54251 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,8 +6,6 @@ "singleQuote": true, "trailingComma": "all", "bracketSpacing": true, - "jsxBracketSameLine": false, - "fluid": false, "arrowParens": "avoid", "proseWrap": "always" } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fd082d6023..c0945d6142 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,7 +3,7 @@ "vunguyentuan.vscode-css-variables", "clinyong.vscode-css-modules", "streetsidesoftware.code-spell-checker", - "dbaeumer.vscode-eslint", + "oxc.oxc-vscode", "stylelint.vscode-stylelint", "esbenp.prettier-vscode" ] diff --git a/.vscode/settings.json b/.vscode/settings.json index 8760e4354a..43789f5da6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,15 +4,14 @@ "editor.detectIndentation": false, "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": "always", + "source.fixAll.oxc": "always", "source.fixAll.stylelint": "always" }, - "eslint.useFlatConfig": true, "[typescript]": { - "editor.defaultFormatter": "dbaeumer.vscode-eslint" + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": { - "editor.defaultFormatter": "dbaeumer.vscode-eslint" + "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[scss]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" @@ -20,11 +19,6 @@ "[css]": { "editor.defaultFormatter": "stylelint.vscode-stylelint" }, - "eslint.workingDirectories": [ - { - "mode": "auto" - } - ], "stylelint.validate": ["css", "postcss", "scss"], "cssVariables.lookupFiles": [ "**/*.css", diff --git a/agent_docs/code_style.md b/agent_docs/code_style.md index 16b4836eb1..3f24037b2f 100644 --- a/agent_docs/code_style.md +++ b/agent_docs/code_style.md @@ -173,7 +173,7 @@ The project uses Mantine UI with **custom variants** defined in `packages/app/sr ``` -This pattern cannot be enforced by ESLint and requires manual code review. +This pattern cannot be enforced by the linter and requires manual code review. ### Semantic component variants (Alert / Text / danger controls) diff --git a/agent_docs/development.md b/agent_docs/development.md index e7feee067f..71fe4e4d03 100644 --- a/agent_docs/development.md +++ b/agent_docs/development.md @@ -269,7 +269,7 @@ does not overlap with CI integration tests (14320-40098) or the dev stack The project uses Husky + lint-staged to automatically run: - Prettier for formatting -- ESLint for linting +- oxlint for linting (each file with its package's `.oxlintrc.json`) - API doc generation (for external API changes) These run automatically on `git commit` for staged files. diff --git a/docker/hyperdx/Dockerfile b/docker/hyperdx/Dockerfile index a57caf91f7..87f4783c47 100644 --- a/docker/hyperdx/Dockerfile +++ b/docker/hyperdx/Dockerfile @@ -53,7 +53,7 @@ COPY .yarnrc.yml yarn.lock package.json nx.json .prettierrc .prettierignore ./ts # full source is copied in the build stages that need it. COPY ./packages/common-utils/package.json ./packages/common-utils/package.json COPY ./packages/api/jest.config.js ./packages/api/tsconfig.json ./packages/api/tsconfig.build.json ./packages/api/package.json ./packages/api/ -COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/mdx.d.ts ./packages/app/css.d.ts ./packages/app/eslint.config.mjs ./packages/app/ +COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/mdx.d.ts ./packages/app/css.d.ts ./packages/app/ # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat diff --git a/knip.json b/knip.json index 9b98eb5c9f..a636d8d8fa 100644 --- a/knip.json +++ b/knip.json @@ -12,7 +12,6 @@ "project": ["src/**/*.{ts,tsx}", "pages/**/*.{ts,tsx}"], "ignore": [".storybook/public/**"], "ignoreDependencies": [ - "eslint-config-next", "@chromatic-com/storybook", "@storybook/addon-themes", "react-is" diff --git a/nx.json b/nx.json index a0cba57eee..547da0624a 100644 --- a/nx.json +++ b/nx.json @@ -27,8 +27,10 @@ "inputs": [ "default", "^production", - // Each package's `lint` runs ESLint through this wrapper. - "{workspaceRoot}/scripts/ci/eslint-warnings.mjs", + // Each package's `lint` runs oxlint through this wrapper, and every + // package config extends the shared base and local plugins here. + "{workspaceRoot}/scripts/ci/oxlint-warnings.mjs", + "{workspaceRoot}/oxlint/**/*", { "runtime": "node --version" } ] }, @@ -75,7 +77,7 @@ "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", "!{projectRoot}/tsconfig.spec.json", "!{projectRoot}/jest.config.[jt]s", - "!{projectRoot}/eslint.config.mjs" + "!{projectRoot}/.oxlintrc.json" ], "sharedGlobals": [ "{workspaceRoot}/tsconfig.base.json", diff --git a/oxlint/base.jsonc b/oxlint/base.jsonc new file mode 100644 index 0000000000..4973a7d151 --- /dev/null +++ b/oxlint/base.jsonc @@ -0,0 +1,143 @@ +// Rules every package shares. Mirrors what ESLint got from +// `@eslint/js` recommended + `typescript-eslint` recommended (as applied to +// .ts/.tsx files, i.e. after typescript-eslint's `eslint-recommended` +// disables the checks tsc already does) minus the formatting rules +// `eslint-config-prettier` turned off, plus the overrides every package set. +// Packages extend this and add their own plugins and rules. +{ + "$schema": "../node_modules/oxlint/configuration_schema.json", + // Start from nothing so the enabled set is exactly the list below. + // Also set in the repo-root .oxlintrc.json: oxlint reads options only from + // the top-level config, which is this file (via extends) when run from a + // package and the root one when run from the repo root. + "options": { "typeAware": true, "reportUnusedDisableDirectives": "warn" }, + "plugins": ["eslint", "typescript"], + "categories": { + "correctness": "off", + "suspicious": "off", + "pedantic": "off", + "perf": "off", + "style": "off", + "restriction": "off", + "nursery": "off", + }, + "rules": { + // @eslint/js recommended + "for-direction": "error", + "no-async-promise-executor": "error", + "no-case-declarations": "error", + "no-compare-neg-zero": "error", + "no-cond-assign": ["error", "except-parens"], + "no-constant-binary-expression": "error", + "no-constant-condition": ["error", { "checkLoops": "allExceptWhileTrue" }], + "no-control-regex": "error", + "no-debugger": "error", + "no-delete-var": "error", + "no-dupe-else-if": "error", + "no-duplicate-case": "error", + "no-empty": ["error", { "allowEmptyCatch": false }], + "no-empty-character-class": "error", + "no-empty-pattern": "error", + "no-empty-static-block": "error", + "no-ex-assign": "error", + "no-extra-boolean-cast": "error", + "no-fallthrough": "error", + "no-global-assign": "error", + "no-invalid-regexp": "error", + "no-irregular-whitespace": "error", + "no-loss-of-precision": "error", + "no-misleading-character-class": "error", + "no-nonoctal-decimal-escape": "error", + "no-prototype-builtins": "error", + "no-regex-spaces": "error", + "no-self-assign": ["error", { "props": true }], + "no-shadow-restricted-names": "error", + "no-sparse-arrays": "error", + "no-unsafe-finally": "error", + "no-unsafe-optional-chaining": "error", + "no-unused-labels": "error", + "no-unused-private-class-members": "error", + "no-useless-backreference": "error", + "no-useless-catch": "error", + "no-useless-escape": "error", + "require-yield": "error", + "use-isnan": "error", + "valid-typeof": "error", + // typescript-eslint eslint-recommended (turned on for .ts files) + "no-var": "error", + "prefer-const": ["error", { "destructuring": "any" }], + "prefer-rest-params": "error", + "prefer-spread": "error", + // typescript-eslint recommended + "typescript/ban-ts-comment": "error", + "no-array-constructor": "error", + "typescript/no-duplicate-enum-values": "error", + "typescript/no-empty-object-type": "error", + "typescript/no-extra-non-null-assertion": "error", + "typescript/no-misused-new": "error", + "typescript/no-namespace": "error", + "typescript/no-non-null-asserted-optional-chain": "error", + "typescript/no-require-imports": "error", + "typescript/no-this-alias": "error", + "typescript/no-unnecessary-type-constraint": "error", + "typescript/no-unsafe-declaration-merging": "error", + "typescript/no-unsafe-function-type": "error", + "no-unused-expressions": "error", + "typescript/no-wrapper-object-types": "error", + "typescript/prefer-as-const": "error", + "typescript/prefer-namespace-keyword": "error", + "typescript/triple-slash-reference": "error", + // Shared overrides + "no-unused-vars": [ + "error", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + // typescript-eslint reports a value only referenced in `typeof`. + "reportVarsOnlyUsedAsTypes": true, + }, + ], + "no-restricted-imports": [ + "error", + { + "patterns": [ + { + "regex": "^\\.\\.(/|$)", + "message": "Use the @/ path alias instead of parent-relative imports (../).", + }, + ], + }, + ], + }, + "overrides": [ + { + // typescript-eslint's `eslint-recommended` turns these off for TS files + // because tsc reports them, and turns no-var/prefer-* on. Plain JS files + // keep the @eslint/js defaults. + "files": ["**/*.{js,jsx,mjs,cjs}"], + "rules": { + "constructor-super": "error", + "getter-return": "error", + "no-class-assign": "error", + "no-const-assign": "error", + "no-dupe-class-members": "error", + "no-dupe-keys": "error", + "no-func-assign": "error", + "no-import-assign": "error", + "no-new-native-nonconstructor": "error", + "no-obj-calls": "error", + "no-redeclare": ["error", { "builtinGlobals": true }], + "no-setter-return": "error", + "no-this-before-super": "error", + "no-undef": "error", + "no-unreachable": "error", + "no-unsafe-negation": "error", + "no-with": "error", + "no-var": "off", + "prefer-const": "off", + "prefer-rest-params": "off", + "prefer-spread": "off", + }, + }, + ], +} diff --git a/oxlint/react-hook-form-plugin.mjs b/oxlint/react-hook-form-plugin.mjs new file mode 100644 index 0000000000..1581183f54 --- /dev/null +++ b/oxlint/react-hook-form-plugin.mjs @@ -0,0 +1,8 @@ +/** + * eslint-plugin-react-hook-form still calls the ESLint 8 `context.getScope()`, + * which neither ESLint 9 nor oxlint provides. `fixupPluginRules` adds it back. + */ +import { fixupPluginRules } from '@eslint/compat'; +import reactHookForm from 'eslint-plugin-react-hook-form'; + +export default fixupPluginRules(reactHookForm); diff --git a/package.json b/package.json index 965f56f742..6752e6a87e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "devDependencies": { "@changesets/cli": "^2.26.2", "@dotenvx/dotenvx": "^1.51.1", - "@eslint/js": "^9.39.1", + "@eslint/compat": "^2.0.0", "@types/ungap__structured-clone": "^1.2.0", "@ungap/structured-clone": "^1.3.0", "babel-plugin-react-compiler": "^1.0.0", @@ -18,9 +18,8 @@ "dotenv-cli": "^8.0.0", "dotenv-expand": "^12.0.1", "eslint": "^9.39.1", - "eslint-config-prettier": "^9.1.0", "eslint-plugin-n": "^16.4.0", - "eslint-plugin-prettier": "^5.2.1", + "eslint-plugin-react-hook-form": "^0.3.1", "eslint-plugin-security": "^3.0.1", "eslint-plugin-simple-import-sort": "^12.1.1", "husky": "^8.0.3", @@ -28,9 +27,11 @@ "knip": "^6.19.0", "lint-staged": "^13.1.2", "nx": "23.3.2", + "oxlint": "^1.92.0", + "oxlint-plugin-eslint": "^1.93.0", + "oxlint-tsgolint": "^7.0.2006", "prettier": "3.3.3", - "tslib": "^2.6.0", - "typescript-eslint": "^8.46.0" + "tslib": "^2.6.0" }, "scripts": { "setup": "yarn install && husky install", @@ -60,12 +61,12 @@ "lint-staged": { "packages/api/src/{routers/external-api/**/*.ts,utils/swagger.ts}": [ "prettier --write --ignore-unknown", - "node scripts/ci/eslint-warnings.mjs --staged --flag v10_config_lookup_from_file --fix", + "node scripts/ci/oxlint-warnings.mjs --staged --fix", "sh -c 'cd packages/api && yarn run lint:openapi && git add openapi.json'" ], "**/*.{ts,tsx}": [ "prettier --write --ignore-unknown", - "node scripts/ci/eslint-warnings.mjs --staged --flag v10_config_lookup_from_file --fix" + "node scripts/ci/oxlint-warnings.mjs --staged --fix" ], "**/*.{mdx,json,yml}": [ "prettier --write --ignore-unknown" diff --git a/packages/api/.oxlintrc.json b/packages/api/.oxlintrc.json new file mode 100644 index 0000000000..1de5c83596 --- /dev/null +++ b/packages/api/.oxlintrc.json @@ -0,0 +1,98 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": ["../../oxlint/base.jsonc"], + "jsPlugins": [ + "eslint-plugin-n", + "eslint-plugin-security", + "eslint-plugin-simple-import-sort" + ], + "globals": { + "console": "readonly", + "process": "readonly", + "module": "readonly", + "require": "readonly", + "__dirname": "readonly", + "__filename": "readonly", + "exports": "readonly", + "Buffer": "readonly", + "setTimeout": "readonly", + "clearTimeout": "readonly", + "setInterval": "readonly", + "clearInterval": "readonly", + "setImmediate": "readonly", + "clearImmediate": "readonly", + "global": "readonly" + }, + "ignorePatterns": [ + "node_modules/**", + "build/**", + "dist/**", + "coverage/**", + "src/coverage/**", + "migrations/**", + "migrate-mongo-config.ts", + "**/*.config.js", + "**/*.config.mjs", + "jest.config.js", + "jest.setup.ts" + ], + "rules": { + "typescript/no-empty-object-type": "error", + "typescript/no-floating-promises": "error", + "typescript/no-unsafe-type-assertion": "warn", + "typescript/no-namespace": "error", + "n/no-deprecated-api": "error", + "n/no-exports-assign": "error", + "n/no-extraneous-import": "error", + "n/no-extraneous-require": "error", + "n/no-missing-require": [ + "error", + { + "tryExtensions": [".js", ".ts", ".json"] + } + ], + "n/no-process-exit": "error", + "n/no-unpublished-bin": "error", + "n/no-unpublished-import": [ + "error", + { + "allowModules": ["mongodb", "supertest"] + } + ], + "n/no-unpublished-require": "error", + "n/no-unsupported-features/es-builtins": "error", + "n/no-unsupported-features/es-syntax": [ + "error", + { + "ignores": ["modules"] + } + ], + "n/no-unsupported-features/node-builtins": "error", + "n/process-exit-as-throw": "error", + "n/shebang": "error", + "security/detect-bidi-characters": "warn", + "security/detect-buffer-noassert": "warn", + "security/detect-child-process": "warn", + "security/detect-disable-mustache-escape": "warn", + "security/detect-eval-with-expression": "warn", + "security/detect-new-buffer": "warn", + "security/detect-no-csrf-before-method-override": "warn", + "security/detect-non-literal-fs-filename": "warn", + "security/detect-non-literal-regexp": "warn", + "security/detect-non-literal-require": "warn", + "security/detect-object-injection": "warn", + "security/detect-possible-timing-attacks": "warn", + "security/detect-pseudoRandomBytes": "warn", + "security/detect-unsafe-regex": "warn", + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" + }, + "overrides": [ + { + "files": ["src/index.ts", "src/tasks/index.ts"], + "rules": { + "n/no-process-exit": "off" + } + } + ] +} diff --git a/packages/api/eslint.config.mjs b/packages/api/eslint.config.mjs deleted file mode 100644 index e5dfaa9697..0000000000 --- a/packages/api/eslint.config.mjs +++ /dev/null @@ -1,126 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import prettierConfig from 'eslint-config-prettier'; -import prettierPlugin from 'eslint-plugin-prettier'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; -import nodePlugin from 'eslint-plugin-n'; -import securityPlugin from 'eslint-plugin-security'; - -export default [ - js.configs.recommended, - ...tseslint.configs.recommended, - prettierConfig, - { - ignores: [ - 'node_modules/**', - 'build/**', - 'dist/**', - 'coverage/**', - 'src/coverage/**', - 'migrations/**', - 'migrate-mongo-config.ts', - '**/*.config.js', - '**/*.config.mjs', - 'jest.config.js', - 'jest.setup.ts', - ], - }, - { - files: ['src/**/*.ts', '!migrations/**'], - plugins: { - '@typescript-eslint': tseslint.plugin, - 'simple-import-sort': simpleImportSort, - prettier: prettierPlugin, - n: nodePlugin, - security: securityPlugin, - }, - rules: { - ...nodePlugin.configs.recommended.rules, - ...securityPlugin.configs['recommended-legacy'].rules, - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/no-empty-interface': 'off', - '@typescript-eslint/no-empty-object-type': 'error', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-unsafe-type-assertion': 'warn', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], - 'n/no-missing-require': [ - 'error', - { - tryExtensions: ['.js', '.ts', '.json'], - }, - ], - 'n/no-process-exit': 'error', - 'n/no-missing-import': 'off', - 'n/no-unpublished-import': [ - 'error', - { - allowModules: ['mongodb', 'supertest'], - }, - ], - 'n/no-unsupported-features/es-syntax': [ - 'error', - { - ignores: ['modules'], - }, - ], - 'prettier/prettier': 'error', - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', - 'no-restricted-imports': [ - 'error', - { - patterns: [ - { - regex: '^\\.\\.(/|$)', - message: - 'Use the @/ path alias instead of parent-relative imports (../).', - }, - ], - }, - ], - }, - languageOptions: { - parser: tseslint.parser, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: './tsconfig.json', - tsconfigRootDir: import.meta.dirname, - }, - globals: { - console: 'readonly', - process: 'readonly', - module: 'readonly', - require: 'readonly', - __dirname: 'readonly', - __filename: 'readonly', - exports: 'readonly', - Buffer: 'readonly', - setTimeout: 'readonly', - clearTimeout: 'readonly', - setInterval: 'readonly', - clearInterval: 'readonly', - setImmediate: 'readonly', - clearImmediate: 'readonly', - global: 'readonly', - }, - }, - }, - { - // Process entry points and the CLI task runner: exiting with a status code - // on startup failure, task completion, or a last-resort uncaught-exception - // handler is the intended behavior here. - files: ['src/index.ts', 'src/tasks/index.ts'], - rules: { - 'n/no-process-exit': 'off', - }, - }, -]; diff --git a/packages/api/package.json b/packages/api/package.json index cc59dfd67d..2dd6b98693 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -106,8 +106,8 @@ "dev-task": "DOTENV_CONFIG_PATH=.env.development nodemon --exec 'ts-node' --transpile-only -r tsconfig-paths/register -r dotenv-expand/config -r ./src/telemetry.ts ./src/tasks/index.ts", "build": "rimraf ./build && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && cp -r ./src/opamp/proto ./build/opamp/", "build:vercel": "rimraf ./build && tsc -p tsconfig.vercel.json && tsc-alias -p tsconfig.vercel.json && cp -r ./src/opamp/proto ./build/opamp/", - "lint": "node ../../scripts/ci/eslint-warnings.mjs . --ext .ts --max-warnings 302", - "lint:fix": "npx eslint . --ext .ts --fix", + "lint": "node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 302 && yarn run -T prettier --check --log-level warn 'src/**/*.ts' 'scripts/**/*.ts'", + "lint:fix": "yarn run -T oxlint --fix && yarn run -T prettier --write --log-level warn 'src/**/*.ts' 'scripts/**/*.ts'", "ci:lint": "yarn lint && yarn tsc --noEmit && yarn lint:openapi", "ci:unit": "jest --ci --coverage", "dev:unit": "jest --watch", diff --git a/packages/app/.oxlintrc.json b/packages/app/.oxlintrc.json new file mode 100644 index 0000000000..33d6fc961b --- /dev/null +++ b/packages/app/.oxlintrc.json @@ -0,0 +1,315 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": ["../../oxlint/base.jsonc"], + "plugins": ["eslint", "typescript", "react", "nextjs"], + // ESLint plugins oxlint has no native port for. The @eslint-react + // sub-plugins keep the names ESLint registered them under, so existing + // `eslint-disable` comments still match. + "jsPlugins": [ + { + "name": "@eslint-react", + "specifier": "eslint-plugin-react-x" + }, + { + "name": "@eslint-react/dom", + "specifier": "eslint-plugin-react-dom" + }, + { + "name": "@eslint-react/web-api", + "specifier": "eslint-plugin-react-web-api" + }, + { + "name": "@eslint-react/naming-convention", + "specifier": "eslint-plugin-react-naming-convention" + }, + { + "name": "@eslint-react/rsc", + "specifier": "eslint-plugin-react-rsc" + }, + // Only for no-location-assign-relative-destination; every other + // @next/next rule is native (`nextjs/`). + { + "name": "next-js", + "specifier": "@next/eslint-plugin-next" + }, + { + "name": "react-hook-form", + "specifier": "../../oxlint/react-hook-form-plugin.mjs" + }, + "eslint-plugin-simple-import-sort", + "eslint-plugin-playwright", + "eslint-plugin-storybook", + // ESLint's own no-restricted-syntax; oxlint has no native port. + { "name": "eslint-js", "specifier": "oxlint-plugin-eslint" } + ], + "globals": { + "React": "readonly", + "JSX": "readonly", + "NodeJS": "readonly", + "window": "readonly", + "document": "readonly", + "navigator": "readonly", + "console": "readonly", + "setTimeout": "readonly", + "clearTimeout": "readonly", + "setInterval": "readonly", + "clearInterval": "readonly", + "fetch": "readonly", + "process": "readonly", + "module": "readonly", + "require": "readonly", + "__dirname": "readonly", + "__filename": "readonly", + "exports": "readonly", + "Buffer": "readonly" + }, + "ignorePatterns": [ + "next-env.d.ts", + "playwright-report/**", + ".next/**", + ".next-e2e/**", + ".storybook/**", + "storybook-static/**", + "node_modules/**", + "out/**", + "build/**", + "coverage/**", + "dist/**", + "**/*.config.js", + "**/*.config.ts", + "**/*.config.cjs", + "**/*.config.mjs", + "public/__ENV.js", + "public/pyodide/**", + "global-setup.js", + "scripts/**" + ], + "rules": { + "typescript/no-unsafe-function-type": "warn", + "typescript/no-unsafe-type-assertion": "warn", + "no-unused-expressions": "warn", + "no-console": [ + "error", + { + "allow": ["warn", "error"] + } + ], + "nextjs/google-font-display": "warn", + "nextjs/google-font-preconnect": "warn", + "nextjs/next-script-for-ga": "warn", + "nextjs/no-async-client-component": "warn", + "nextjs/no-before-interactive-script-outside-document": "warn", + "nextjs/no-css-tags": "warn", + "nextjs/no-head-element": "warn", + "nextjs/no-html-link-for-pages": "error", + "nextjs/no-img-element": "warn", + "next-js/no-location-assign-relative-destination": "warn", + "nextjs/no-page-custom-font": "warn", + "nextjs/no-styled-jsx-in-document": "warn", + "nextjs/no-sync-scripts": "error", + "nextjs/no-title-in-document-head": "warn", + "nextjs/no-typos": "warn", + "nextjs/no-unwanted-polyfillio": "warn", + "nextjs/inline-script-id": "error", + "nextjs/no-assign-module-variable": "error", + "nextjs/no-document-import-in-page": "error", + "nextjs/no-duplicate-head": "error", + "nextjs/no-head-import-in-document": "error", + "nextjs/no-script-component-in-head": "error", + "@eslint-react/jsx-key-before-spread": "warn", + "@eslint-react/jsx-no-comment-textnodes": "warn", + "@eslint-react/no-access-state-in-setstate": "error", + "@eslint-react/no-array-index-key": "warn", + "@eslint-react/no-children-count": "warn", + "@eslint-react/no-children-for-each": "warn", + "@eslint-react/no-children-map": "warn", + "@eslint-react/no-children-only": "warn", + "@eslint-react/no-children-to-array": "warn", + "@eslint-react/no-clone-element": "warn", + "@eslint-react/no-component-will-mount": "error", + "@eslint-react/no-component-will-receive-props": "error", + "@eslint-react/no-component-will-update": "error", + "@eslint-react/no-context-provider": "error", + "@eslint-react/no-create-ref": "error", + "@eslint-react/no-direct-mutation-state": "error", + "@eslint-react/no-forward-ref": "error", + "@eslint-react/no-missing-key": "error", + "@eslint-react/no-redundant-should-component-update": "error", + "@eslint-react/no-set-state-in-component-did-mount": "warn", + "@eslint-react/no-set-state-in-component-did-update": "warn", + "@eslint-react/no-set-state-in-component-will-update": "warn", + "@eslint-react/no-unsafe-component-will-mount": "warn", + "@eslint-react/no-unsafe-component-will-receive-props": "warn", + "@eslint-react/no-unsafe-component-will-update": "warn", + "@eslint-react/no-unnecessary-use-prefix": "warn", + "@eslint-react/no-unused-class-component-members": "warn", + "@eslint-react/no-use-context": "error", + "@eslint-react/use-state": "warn", + "@eslint-react/rsc/function-definition": "error", + "@eslint-react/dom/no-dangerously-set-innerhtml": "warn", + "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error", + "@eslint-react/dom/no-find-dom-node": "error", + "@eslint-react/dom/no-flush-sync": "error", + "@eslint-react/dom/no-hydrate": "error", + "@eslint-react/dom/no-namespace": "error", + "@eslint-react/dom/no-render": "error", + "@eslint-react/dom/no-render-return-value": "error", + "@eslint-react/dom/no-script-url": "warn", + "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn", + "@eslint-react/dom/no-use-form-state": "error", + "@eslint-react/dom/no-void-elements-with-children": "error", + "@eslint-react/web-api/no-leaked-event-listener": "warn", + "@eslint-react/web-api/no-leaked-interval": "warn", + "@eslint-react/web-api/no-leaked-resize-observer": "warn", + "@eslint-react/web-api/no-leaked-timeout": "warn", + "@eslint-react/naming-convention/context-name": "warn", + "@eslint-react/naming-convention/id-name": "warn", + "@eslint-react/naming-convention/ref-name": "error", + "@eslint-react/no-unstable-default-props": "error", + "react-hook-form/no-use-watch": "error", + "simple-import-sort/exports": "error", + "simple-import-sort/imports": [ + 2, + { + "groups": [ + ["^react$", "^next", "^[a-z]", "^@"], + ["^@/"], + ["^\\.\\.(?!/?$)", "^\\.\\./?$"], + ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], + ["^.+\\.s?css$"], + ["^\\u0000"] + ] + } + ], + "react/rules-of-hooks": "error", + "react/exhaustive-deps": "error", + "react/static-components": "error", + "react/use-memo": "error", + "react/preserve-manual-memoization": "error", + "react/incompatible-library": "warn", + "react/immutability": "error", + "react/globals": "error", + "react/refs": "error", + "react/set-state-in-effect": "warn", + "react/error-boundaries": "error", + "react/purity": "error", + "react/set-state-in-render": "error", + "react/unsupported-syntax": "warn", + "eslint-js/no-restricted-syntax": [ + "error", + { + "selector": "Literal[value=/\\bbi-\\b/i]", + "message": "Please update to use @tabler/icons-react instead" + }, + { + "selector": "JSXElement[openingElement.name.name=\"Button\"] JSXAttribute[name.name=\"variant\"][value.value=\"light\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for Button. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"Button\"] JSXAttribute[name.name=\"variant\"][value.value=\"filled\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for Button. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"Button\"] JSXAttribute[name.name=\"variant\"][value.value=\"outline\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for Button. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"Button\"] JSXAttribute[name.name=\"variant\"][value.value=\"default\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for Button. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"ActionIcon\"] JSXAttribute[name.name=\"variant\"][value.value=\"light\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for ActionIcon. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"ActionIcon\"] JSXAttribute[name.name=\"variant\"][value.value=\"filled\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for ActionIcon. See agent_docs/code_style.md" + }, + { + "selector": "JSXElement[openingElement.name.name=\"ActionIcon\"] JSXAttribute[name.name=\"variant\"][value.value=\"outline\"]", + "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for ActionIcon. See agent_docs/code_style.md" + } + ] + // @eslint-react/no-leaked-conditional-rendering is not enabled: it needs + // type information, which oxlint does not give JS plugins. + }, + "overrides": [ + { + "files": ["**/*.{js,jsx}"], + "rules": { + "typescript/no-unsafe-type-assertion": "off" + } + }, + { + "files": ["src/**/__tests__/**/*.{ts,tsx}", "src/**/*.test.{ts,tsx}"], + "rules": { + "@eslint-react/no-unnecessary-use-prefix": "off" + } + }, + { + "files": ["tests/e2e/**/*.{ts,js}"], + "rules": { + "playwright/expect-expect": [ + "warn", + { + "assertFunctionNames": [ + "expectFieldSuggestion", + "expectValueSuggestion", + "expectTileBlockedOn", + "expectTileLoaded" + ] + } + ], + "playwright/max-nested-describe": "warn", + "playwright/missing-playwright-await": "error", + "playwright/no-conditional-expect": "warn", + "playwright/no-conditional-in-test": "warn", + "playwright/no-element-handle": "warn", + "playwright/no-eval": "warn", + "playwright/no-focused-test": "error", + "playwright/no-force-option": "warn", + "playwright/no-nested-step": "warn", + "playwright/no-page-pause": "warn", + "playwright/no-skipped-test": "warn", + "playwright/no-standalone-expect": "error", + "playwright/no-unsafe-references": "error", + "playwright/no-unused-locators": "error", + "playwright/no-useless-await": "warn", + "playwright/no-useless-not": "warn", + "playwright/no-wait-for-navigation": "error", + "playwright/no-wait-for-selector": "warn", + "playwright/no-wait-for-timeout": "warn", + "playwright/prefer-web-first-assertions": "error", + "playwright/valid-describe-callback": "error", + "playwright/valid-expect": "error", + "playwright/valid-expect-in-promise": "error", + "playwright/valid-test-tags": "error", + "playwright/valid-title": "error", + "no-console": "off", + "no-empty": "off", + "no-empty-pattern": "off", + "nextjs/no-html-link-for-pages": "off", + "no-restricted-imports": "off" + } + }, + { + "files": [ + "**/*.stories.{ts,tsx,js,jsx,mjs,cjs}", + "**/*.story.{ts,tsx,js,jsx,mjs,cjs}" + ], + "rules": { + "storybook/await-interactions": "error", + "storybook/context-in-play-function": "error", + "storybook/default-exports": "error", + "storybook/hierarchy-separator": "warn", + "storybook/no-redundant-story-name": "warn", + "storybook/no-renderer-packages": "error", + "storybook/prefer-pascal-case": "warn", + "storybook/story-exports": "error", + "storybook/use-storybook-expect": "error", + "storybook/use-storybook-testing-library": "error", + "react/rules-of-hooks": "off" + } + } + ] +} diff --git a/packages/app/.prettierignore b/packages/app/.prettierignore new file mode 100644 index 0000000000..f13b499ef3 --- /dev/null +++ b/packages/app/.prettierignore @@ -0,0 +1,5 @@ +# Next.js build output. The root ignore files do not apply: prettier reads +# them only from its working directory. +.next +.next-e2e +next-env.d.ts diff --git a/packages/app/Dockerfile b/packages/app/Dockerfile index 8f371d86ca..d5183c55cd 100644 --- a/packages/app/Dockerfile +++ b/packages/app/Dockerfile @@ -9,7 +9,7 @@ COPY .yarnrc.yml yarn.lock package.json nx.json .prettierrc .prettierignore ./ts # Only copy package.json for workspace resolution during yarn install; # full source is copied in the build stages that need it. COPY ./packages/common-utils/package.json ./packages/common-utils/package.json -COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/mdx.d.ts ./packages/app/css.d.ts ./packages/app/eslint.config.mjs ./packages/app/ +COPY ./packages/app/jest.config.js ./packages/app/tsconfig.json ./packages/app/tsconfig.build.json ./packages/app/package.json ./packages/app/next.config.mjs ./packages/app/mdx.d.ts ./packages/app/css.d.ts ./packages/app/ RUN --mount=type=cache,target=/root/.yarn/berry/cache,id=yarn-cache \ yarn install --mode=skip-build && yarn cache clean diff --git a/packages/app/eslint.config.mjs b/packages/app/eslint.config.mjs deleted file mode 100644 index dc9b5188bb..0000000000 --- a/packages/app/eslint.config.mjs +++ /dev/null @@ -1,287 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import storybook from 'eslint-plugin-storybook'; -import nextPlugin from '@next/eslint-plugin-next'; -import eslintReactPlugin from '@eslint-react/eslint-plugin'; -import reactHooksPlugin from 'eslint-plugin-react-hooks'; -import prettierConfig from 'eslint-config-prettier'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; -import prettierPlugin from 'eslint-plugin-prettier/recommended'; -import playwrightPlugin from 'eslint-plugin-playwright'; -import reactHookFormPlugin from 'eslint-plugin-react-hook-form'; -import { fixupPluginRules } from '@eslint/compat'; - -// Kept separate so test overrides can drop just the date rules while keeping -// the UI style rules (bi-icons, Button/ActionIcon variants). -const UI_SYNTAX_RESTRICTIONS = [ - // Temporary rule to enforce use of @tabler/icons-react instead of bi bi-icons - // Will remove after we've updated all icons and let some PRs merge. - { - selector: 'Literal[value=/\\bbi-\\b/i]', - message: 'Please update to use @tabler/icons-react instead', - }, - // Enforce custom Button/ActionIcon variants (see agent_docs/code_style.md) - // NOTE: Icon-only Buttons should use ActionIcon instead - this requires manual review - // as ESLint cannot detect children content patterns - { - selector: - 'JSXElement[openingElement.name.name="Button"] JSXAttribute[name.name="variant"][value.value="light"]', - message: - 'Use variant="primary", "secondary", or "danger" for Button. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="Button"] JSXAttribute[name.name="variant"][value.value="filled"]', - message: - 'Use variant="primary", "secondary", or "danger" for Button. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="Button"] JSXAttribute[name.name="variant"][value.value="outline"]', - message: - 'Use variant="primary", "secondary", or "danger" for Button. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="Button"] JSXAttribute[name.name="variant"][value.value="default"]', - message: - 'Use variant="primary", "secondary", or "danger" for Button. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="ActionIcon"] JSXAttribute[name.name="variant"][value.value="light"]', - message: - 'Use variant="primary", "secondary", or "danger" for ActionIcon. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="ActionIcon"] JSXAttribute[name.name="variant"][value.value="filled"]', - message: - 'Use variant="primary", "secondary", or "danger" for ActionIcon. See agent_docs/code_style.md', - }, - { - selector: - 'JSXElement[openingElement.name.name="ActionIcon"] JSXAttribute[name.name="variant"][value.value="outline"]', - message: - 'Use variant="primary", "secondary", or "danger" for ActionIcon. See agent_docs/code_style.md', - }, -]; - -const DATE_SYNTAX_RESTRICTIONS = [ - { - selector: - 'CallExpression[callee.object.name="Date"][callee.property.name="now"]', - message: - 'Date.now() can cause unnecessary re-renders. Import NOW from @/config for a stable reference, or wrap in useMemo/useCallback for values that must be current.', - }, - { - selector: 'NewExpression[callee.name="Date"][arguments.length=0]', - message: - 'new Date() can cause unnecessary re-renders. Use new Date(NOW) for a stable reference, or wrap in useMemo/useCallback for values that must be current.', - }, -]; - -export default [ - js.configs.recommended, - ...tseslint.configs.recommended, - prettierConfig, - prettierPlugin, - { - ignores: [ - 'next-env.d.ts', - 'playwright-report/**', - '.next/**', - '.next-e2e/**', - '.storybook/**', - 'storybook-static/**', - 'node_modules/**', - 'out/**', - 'build/**', - 'coverage/**', - 'dist/**', - '**/*.config.js', - '**/*.config.ts', - '**/*.config.cjs', - '**/*.config.mjs', - 'eslint.config.mjs', - 'public/__ENV.js', - 'public/pyodide/**', - 'global-setup.js', - 'scripts/**', - ], - }, - { - files: ['**/*.{js,jsx,ts,tsx}'], - plugins: { - '@next/next': nextPlugin, - 'react-hooks': reactHooksPlugin, - 'simple-import-sort': simpleImportSort, - 'react-hook-form': fixupPluginRules(reactHookFormPlugin), // not compatible with eslint 9 yet - ...eslintReactPlugin.configs.recommended.plugins, - }, - rules: { - ...nextPlugin.configs.recommended.rules, - ...nextPlugin.configs['core-web-vitals'].rules, - ...reactHooksPlugin.configs.recommended.rules, - ...eslintReactPlugin.configs['recommended-type-checked'].rules, - - // Non-default react-hooks rules - 'react-hooks/set-state-in-render': 'error', - 'react-hooks/set-state-in-effect': 'warn', - 'react-hooks/exhaustive-deps': 'error', - - // Disable rules from @eslint-react that have equivalent rules enabled in eslint-plugin-react-hooks - '@eslint-react/rules-of-hooks': 'off', - '@eslint-react/component-hook-factories': 'off', - '@eslint-react/exhaustive-deps': 'off', - '@eslint-react/error-boundaries': 'off', - '@eslint-react/immutability': 'off', - '@eslint-react/purity': 'off', - '@eslint-react/refs': 'off', - '@eslint-react/set-state-in-effect': 'off', - '@eslint-react/set-state-in-render': 'off', - '@eslint-react/no-nested-component-definitions': 'off', - '@eslint-react/no-nested-lazy-component-declarations': 'off', - '@eslint-react/unsupported-syntax': 'off', - '@eslint-react/use-memo': 'off', - - 'react-hook-form/no-use-watch': 'error', - '@eslint-react/no-unstable-default-props': 'error', - // React 19 API adoption (all migrated): render instead of - // , use the `use` hook instead of `useContext`, and - // pass `ref` as a regular prop instead of wrapping in forwardRef. - '@eslint-react/no-context-provider': 'error', - '@eslint-react/no-use-context': 'error', - '@eslint-react/no-forward-ref': 'error', - // useRef values must be named `ref` or end in `Ref` for readability. - '@eslint-react/naming-convention/ref-name': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - // Empty no-op functions are common and intentional (test mocks, default - // callback props like onClose/onChange). Flagging them adds noise without - // catching real bugs, so this rule is disabled. - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unsafe-function-type': 'warn', - '@typescript-eslint/no-unsafe-type-assertion': 'warn', - '@typescript-eslint/no-unused-expressions': 'warn', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], - 'simple-import-sort/exports': 'error', - 'simple-import-sort/imports': [ - 'error', - { - groups: [ - ['^react$', '^next', '^[a-z]', '^@'], - ['^@/'], - ['^\\.\\.(?!/?$)', '^\\.\\./?$'], - ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'], - ['^.+\\.s?css$'], - ['^\\u0000'], - ], - }, - ], - 'no-restricted-syntax': [ - 'error', - ...UI_SYNTAX_RESTRICTIONS, - ...DATE_SYNTAX_RESTRICTIONS, - ], - 'no-console': ['error', { allow: ['warn', 'error'] }], - 'no-restricted-imports': [ - 'error', - { - patterns: [ - { - regex: '^\\.\\.(/|$)', - message: - 'Use the @/ path alias instead of parent-relative imports (../).', - }, - ], - }, - ], - }, - languageOptions: { - parser: tseslint.parser, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - ecmaFeatures: { - jsx: true, - }, - project: './tsconfig.json', - tsconfigRootDir: import.meta.dirname, - }, - globals: { - React: 'readonly', - JSX: 'readonly', - NodeJS: 'readonly', - window: 'readonly', - document: 'readonly', - navigator: 'readonly', - console: 'readonly', - setTimeout: 'readonly', - clearTimeout: 'readonly', - setInterval: 'readonly', - clearInterval: 'readonly', - fetch: 'readonly', - process: 'readonly', - module: 'readonly', - require: 'readonly', - __dirname: 'readonly', - __filename: 'readonly', - exports: 'readonly', - Buffer: 'readonly', - }, - }, - }, - { - // Disable type-checked rules for JS files (not part of TypeScript project) - files: ['**/*.{js,jsx}'], - rules: { - '@typescript-eslint/no-unsafe-type-assertion': 'off', - }, - }, - { - files: ['src/**/__tests__/**/*.{ts,tsx}', 'src/**/*.test.{ts,tsx}'], - rules: { - // Drop date rules — new Date() / Date.now() are fine in tests - 'no-restricted-syntax': ['error', ...UI_SYNTAX_RESTRICTIONS], - '@eslint-react/component-hook-factories': 'off', - '@eslint-react/no-unnecessary-use-prefix': 'off', - }, - }, - { - files: ['tests/e2e/**/*.{ts,js}'], - ...playwrightPlugin.configs['flat/recommended'], - rules: { - ...playwrightPlugin.configs['flat/recommended'].rules, - 'no-console': 'off', - 'no-empty': 'off', - '@typescript-eslint/no-explicit-any': 'off', - '@next/next/no-html-link-for-pages': 'off', - 'playwright/no-networkidle': 'off', // temporary until we have a better way to deal with react re-renders - // Shared helpers that assert on our behalf, so a test calling only these - // still counts as having assertions. - 'playwright/expect-expect': [ - 'warn', - { - assertFunctionNames: [ - 'expectFieldSuggestion', - 'expectValueSuggestion', - 'expectTileBlockedOn', - 'expectTileLoaded', - ], - }, - ], - // Drop date rules — Date.now() is fine in e2e tests for unique IDs/timestamps - 'no-restricted-syntax': ['error', ...UI_SYNTAX_RESTRICTIONS], - // e2e tests live outside src/, so no @/ alias reaches sibling test files - 'no-restricted-imports': 'off', - }, - }, - ...storybook.configs['flat/recommended'], -]; diff --git a/packages/app/package.json b/packages/app/package.json index 3c8a9bef4e..e01e44d9c0 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -14,8 +14,8 @@ "build:clickhouse": "NEXT_PUBLIC_IS_LOCAL_MODE=true NEXT_PUBLIC_CLICKHOUSE_BUILD=true next build --webpack && node scripts/prepare-clickhouse-build-export.js", "run:clickhouse": "test -d out && npx rimraf tmp && mkdir tmp && cp -r out tmp/clickstack && echo 'visit http://localhost:3000/clickstack to start' && npx serve tmp -l 3000 || echo 'run build:clickhouse first'", "start": "next start", - "lint": "node ../../scripts/ci/eslint-warnings.mjs . --ext .ts,.tsx --max-warnings 568", - "lint:fix": "npx eslint . --ext .ts,.tsx --fix", + "lint": "node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 576 && yarn run -T prettier --check --log-level warn '**/*.{ts,tsx}'", + "lint:fix": "yarn run -T oxlint --fix && yarn run -T prettier --write --log-level warn '**/*.{ts,tsx}'", "lint:styles": "stylelint **/*/*.{css,scss}", "ci:lint": "yarn lint && yarn tsc --noEmit && yarn lint:styles --quiet", "ci:unit": "jest --ci --coverage", @@ -106,8 +106,6 @@ }, "devDependencies": { "@chromatic-com/storybook": "^4.1.3", - "@eslint-react/eslint-plugin": "^3.0.0", - "@eslint/compat": "^2.0.0", "@next/eslint-plugin-next": "^16.3.4", "@playwright/test": "^1.57.0", "@storybook/addon-docs": "^10.1.4", @@ -133,10 +131,12 @@ "@types/react-dom": "^19.2.3", "@types/react-grid-layout": "^1.3.2", "@types/sqlstring": "^2.3.2", - "eslint-config-next": "^16.3.4", "eslint-plugin-playwright": "^2.4.0", - "eslint-plugin-react-hook-form": "^0.3.1", - "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-dom": "3.0.0", + "eslint-plugin-react-naming-convention": "3.0.0", + "eslint-plugin-react-rsc": "3.0.0", + "eslint-plugin-react-web-api": "3.0.0", + "eslint-plugin-react-x": "3.0.0", "eslint-plugin-storybook": "10.1.4", "identity-obj-proxy": "^3.0.0", "jest": "^30.2.0", @@ -147,7 +147,7 @@ "postcss": "^8.5.23", "postcss-preset-mantine": "^1.18.0", "postcss-simple-vars": "^7.0.0", - "prettier": "^3.3.2", + "prettier": "3.3.3", "rimraf": "^4.4.1", "serve": "^14.0.0", "storybook": "^10.6.2", diff --git a/packages/app/src/BenchmarkPage.tsx b/packages/app/src/BenchmarkPage.tsx index 9a2c689364..7223301a79 100644 --- a/packages/app/src/BenchmarkPage.tsx +++ b/packages/app/src/BenchmarkPage.tsx @@ -198,7 +198,6 @@ function BenchmarkPage() { // Hack to get time range useEffect(() => { if (_queries.length > 0 && _connections.length > 0) { - // eslint-disable-next-line no-restricted-syntax setStartTime(new Date(Date.now() - 1000)); } }, [_queries, _connections]); @@ -207,7 +206,6 @@ function BenchmarkPage() { if (queryIds != null && queryIds[0] != null) { setEndTime( new Date( - // eslint-disable-next-line no-restricted-syntax Date.now() - 1000 * 9, // minus hard-coded flush interval ), ); diff --git a/packages/app/src/DBDashboardPage.tsx b/packages/app/src/DBDashboardPage.tsx index 4296121918..00403f39d5 100644 --- a/packages/app/src/DBDashboardPage.tsx +++ b/packages/app/src/DBDashboardPage.tsx @@ -894,7 +894,7 @@ const Tile = ({ let tooltip = `Has alert and is in ${alert.state} state`; if (alert.silenced?.at) { const silencedAt = new Date(alert.silenced.at); - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity tooltip += `. Ack'd ${formatRelative(silencedAt, new Date())}`; } return tooltip; diff --git a/packages/app/src/DBSearchPage.tsx b/packages/app/src/DBSearchPage.tsx index 768097c321..e9b8678858 100644 --- a/packages/app/src/DBSearchPage.tsx +++ b/packages/app/src/DBSearchPage.tsx @@ -763,7 +763,6 @@ function useLiveUpdate({ const [refreshOnVisible, setRefreshOnVisible] = useState(false); const refresh = useCallback(() => { - // eslint-disable-next-line no-restricted-syntax onTimeRangeSelect(new Date(Date.now() - interval), new Date(), null); }, [onTimeRangeSelect, interval]); diff --git a/packages/app/src/SessionSidePanel.tsx b/packages/app/src/SessionSidePanel.tsx index 69e2bcd05f..ac05121af9 100644 --- a/packages/app/src/SessionSidePanel.tsx +++ b/packages/app/src/SessionSidePanel.tsx @@ -191,7 +191,7 @@ export default function SessionSidePanel({ const timeAgo = useMemo(() => { const maxTime = - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity session != null ? new Date(session?.maxTimestamp) : new Date(); return formatDistanceToNowStrictShort(maxTime); }, [session]); diff --git a/packages/app/src/components/DBInfraPanel.tsx b/packages/app/src/components/DBInfraPanel.tsx index 5e7529826e..e12ba0ee08 100644 --- a/packages/app/src/components/DBInfraPanel.tsx +++ b/packages/app/src/components/DBInfraPanel.tsx @@ -141,7 +141,7 @@ const InfraCorrelationGroup = ({ }[range]; return [ sub(new Date(timestamp), duration), - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity min([add(new Date(timestamp), duration), new Date()]), ]; }, [timestamp, range]); diff --git a/packages/app/src/components/DBRowOverviewPanel.tsx b/packages/app/src/components/DBRowOverviewPanel.tsx index 09ff58c64f..e4cf559f50 100644 --- a/packages/app/src/components/DBRowOverviewPanel.tsx +++ b/packages/app/src/components/DBRowOverviewPanel.tsx @@ -255,7 +255,7 @@ export function RowOverviewPanel({ const hasSpanEvents = useMemo(() => { return ( Array.isArray(firstRow?.__hdx_span_events) && - firstRow?.__hdx_span_events.length > 0 + firstRow?.__hdx_span_events?.length > 0 ); }, [firstRow?.__hdx_span_events]); diff --git a/packages/app/src/components/DBRowSidePanel.tsx b/packages/app/src/components/DBRowSidePanel.tsx index b7fccb9640..d1b9c76df5 100644 --- a/packages/app/src/components/DBRowSidePanel.tsx +++ b/packages/app/src/components/DBRowSidePanel.tsx @@ -541,7 +541,6 @@ export const DBRowSidePanelInner = ({ spanLinkFrameRowIdsRef.current.has(activeRowId) && resolvedFrameLabels[activeRowId] !== mainContent ) { - // eslint-disable-next-line react-hooks/set-state-in-effect setResolvedFrameLabels(prev => ({ ...prev, [activeRowId]: mainContent })); } }, [activeRowId, mainContent, resolvedFrameLabels]); diff --git a/packages/app/src/components/KubeComponents.tsx b/packages/app/src/components/KubeComponents.tsx index 0919763c5d..e2bd69402c 100644 --- a/packages/app/src/components/KubeComponents.tsx +++ b/packages/app/src/components/KubeComponents.tsx @@ -176,12 +176,12 @@ export const KubeTimeline = ({ anchorEvent?: AnchorEvent; }) => { const startDate = React.useMemo( - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity () => dateRange?.[0] ?? sub(new Date(), { days: 1 }), [dateRange], ); const endDate = React.useMemo( - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity () => dateRange?.[1] ?? new Date(), [dateRange], ); diff --git a/packages/app/src/components/TimePicker/TimePicker.tsx b/packages/app/src/components/TimePicker/TimePicker.tsx index 9de4898d33..6a25cfacdb 100644 --- a/packages/app/src/components/TimePicker/TimePicker.tsx +++ b/packages/app/src/components/TimePicker/TimePicker.tsx @@ -156,7 +156,6 @@ const TimePickerComponent = ({ useHotkeys('d', () => toggle(), { preventDefault: true }, [toggle]); - // eslint-disable-next-line no-restricted-syntax const today = React.useMemo(() => new Date(), []); const relativeTimeOptions = React.useMemo(() => { diff --git a/packages/app/src/components/__tests__/ContextSidePanel.test.tsx b/packages/app/src/components/__tests__/ContextSidePanel.test.tsx index 73ad763ce5..604a2c6d6b 100644 --- a/packages/app/src/components/__tests__/ContextSidePanel.test.tsx +++ b/packages/app/src/components/__tests__/ContextSidePanel.test.tsx @@ -33,7 +33,6 @@ jest.mock('@/components/DBRowTable', () => ({ })); jest.mock('@/components/SearchInput/SearchWhereInput', () => { - const React = jest.requireActual('react'); const { useController } = jest.requireActual('react-hook-form'); function MockSearchWhereInput({ diff --git a/packages/app/src/components/__tests__/DBNumberChart.test.tsx b/packages/app/src/components/__tests__/DBNumberChart.test.tsx index f25156d739..9f8de59227 100644 --- a/packages/app/src/components/__tests__/DBNumberChart.test.tsx +++ b/packages/app/src/components/__tests__/DBNumberChart.test.tsx @@ -123,7 +123,6 @@ describe('DBNumberChart', () => { const [numberFormat, setNumberFormat] = React.useState< NumberFormat | undefined >(undefined); - // eslint-disable-next-line react-hooks/globals setNumberFormatFn = setNumberFormat; return ; }; diff --git a/packages/app/src/components/aiSummarize/helpers.ts b/packages/app/src/components/aiSummarize/helpers.ts index 1ff048e28b..b281e28c76 100644 --- a/packages/app/src/components/aiSummarize/helpers.ts +++ b/packages/app/src/components/aiSummarize/helpers.ts @@ -14,7 +14,6 @@ const ALWAYS_ON_END = new Date('2026-04-07T00:00:00').getTime(); const HARD_OFF = new Date('2026-05-01T00:00:00').getTime(); const DISMISS_KEY = 'hdx-ai-summarize-dismissed'; -// eslint-disable-next-line no-restricted-syntax -- one-time module-level check const NOW_MS = new Date().getTime(); function isDismissed(): boolean { diff --git a/packages/app/src/components/alerts/AckAlert.tsx b/packages/app/src/components/alerts/AckAlert.tsx index 44bfdf4dc5..1a403a76d6 100644 --- a/packages/app/src/components/alerts/AckAlert.tsx +++ b/packages/app/src/components/alerts/AckAlert.tsx @@ -55,7 +55,6 @@ export function AckAlert({ alert }: { alert: AlertsPageItem }) { const handleSilenceAlert = React.useCallback( (duration: Duration) => { - // eslint-disable-next-line no-restricted-syntax const mutedUntil = add(new Date(), duration); silenceAlert.mutate( { diff --git a/packages/app/src/components/alerts/AlertHistoryCards.tsx b/packages/app/src/components/alerts/AlertHistoryCards.tsx index 1b3df3b37d..b87ae3dfb8 100644 --- a/packages/app/src/components/alerts/AlertHistoryCards.tsx +++ b/packages/app/src/components/alerts/AlertHistoryCards.tsx @@ -106,7 +106,7 @@ function AlertHistoryCard({ }) { const start = new Date(history.createdAt.toString()); - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity const today = React.useMemo(() => new Date(), []); const href = React.useMemo(() => { diff --git a/packages/app/src/config.ts b/packages/app/src/config.ts index c416d1e660..f3f8a3a663 100644 --- a/packages/app/src/config.ts +++ b/packages/app/src/config.ts @@ -67,7 +67,6 @@ export const BASE_PATH = process.env.NEXT_PUBLIC_HYPERDX_BASE_PATH ?? ''; export const IS_NOINDEX = process.env.NEXT_PUBLIC_NOINDEX === 'true'; /** Time captured at module load, use this a stable fallback/default time value instead of Date.now() defined in each React component file */ -// eslint-disable-next-line no-restricted-syntax export const NOW = Date.now(); // Features in development diff --git a/packages/app/src/hooks/useDashboardRefresh.tsx b/packages/app/src/hooks/useDashboardRefresh.tsx index 04e17d505f..c8f6f29e49 100644 --- a/packages/app/src/hooks/useDashboardRefresh.tsx +++ b/packages/app/src/hooks/useDashboardRefresh.tsx @@ -28,7 +28,6 @@ export const useDashboardRefresh = ({ const timeDiff = searchedTimeRange[1].getTime() - searchedTimeRange[0].getTime(); const timeDiffRoundedToSecond = Math.round(timeDiff / 1000) * 1000; - // eslint-disable-next-line no-restricted-syntax const newEnd = new Date(); const newStart = new Date(newEnd.getTime() - timeDiffRoundedToSecond); onTimeRangeSelect(newStart, newEnd); diff --git a/packages/app/src/hooks/useMetricNames.ts b/packages/app/src/hooks/useMetricNames.ts index 9106911e8c..611a9b04d4 100644 --- a/packages/app/src/hooks/useMetricNames.ts +++ b/packages/app/src/hooks/useMetricNames.ts @@ -26,7 +26,6 @@ const metricNamesQueryArgs = ({ metricSource: TMetricSource; metricType: MetricsDataType; }) => { - // eslint-disable-next-line no-restricted-syntax const now = new Date(); return { diff --git a/packages/app/src/timeQuery.ts b/packages/app/src/timeQuery.ts index 96a7fa9336..a4edc4be7e 100644 --- a/packages/app/src/timeQuery.ts +++ b/packages/app/src/timeQuery.ts @@ -44,7 +44,6 @@ function isInputTimeQueryLive(inputTimeQuery: string) { } export function parseRelativeTimeQuery(interval: number): [Date, Date] { - // eslint-disable-next-line no-restricted-syntax const end = startOfSecond(new Date()); return [subMilliseconds(end, interval), end]; } @@ -244,7 +243,7 @@ export function useTimeQuery({ ) { // If we haven't set a live tail time range yet, but we're ready and should be in live tail, let's just return one right now // this is due to the first interval of live tail not kicking in until 2 seconds after our first render - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity const end = startOfSecond(new Date()); const newLiveTailTimeRange: [Date, Date] = [ sub(end, { minutes: 15 }), @@ -254,7 +253,7 @@ export function useTimeQuery({ } else { // We're not ready yet, safe to return anything. // Downstream querying components need to be disabled on isReady - // eslint-disable-next-line no-restricted-syntax + // eslint-disable-next-line react-hooks/purity return [new Date(), new Date()]; } }, [ @@ -278,7 +277,6 @@ export function useTimeQuery({ ); }, [isReady, isLiveEnabled, timeRangeQuery, inputTimeQuery]); const refreshLiveTailTimeRange = () => { - // eslint-disable-next-line no-restricted-syntax const end = startOfSecond(new Date()); setLiveTailTimeRange([sub(end, { minutes: 15 }), end]); }; @@ -328,7 +326,6 @@ export function useTimeQuery({ ], ); - // eslint-disable-next-line react-hooks/refs return { isReady, // Don't search until we know what we want to do isLive, diff --git a/packages/app/src/timeZone.ts b/packages/app/src/timeZone.ts index 6a559e1411..015d76b216 100644 --- a/packages/app/src/timeZone.ts +++ b/packages/app/src/timeZone.ts @@ -6,7 +6,6 @@ export const LOCAL_TIME_ZONE = 'local'; // For code that needs the time right now, such as a ticking clock or parsing // "yesterday", rather than the stable NOW from config. export function currentDate(): Date { - // eslint-disable-next-line no-restricted-syntax return new Date(); } @@ -78,7 +77,6 @@ export function formatTimeZoneName(timeZone: string): string { */ export function getTimeZoneShortName( timeZone: string, - // eslint-disable-next-line no-restricted-syntax date: Date = new Date(), ): string { const offset = new Intl.DateTimeFormat('en-US', { diff --git a/packages/app/src/utils/alerts.ts b/packages/app/src/utils/alerts.ts index 0fdc3fdae9..f8b82c6b64 100644 --- a/packages/app/src/utils/alerts.ts +++ b/packages/app/src/utils/alerts.ts @@ -40,7 +40,6 @@ export function intervalToMinutes(interval: AlertInterval): number { } export function intervalToDateRange(interval: AlertInterval): [Date, Date] { - // eslint-disable-next-line no-restricted-syntax const now = new Date(); if (interval === '1m') return [sub(now, { minutes: 15 }), now]; if (interval === '5m') return [sub(now, { hours: 1 }), now]; @@ -185,7 +184,6 @@ export const DEFAULT_TILE_ALERT: z.infer = { export function isAlertSilenceExpired(silenced?: { until: string | Date; }): boolean { - // eslint-disable-next-line no-restricted-syntax return silenced ? new Date() > new Date(silenced.until) : false; } diff --git a/packages/app/src/utils/csv.ts b/packages/app/src/utils/csv.ts index 24d23c619f..9979412399 100644 --- a/packages/app/src/utils/csv.ts +++ b/packages/app/src/utils/csv.ts @@ -27,7 +27,6 @@ export function downloadCsv( /** Timestamped export filename, without an extension. */ export function csvExportFilename(prefix: string): string { - // eslint-disable-next-line no-restricted-syntax const timestamp = new Date().toISOString().replace(/[:.]/g, '-').slice(0, 19); return `${prefix}_${timestamp}`; } diff --git a/packages/cli/.oxlintrc.json b/packages/cli/.oxlintrc.json new file mode 100644 index 0000000000..6fb98932a0 --- /dev/null +++ b/packages/cli/.oxlintrc.json @@ -0,0 +1,29 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": ["../../oxlint/base.jsonc"], + "globals": { + "console": "readonly", + "process": "readonly", + "setTimeout": "readonly", + "clearTimeout": "readonly", + "setInterval": "readonly", + "clearInterval": "readonly", + "React": "readonly", + "fetch": "readonly", + "Response": "readonly", + "URL": "readonly", + "URLSearchParams": "readonly", + "Headers": "readonly", + "RequestInfo": "readonly", + "RequestInit": "readonly", + "ReadableStream": "readonly", + "Buffer": "readonly" + }, + "ignorePatterns": [ + "node_modules/**", + "dist/**", + "**/*.config.cjs", + "**/*.config.mjs", + "**/*.config.ts" + ] +} diff --git a/packages/cli/eslint.config.mjs b/packages/cli/eslint.config.mjs deleted file mode 100644 index eeb5291b0a..0000000000 --- a/packages/cli/eslint.config.mjs +++ /dev/null @@ -1,77 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import prettierConfig from 'eslint-config-prettier'; -import prettierPlugin from 'eslint-plugin-prettier'; - -export default [ - js.configs.recommended, - ...tseslint.configs.recommended, - prettierConfig, - { - ignores: [ - 'node_modules/**', - 'dist/**', - '**/*.config.cjs', - '**/*.config.mjs', - '**/*.config.ts', - ], - }, - { - files: ['src/**/*.ts', 'src/**/*.tsx'], - plugins: { - '@typescript-eslint': tseslint.plugin, - prettier: prettierPlugin, - }, - rules: { - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], - 'prettier/prettier': 'error', - 'no-restricted-imports': [ - 'error', - { - patterns: [ - { - regex: '^\\.\\.(/|$)', - message: - 'Use the @/ path alias instead of parent-relative imports (../).', - }, - ], - }, - ], - }, - languageOptions: { - parser: tseslint.parser, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: './tsconfig.json', - tsconfigRootDir: import.meta.dirname, - }, - globals: { - console: 'readonly', - process: 'readonly', - setTimeout: 'readonly', - clearTimeout: 'readonly', - setInterval: 'readonly', - clearInterval: 'readonly', - React: 'readonly', - fetch: 'readonly', - Response: 'readonly', - URL: 'readonly', - URLSearchParams: 'readonly', - Headers: 'readonly', - RequestInfo: 'readonly', - RequestInit: 'readonly', - ReadableStream: 'readonly', - Buffer: 'readonly', - }, - }, - }, -]; diff --git a/packages/cli/package.json b/packages/cli/package.json index 3ce2c12ff4..ba27522267 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -33,7 +33,7 @@ "compile:linux": "bun build src/cli.tsx --compile --target=bun-linux-x64 --outfile dist/hdx-linux-x64", "compile:macos": "bun build src/cli.tsx --compile --target=bun-darwin-arm64 --outfile dist/hdx-darwin-arm64", "compile:macos-x64": "bun build src/cli.tsx --compile --target=bun-darwin-x64 --outfile dist/hdx-darwin-x64", - "lint": "node ../../scripts/ci/eslint-warnings.mjs . --ext .ts,.tsx --max-warnings 0", + "lint": "node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 0 && yarn run -T prettier --check --log-level warn 'src/**/*.{ts,tsx}'", "ci:build": "tsup", "ci:lint": "yarn lint && yarn tsc --noEmit", "ci:unit": "NODE_OPTIONS=--experimental-vm-modules jest --runInBand --ci --passWithNoTests", diff --git a/packages/common-utils/.oxlintrc.json b/packages/common-utils/.oxlintrc.json new file mode 100644 index 0000000000..9c79764fb8 --- /dev/null +++ b/packages/common-utils/.oxlintrc.json @@ -0,0 +1,85 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": ["../../oxlint/base.jsonc"], + "jsPlugins": [ + "eslint-plugin-n", + "eslint-plugin-security", + "eslint-plugin-simple-import-sort" + ], + "globals": { + "console": "readonly", + "process": "readonly", + "module": "readonly", + "require": "readonly", + "__dirname": "readonly", + "__filename": "readonly", + "exports": "readonly", + "Buffer": "readonly", + "setTimeout": "readonly", + "clearTimeout": "readonly", + "setInterval": "readonly", + "clearInterval": "readonly", + "setImmediate": "readonly", + "clearImmediate": "readonly", + "global": "readonly" + }, + "ignorePatterns": [ + "node_modules/**", + "dist/**", + "coverage/**", + "**/*.config.js", + "**/*.config.mjs", + "**/*.config.ts", + "jest.config.js", + "jest.setup.ts" + ], + "rules": { + "typescript/no-empty-object-type": "warn", + "typescript/no-floating-promises": "error", + "typescript/no-unsafe-type-assertion": "error", + "typescript/no-namespace": "warn", + "n/no-deprecated-api": "error", + "n/no-exports-assign": "error", + "n/no-extraneous-import": "error", + "n/no-extraneous-require": "error", + "n/no-missing-require": "error", + "n/no-process-exit": "warn", + "n/no-unpublished-bin": "error", + "n/no-unpublished-import": "error", + "n/no-unpublished-require": "error", + "n/no-unsupported-features/es-builtins": "error", + "n/no-unsupported-features/es-syntax": [ + "error", + { + "ignores": ["modules"] + } + ], + "n/no-unsupported-features/node-builtins": "error", + "n/process-exit-as-throw": "error", + "n/shebang": "error", + "security/detect-bidi-characters": "warn", + "security/detect-buffer-noassert": "warn", + "security/detect-child-process": "warn", + "security/detect-disable-mustache-escape": "warn", + "security/detect-eval-with-expression": "warn", + "security/detect-new-buffer": "warn", + "security/detect-no-csrf-before-method-override": "warn", + "security/detect-non-literal-fs-filename": "warn", + "security/detect-non-literal-regexp": "warn", + "security/detect-non-literal-require": "warn", + "security/detect-object-injection": "warn", + "security/detect-possible-timing-attacks": "warn", + "security/detect-pseudoRandomBytes": "warn", + "security/detect-unsafe-regex": "warn", + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" + }, + "overrides": [ + { + "files": ["src/**/*.test.ts", "src/**/__tests__/**/*.ts"], + "rules": { + "typescript/no-unsafe-type-assertion": "off" + } + } + ] +} diff --git a/packages/common-utils/eslint.config.mjs b/packages/common-utils/eslint.config.mjs deleted file mode 100644 index 47aa93d992..0000000000 --- a/packages/common-utils/eslint.config.mjs +++ /dev/null @@ -1,110 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import prettierConfig from 'eslint-config-prettier'; -import prettierPlugin from 'eslint-plugin-prettier'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; -import nodePlugin from 'eslint-plugin-n'; -import securityPlugin from 'eslint-plugin-security'; - -export default [ - js.configs.recommended, - ...tseslint.configs.recommended, - prettierConfig, - { - ignores: [ - 'node_modules/**', - 'dist/**', - 'coverage/**', - '**/*.config.js', - '**/*.config.mjs', - '**/*.config.ts', - 'jest.config.js', - 'jest.setup.ts', - ], - }, - { - files: ['src/**/*.ts'], - plugins: { - '@typescript-eslint': tseslint.plugin, - 'simple-import-sort': simpleImportSort, - prettier: prettierPlugin, - n: nodePlugin, - security: securityPlugin, - }, - rules: { - ...nodePlugin.configs.recommended.rules, - ...securityPlugin.configs['recommended-legacy'].rules, - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/no-empty-interface': 'off', - '@typescript-eslint/no-empty-object-type': 'warn', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-unsafe-type-assertion': 'error', - '@typescript-eslint/no-namespace': 'warn', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], - 'n/no-process-exit': 'warn', - 'n/no-missing-import': 'off', - 'n/no-unpublished-import': 'error', - 'n/no-unsupported-features/es-syntax': [ - 'error', - { - ignores: ['modules'], - }, - ], - 'prettier/prettier': 'error', - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', - 'no-restricted-imports': [ - 'error', - { - patterns: [ - { - regex: '^\\.\\.(/|$)', - message: - 'Use the @/ path alias instead of parent-relative imports (../).', - }, - ], - }, - ], - }, - languageOptions: { - parser: tseslint.parser, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: './tsconfig.json', - tsconfigRootDir: import.meta.dirname, - }, - globals: { - console: 'readonly', - process: 'readonly', - module: 'readonly', - require: 'readonly', - __dirname: 'readonly', - __filename: 'readonly', - exports: 'readonly', - Buffer: 'readonly', - setTimeout: 'readonly', - clearTimeout: 'readonly', - setInterval: 'readonly', - clearInterval: 'readonly', - setImmediate: 'readonly', - clearImmediate: 'readonly', - global: 'readonly', - }, - }, - }, - { - // Disable unsafe type assertion rule for test files (mocking requires type assertions) - files: ['src/**/*.test.ts', 'src/**/__tests__/**/*.ts'], - rules: { - '@typescript-eslint/no-unsafe-type-assertion': 'off', - }, - }, -]; diff --git a/packages/common-utils/package.json b/packages/common-utils/package.json index ff0f384e7c..259ae0dc79 100644 --- a/packages/common-utils/package.json +++ b/packages/common-utils/package.json @@ -51,8 +51,8 @@ "build": "tsup && yarn build:types", "build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "ci:build": "yarn build", - "lint": "node ../../scripts/ci/eslint-warnings.mjs . --ext .ts --max-warnings 80", - "lint:fix": "npx eslint . --ext .ts --fix", + "lint": "node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 80 && yarn run -T prettier --check --log-level warn 'src/**/*.ts'", + "lint:fix": "yarn run -T oxlint --fix && yarn run -T prettier --write --log-level warn 'src/**/*.ts'", "ci:lint": "yarn lint && yarn tsc --noEmit", "ci:unit": "jest --ci --coverage", "dev:unit": "jest --watchAll", diff --git a/packages/hdx-eval/.oxlintrc.json b/packages/hdx-eval/.oxlintrc.json new file mode 100644 index 0000000000..3c5eaddb9f --- /dev/null +++ b/packages/hdx-eval/.oxlintrc.json @@ -0,0 +1,26 @@ +{ + "$schema": "../../node_modules/oxlint/configuration_schema.json", + "extends": ["../../oxlint/base.jsonc"], + "jsPlugins": ["eslint-plugin-simple-import-sort"], + "globals": { + "console": "readonly", + "process": "readonly", + "setTimeout": "readonly", + "clearTimeout": "readonly", + "Buffer": "readonly", + "URL": "readonly" + }, + "ignorePatterns": [ + "node_modules/**", + "dist/**", + "coverage/**", + "**/*.config.mjs", + "**/*.config.js", + "jest.config.js", + "scripts/viewer/**" + ], + "rules": { + "simple-import-sort/imports": "error", + "simple-import-sort/exports": "error" + } +} diff --git a/packages/hdx-eval/eslint.config.mjs b/packages/hdx-eval/eslint.config.mjs deleted file mode 100644 index f7878fc729..0000000000 --- a/packages/hdx-eval/eslint.config.mjs +++ /dev/null @@ -1,73 +0,0 @@ -import js from '@eslint/js'; -import tseslint from 'typescript-eslint'; -import prettierConfig from 'eslint-config-prettier'; -import prettierPlugin from 'eslint-plugin-prettier'; -import simpleImportSort from 'eslint-plugin-simple-import-sort'; - -export default [ - js.configs.recommended, - ...tseslint.configs.recommended, - prettierConfig, - { - ignores: [ - 'node_modules/**', - 'dist/**', - 'coverage/**', - '**/*.config.mjs', - '**/*.config.js', - 'jest.config.js', - 'scripts/viewer/**', - ], - }, - { - files: ['src/**/*.ts'], - plugins: { - '@typescript-eslint': tseslint.plugin, - 'simple-import-sort': simpleImportSort, - prettier: prettierPlugin, - }, - rules: { - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-unused-vars': [ - 'error', - { - argsIgnorePattern: '^_', - varsIgnorePattern: '^_', - }, - ], - 'prettier/prettier': 'error', - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', - 'no-restricted-imports': [ - 'error', - { - patterns: [ - { - regex: '^\\.\\.(/|$)', - message: - 'Use the @/ path alias instead of parent-relative imports (../).', - }, - ], - }, - ], - }, - languageOptions: { - parser: tseslint.parser, - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: './tsconfig.json', - tsconfigRootDir: import.meta.dirname, - }, - globals: { - console: 'readonly', - process: 'readonly', - setTimeout: 'readonly', - clearTimeout: 'readonly', - Buffer: 'readonly', - URL: 'readonly', - }, - }, - }, -]; diff --git a/packages/hdx-eval/package.json b/packages/hdx-eval/package.json index 15549f6f32..f550375d74 100644 --- a/packages/hdx-eval/package.json +++ b/packages/hdx-eval/package.json @@ -36,8 +36,8 @@ "scripts": { "build": "rimraf ./dist && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json", "dev": "NODE_OPTIONS=--max-old-space-size=8192 ./scripts/env.sh tsx src/cli.ts", - "lint": "node ../../scripts/ci/eslint-warnings.mjs . --ext .ts --max-warnings 0", - "lint:fix": "npx eslint . --ext .ts --fix", + "lint": "node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 0 && yarn run -T prettier --check --log-level warn 'src/**/*.ts'", + "lint:fix": "yarn run -T oxlint --fix && yarn run -T prettier --write --log-level warn 'src/**/*.ts'", "ci:lint": "yarn lint && yarn tsc --noEmit", "ci:unit": "jest --ci --coverage --forceExit", "dev:unit": "jest --watch", diff --git a/scripts/ci/__tests__/eslint-warnings.test.mjs b/scripts/ci/__tests__/oxlint-warnings.test.mjs similarity index 57% rename from scripts/ci/__tests__/eslint-warnings.test.mjs rename to scripts/ci/__tests__/oxlint-warnings.test.mjs index 0d99104ec1..8e79d804a2 100644 --- a/scripts/ci/__tests__/eslint-warnings.test.mjs +++ b/scripts/ci/__tests__/oxlint-warnings.test.mjs @@ -3,21 +3,23 @@ import test from 'node:test'; import { collectWarnings, + formatStylish, newWarnings, parseAddedLines, parseArgs, -} from '../eslint-warnings.mjs'; + toResults, +} from '../oxlint-warnings.mjs'; const ROOT = '/repo'; -test('parseArgs splits wrapper flags from ESLint args', () => { - assert.deepEqual(parseArgs(['.', '--ext', '.ts', '--max-warnings', '302']), { - eslintArgs: ['.', '--ext', '.ts'], +test('parseArgs splits wrapper flags from oxlint args', () => { + assert.deepEqual(parseArgs(['src', '--max-warnings', '302']), { + oxlintArgs: ['src'], maxWarnings: 302, staged: false, }); assert.deepEqual(parseArgs(['--staged', '--fix', '/repo/a.ts']), { - eslintArgs: ['--fix', '/repo/a.ts'], + oxlintArgs: ['--fix', '/repo/a.ts'], maxWarnings: undefined, staged: true, }); @@ -113,3 +115,76 @@ test('newWarnings falls back to changed files when no changed line warns', () => ['new', 'old'], ); }); + +test('toResults groups oxlint diagnostics per file in ESLint shape', () => { + const output = { + diagnostics: [ + { + message: 'Unsafe type assertion', + code: 'typescript(no-unsafe-type-assertion)', + severity: 'warning', + filename: 'src/b.ts', + labels: [{ span: { offset: 0, length: 1, line: 9, column: 3 } }], + }, + { + message: 'Unexpected console statement.', + code: 'eslint(no-console)', + severity: 'error', + filename: 'src/a.ts', + labels: [{ span: { offset: 0, length: 1, line: 2, column: 1 } }], + }, + { + message: 'Unused eslint-disable directive (no problems were reported).', + severity: 'warning', + filename: 'src/a.ts', + labels: [{ span: { offset: 0, length: 1, line: 1, column: 1 } }], + }, + ], + }; + const results = toResults(output, ROOT); + assert.deepEqual( + results.map(r => [r.filePath, r.errorCount, r.warningCount]), + [ + ['/repo/src/a.ts', 1, 1], + ['/repo/src/b.ts', 0, 1], + ], + ); + assert.deepEqual( + results[0].messages.map(m => [m.line, m.ruleId, m.severity]), + [ + [1, null, 1], + [2, 'no-console', 2], + ], + ); + assert.equal( + results[1].messages[0].ruleId, + 'typescript/no-unsafe-type-assertion', + ); +}); + +test('formatStylish prints per-file problems and a total', () => { + const out = formatStylish( + [ + ...results, + { + filePath: '/repo/clean.ts', + messages: [], + errorCount: 0, + warningCount: 0, + }, + ].map(r => ({ + ...r, + errorCount: r.messages.filter(m => m.severity === 2).length, + warningCount: r.messages.filter(m => m.severity === 1).length, + })), + ROOT, + ); + assert.match( + out, + /^\npackages\/api\/src\/a\.ts\n {4}3:1 {2}warning {2}new {2}r1\n/, + ); + assert.match(out, / {4}3:5 {2}error {4}error {2}r2\n/); + assert.doesNotMatch(out, /clean\.ts/); + assert.match(out, /✖ 4 problems \(1 error, 3 warnings\)\n$/); + assert.equal(formatStylish([], ROOT), ''); +}); diff --git a/scripts/ci/__tests__/ratchet.test.mjs b/scripts/ci/__tests__/ratchet.test.mjs index f84900e2f4..c60436142c 100644 --- a/scripts/ci/__tests__/ratchet.test.mjs +++ b/scripts/ci/__tests__/ratchet.test.mjs @@ -22,7 +22,10 @@ function fixture(packages, workspaces = ['packages/*']) { for (const [pkg, files] of Object.entries(packages)) { const dir = path.join(root, 'packages', pkg); mkdirSync(dir, { recursive: true }); - writeFileSync(path.join(dir, 'package.json'), JSON.stringify({ name: pkg })); + writeFileSync( + path.join(dir, 'package.json'), + JSON.stringify({ name: pkg }), + ); for (const [rel, source] of Object.entries(files)) { const file = path.join(dir, rel); mkdirSync(path.dirname(file), { recursive: true }); @@ -45,6 +48,16 @@ test('counts escape hatches across a package, not just src/', () => { }); }); +test('oxlint-disable comments count as disable directives too', () => { + const root = fixture({ + app: { + 'src/a.ts': + '// oxlint-disable-next-line no-console\n// eslint-disable-line no-var\n', + }, + }); + assert.equal(collectCounts(root).app['eslint-disable'], 2); +}); + test('`as any` is word-anchored, so prose does not inflate the count', () => { const root = fixture({ app: { @@ -96,8 +109,12 @@ test('above baseline fails', () => { test('an advisory pattern above baseline warns instead of failing', () => { const { failed, messages } = compare( - { cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 38 } }, - { cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 37 } }, + { + cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 38 }, + }, + { + cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 37 }, + }, ); assert.equal(failed, false); assert.match(messages.join('\n'), /! cli\/@source: 38 > baseline 37/); @@ -105,8 +122,12 @@ test('an advisory pattern above baseline warns instead of failing', () => { test('an advisory rise does not mask a gated pattern rising too', () => { const { failed, messages } = compare( - { cli: { 'as-any': 1, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 38 } }, - { cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 37 } }, + { + cli: { 'as-any': 1, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 38 }, + }, + { + cli: { 'as-any': 0, 'ts-ignore': 0, 'eslint-disable': 0, '@source': 37 }, + }, ); assert.equal(failed, true); assert.match(messages.join('\n'), /x cli\/as-any: 1 > baseline 0/); @@ -143,7 +164,10 @@ test('a baselined package that vanished is a hard error, not a free pass', () => test('the committed baseline is not already breached by the real repo', () => { const repoRoot = path.resolve(import.meta.dirname, '../../..'); const baseline = JSON.parse( - readFileSync(path.join(repoRoot, 'scripts/ci/ratchet-baseline.json'), 'utf8'), + readFileSync( + path.join(repoRoot, 'scripts/ci/ratchet-baseline.json'), + 'utf8', + ), ); // Only asserts not-above-baseline: below-baseline is a deliberate warn. assert.equal(compare(collectCounts(repoRoot), baseline).failed, false); diff --git a/scripts/ci/eslint-warnings.mjs b/scripts/ci/oxlint-warnings.mjs similarity index 61% rename from scripts/ci/eslint-warnings.mjs rename to scripts/ci/oxlint-warnings.mjs index dad9772042..93fccc9087 100644 --- a/scripts/ci/eslint-warnings.mjs +++ b/scripts/ci/oxlint-warnings.mjs @@ -1,31 +1,30 @@ #!/usr/bin/env node /** - * ESLint wrapper that says which warnings are new. + * oxlint wrapper that says which warnings are new. * * Ceiling mode (each package's `lint` script): - * node ../../scripts/ci/eslint-warnings.mjs . --ext .ts --max-warnings 302 - * Runs ESLint, then, when the warning count exceeds the ceiling, lists the + * node ../../scripts/ci/oxlint-warnings.mjs --max-warnings 302 + * Runs oxlint, then, when the warning count exceeds the ceiling, lists the * warnings on lines this branch changed (vs the merge-base with the PR base or * origin/main) and emits GitHub annotations for them. Plain - * `eslint --max-warnings` only prints "too many warnings" somewhere inside + * `oxlint --max-warnings` only prints "too many warnings" somewhere inside * hundreds of pre-existing ones. * - * Staged mode (lint-staged pre-commit): - * node scripts/ci/eslint-warnings.mjs --staged --fix + * Staged mode (lint-staged pre-commit, from the repo root): + * node scripts/ci/oxlint-warnings.mjs --staged --fix * Fails only on warnings on lines the commit adds or changes, so touching a - * file with old warnings doesn't block the commit. + * file with old warnings doesn't block the commit. oxlint lints each file + * with the `.oxlintrc.json` of the package it lives in (nested configs). * - * Every other argument is passed through to ESLint. + * Every other argument is passed through to oxlint. */ import { execFileSync, spawnSync } from 'node:child_process'; -import { mkdtempSync, readFileSync, rmSync } from 'node:fs'; import { createRequire } from 'node:module'; -import { tmpdir } from 'node:os'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; export function parseArgs(argv) { - const eslintArgs = []; + const oxlintArgs = []; let maxWarnings; let staged = false; for (let i = 0; i < argv.length; i++) { @@ -37,13 +36,13 @@ export function parseArgs(argv) { } else if (arg.startsWith('--max-warnings=')) { maxWarnings = Number(arg.slice('--max-warnings='.length)); } else { - eslintArgs.push(arg); + oxlintArgs.push(arg); } } if (maxWarnings !== undefined && !Number.isInteger(maxWarnings)) { throw new Error('--max-warnings needs an integer'); } - return { eslintArgs, maxWarnings, staged }; + return { oxlintArgs, maxWarnings, staged }; } /** @@ -71,6 +70,73 @@ export function parseAddedLines(diff, root) { return added; } +/** + * Groups oxlint's `--format json` diagnostics into ESLint-style per-file + * results, so the rest of this script (and its output) reads like before. + * `code` is `plugin(rule)`; native ESLint rules drop the `eslint/` prefix. + * Diagnostics without a code (unused disable directives, a JS plugin that + * threw) keep `ruleId: null`. + */ +export function toResults(output, cwd) { + const byFile = new Map(); + for (const d of output.diagnostics) { + const filePath = path.resolve(cwd, d.filename); + const span = d.labels?.[0]?.span; + const match = /^(.+)\((.+)\)$/.exec(d.code ?? ''); + const ruleId = match + ? match[1] === 'eslint' + ? match[2] + : `${match[1]}/${match[2]}` + : null; + if (!byFile.has(filePath)) byFile.set(filePath, []); + byFile.get(filePath).push({ + ruleId, + severity: d.severity === 'error' ? 2 : 1, + message: d.message, + line: span?.line ?? 0, + column: span?.column ?? 0, + }); + } + return [...byFile] + .sort(([a], [b]) => a.localeCompare(b)) + .map(([filePath, messages]) => { + messages.sort((a, b) => a.line - b.line || a.column - b.column); + return { + filePath, + messages, + errorCount: messages.filter(m => m.severity === 2).length, + warningCount: messages.filter(m => m.severity === 1).length, + }; + }); +} + +/** ESLint's `stylish` layout, which is what this script printed before. */ +export function formatStylish(results, cwd) { + let out = ''; + let errors = 0; + let warnings = 0; + for (const result of results) { + if (!result.messages.length) continue; + out += `\n${path.relative(cwd, result.filePath)}\n`; + for (const m of result.messages) { + const where = `${m.line}:${m.column}`.padStart(7); + const level = m.severity === 2 ? 'error ' : 'warning'; + out += `${where} ${level} ${m.message} ${m.ruleId ?? ''}`.trimEnd(); + out += '\n'; + } + errors += result.errorCount; + warnings += result.warningCount; + } + const total = errors + warnings; + if (total) { + out += + `\n✖ ${total} problem${total === 1 ? '' : 's'} ` + + `(${errors} error${errors === 1 ? '' : 's'}, ` + + `${warnings} warning${warnings === 1 ? '' : 's'})\n`; + } + return out; +} + export function collectWarnings(results) { return results.flatMap(result => result.messages @@ -148,33 +214,31 @@ function annotate(warnings, root) { const file = path.relative(root, w.filePath); const message = `${w.message} (${w.ruleId})`.replace(/\r?\n/g, ' '); console.log( - `::error file=${file},line=${w.line},col=${w.column},title=New ESLint warning::${message}`, + `::error file=${file},line=${w.line},col=${w.column},title=New oxlint warning::${message}`, ); } } -function runEslint(cwd, eslintArgs) { +function runOxlint(cwd, oxlintArgs) { const require = createRequire(path.join(cwd, 'noop.js')); - const pkgJson = require.resolve('eslint/package.json'); - const bin = path.join(path.dirname(pkgJson), 'bin/eslint.js'); - const tmp = mkdtempSync(path.join(tmpdir(), 'eslint-warnings-')); - const outFile = path.join(tmp, 'results.json'); + const pkgJson = require.resolve('oxlint/package.json'); + const bin = path.join(path.dirname(pkgJson), 'bin/oxlint'); + const { status, stdout } = spawnSync( + process.execPath, + [bin, ...oxlintArgs, '--format', 'json'], + { + cwd, + encoding: 'utf8', + maxBuffer: 256 * 1024 * 1024, + stdio: ['ignore', 'pipe', 'inherit'], + }, + ); try { - const { status } = spawnSync( - process.execPath, - [bin, ...eslintArgs, '--format', 'json', '--output-file', outFile], - { cwd, stdio: 'inherit' }, - ); - let results; - try { - results = JSON.parse(readFileSync(outFile, 'utf8')); - } catch { - // ESLint crashed (bad config, bad flag) and has already said why. - process.exit(status || 2); - } - return { status, results, ESLint: require('eslint').ESLint }; - } finally { - rmSync(tmp, { recursive: true, force: true }); + return { status, results: toResults(JSON.parse(stdout), cwd) }; + } catch { + // oxlint failed before linting (bad config, bad flag); it printed why. + process.stdout.write(stdout ?? ''); + process.exit(status || 2); } } @@ -199,11 +263,15 @@ async function main() { '../..', ); const cwd = process.cwd(); - const { eslintArgs, maxWarnings, staged } = parseArgs(process.argv.slice(2)); - const { status, results, ESLint } = runEslint(cwd, eslintArgs); - const stylish = await new ESLint({ cwd }).loadFormatter('stylish'); + const { oxlintArgs, maxWarnings, staged } = parseArgs(process.argv.slice(2)); + // Staged files can all be ignored by their package config (next-env.d.ts), + // which oxlint otherwise treats as an error. + const { results } = runOxlint( + cwd, + staged ? ['--no-error-on-unmatched-pattern', ...oxlintArgs] : oxlintArgs, + ); const warnings = collectWarnings(results); - const hasErrors = results.some(r => r.errorCount > 0) || status === 2; + const hasErrors = results.some(r => r.errorCount > 0); if (staged) { const changed = changedLines(root, true); @@ -211,24 +279,25 @@ async function main() { ? warnings.filter(w => changed.addedLines.get(w.filePath)?.has(w.line)) : []; process.stdout.write( - await stylish.format( + formatStylish( onlyErrorsAnd(results, new Set(fresh.map(w => w.raw))), + cwd, ), ); if (fresh.length) { console.error( - `\n✖ ${fresh.length} new ESLint warning(s) on lines this commit changes. ` + + `\n✖ ${fresh.length} new oxlint warning(s) on lines this commit changes. ` + 'Fix them before committing; CI caps the warning count per package.', ); } return hasErrors || fresh.length ? 1 : 0; } - process.stdout.write(await stylish.format(results)); + process.stdout.write(formatStylish(results, cwd)); if (maxWarnings === undefined || warnings.length <= maxWarnings) { if (maxWarnings !== undefined && warnings.length < maxWarnings) { console.log( - `${warnings.length} ESLint warnings, ceiling ${maxWarnings}. ` + + `${warnings.length} oxlint warnings, ceiling ${maxWarnings}. ` + `Lower --max-warnings to ${warnings.length} to lock in the improvement.`, ); } @@ -237,7 +306,7 @@ async function main() { const pkg = path.relative(root, cwd) || '.'; const summary = - `${pkg}: ${warnings.length} ESLint warnings, ceiling is ${maxWarnings} ` + + `${pkg}: ${warnings.length} oxlint warnings, ceiling is ${maxWarnings} ` + `(--max-warnings in ${path.join(pkg, 'package.json')}).`; console.error(`\n✖ ${summary}`); const changed = changedLines(root, false); @@ -266,7 +335,7 @@ async function main() { 'Fix the new warnings. Raise the ceiling only if the increase is deliberate.', ); if (process.env.GITHUB_ACTIONS === 'true') { - console.log(`::error title=ESLint warning ceiling exceeded::${summary}`); + console.log(`::error title=oxlint warning ceiling exceeded::${summary}`); } return 1; } diff --git a/scripts/ci/ratchet-baseline.json b/scripts/ci/ratchet-baseline.json index 9a3c07f24e..3f47a0ac84 100644 --- a/scripts/ci/ratchet-baseline.json +++ b/scripts/ci/ratchet-baseline.json @@ -8,7 +8,7 @@ "app": { "as-any": 213, "ts-ignore": 0, - "eslint-disable": 141, + "eslint-disable": 122, "@source": 0 }, "cli": { diff --git a/scripts/ci/ratchet.mjs b/scripts/ci/ratchet.mjs index 8e1dc63694..cf877ff5da 100644 --- a/scripts/ci/ratchet.mjs +++ b/scripts/ci/ratchet.mjs @@ -17,7 +17,8 @@ export const PATTERNS = { // "...has any dashboards", inflating the baseline with phantom counts. 'as-any': /\bas any\b/g, 'ts-ignore': /@ts-ignore/g, - 'eslint-disable': /eslint-disable/g, + // oxlint honours both spellings, so both count. + 'eslint-disable': /(?:eslint|oxlint)-disable/g, // Duplication licensed by comment. `@source` marks code copied from another // package (mostly packages/cli/src/shared today, plus a handful under // src/components, src/utils and src/api). diff --git a/yarn.lock b/yarn.lock index 8b0de91b73..8a9a93b05b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5,13 +5,6 @@ __metadata: version: 8 cacheKey: 10c0 -"@aashutoshrathi/word-wrap@npm:^1.2.3": - version: 1.2.6 - resolution: "@aashutoshrathi/word-wrap@npm:1.2.6" - checksum: 10c0/53c2b231a61a46792b39a0d43bc4f4f776bb4542aa57ee04930676802e5501282c2fc8aac14e4cd1f1120ff8b52616b6ff5ab539ad30aa2277d726444b71619f - languageName: node - linkType: hard - "@adobe/css-tools@npm:^4.4.0": version: 4.4.4 resolution: "@adobe/css-tools@npm:4.4.4" @@ -866,13 +859,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-string-parser@npm:^7.24.8": - version: 7.24.8 - resolution: "@babel/helper-string-parser@npm:7.24.8" - checksum: 10c0/6361f72076c17fabf305e252bf6d580106429014b3ab3c1f5c4eb3e6d465536ea6b670cc0e9a637a77a9ad40454d3e41361a2909e70e305116a23d68ce094c08 - languageName: node - linkType: hard - "@babel/helper-string-parser@npm:^7.27.1": version: 7.27.1 resolution: "@babel/helper-string-parser@npm:7.27.1" @@ -901,13 +887,6 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.24.7": - version: 7.24.7 - resolution: "@babel/helper-validator-identifier@npm:7.24.7" - checksum: 10c0/87ad608694c9477814093ed5b5c080c2e06d44cb1924ae8320474a74415241223cc2a725eea2640dd783ff1e3390e5f95eede978bc540e870053152e58f1d651 - languageName: node - linkType: hard - "@babel/helper-validator-identifier@npm:^7.29.7": version: 7.29.7 resolution: "@babel/helper-validator-identifier@npm:7.29.7" @@ -984,15 +963,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.24.4": - version: 7.24.6 - resolution: "@babel/parser@npm:7.24.6" - bin: - parser: ./bin/babel-parser.js - checksum: 10c0/cbef70923078a20fe163b03f4a6482be65ed99d409a57f3091a23ce3a575ee75716c30e7ea9f40b692ac5660f34055f4cbeb66a354fad15a6cf1fca35c3496c5 - languageName: node - linkType: hard - "@babel/parser@npm:^7.29.7, @babel/parser@npm:~7.29.0": version: 7.29.7 resolution: "@babel/parser@npm:7.29.7" @@ -2284,17 +2254,6 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.8.3": - version: 7.25.6 - resolution: "@babel/types@npm:7.25.6" - dependencies: - "@babel/helper-string-parser": "npm:^7.24.8" - "@babel/helper-validator-identifier": "npm:^7.24.7" - to-fast-properties: "npm:^2.0.0" - checksum: 10c0/89d45fbee24e27a05dca2d08300a26b905bd384a480448823f6723c72d3a30327c517476389b7280ce8cb9a2c48ef8f47da7f9f6d326faf6f53fd6b68237bdc4 - languageName: node - linkType: hard - "@bcoe/v8-coverage@npm:^0.2.3": version: 0.2.3 resolution: "@bcoe/v8-coverage@npm:0.2.3" @@ -3705,7 +3664,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/eslint-utils@npm:4.9.1, @eslint-community/eslint-utils@npm:^4.9.1": +"@eslint-community/eslint-utils@npm:4.9.1": version: 4.9.1 resolution: "@eslint-community/eslint-utils@npm:4.9.1" dependencies: @@ -3716,7 +3675,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.4.0, @eslint-community/eslint-utils@npm:^4.8.0": +"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.4.0": version: 4.9.0 resolution: "@eslint-community/eslint-utils@npm:4.9.0" dependencies: @@ -3738,10 +3697,21 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1": - version: 4.12.2 - resolution: "@eslint-community/regexpp@npm:4.12.2" - checksum: 10c0/fddcbc66851b308478d04e302a4d771d6917a0b3740dc351513c0da9ca2eab8a1adf99f5e0aa7ab8b13fa0df005c81adeee7e63a92f3effd7d367a163b721c2d +"@eslint-community/eslint-utils@npm:^4.8.0, @eslint-community/eslint-utils@npm:^4.9.1": + version: 4.10.1 + resolution: "@eslint-community/eslint-utils@npm:4.10.1" + dependencies: + eslint-visitor-keys: "npm:^3.4.3" + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: 10c0/b514586655698bc6b74db72a496c77e813c78b63e36a83429845ac7057dd77113b0b6c31e6e590d5baaeee2abae6ea22363a41209bcafa078d895ab83ce83011 + languageName: node + linkType: hard + +"@eslint-community/regexpp@npm:^4.12.1": + version: 4.12.3 + resolution: "@eslint-community/regexpp@npm:4.12.3" + checksum: 10c0/9b123d7298be2935097a1dc620373b4e9b3861123ba542de86bc4e941428bfb10a0a8dd1ae236b853c5b704f263faf318f8b5e23563b9f70405c7a388fcdf42f languageName: node linkType: hard @@ -3785,28 +3755,6 @@ __metadata: languageName: node linkType: hard -"@eslint-react/eslint-plugin@npm:^3.0.0": - version: 3.0.0 - resolution: "@eslint-react/eslint-plugin@npm:3.0.0" - dependencies: - "@eslint-react/shared": "npm:3.0.0" - "@typescript-eslint/scope-manager": "npm:^8.57.0" - "@typescript-eslint/type-utils": "npm:^8.57.0" - "@typescript-eslint/types": "npm:^8.57.0" - "@typescript-eslint/utils": "npm:^8.57.0" - eslint-plugin-react-dom: "npm:3.0.0" - eslint-plugin-react-naming-convention: "npm:3.0.0" - eslint-plugin-react-rsc: "npm:3.0.0" - eslint-plugin-react-web-api: "npm:3.0.0" - eslint-plugin-react-x: "npm:3.0.0" - ts-api-utils: "npm:^2.4.0" - peerDependencies: - eslint: ^10.0.0 - typescript: "*" - checksum: 10c0/d52bdbdf058c58149bfb104e182e05b4e88280edc440e70aede334205cad280e79829217d7fbfeda1162eb7020a5e7bb5339a9e0ac6e8c1143096d0261146ec3 - languageName: node - linkType: hard - "@eslint-react/shared@npm:3.0.0": version: 3.0.0 resolution: "@eslint-react/shared@npm:3.0.0" @@ -3839,27 +3787,27 @@ __metadata: linkType: hard "@eslint/compat@npm:^2.0.0": - version: 2.0.0 - resolution: "@eslint/compat@npm:2.0.0" + version: 2.1.1 + resolution: "@eslint/compat@npm:2.1.1" dependencies: - "@eslint/core": "npm:^1.0.0" + "@eslint/core": "npm:^1.2.1" peerDependencies: - eslint: ^8.40 || 9 + eslint: ^8.40 || 9 || 10 peerDependenciesMeta: eslint: optional: true - checksum: 10c0/ba848e8ea02fbfba9985d6a6e5aeedf5c44c4f57cb01fb6b9629d2ebfa37f9eafa4506ad9690fb805e0c395269d84e09eae46bfe41884bfff6171ebd68e17373 + checksum: 10c0/c1856c72e09a767b74c930c1dc17155c479f8b9dd73067d634408ab26318335736265d5d0feee0466c31d796846939cbf68707a045f46f3a02b7c3ad3a093fc4 languageName: node linkType: hard -"@eslint/config-array@npm:^0.21.1": - version: 0.21.1 - resolution: "@eslint/config-array@npm:0.21.1" +"@eslint/config-array@npm:^0.21.2": + version: 0.21.2 + resolution: "@eslint/config-array@npm:0.21.2" dependencies: "@eslint/object-schema": "npm:^2.1.7" debug: "npm:^4.3.1" - minimatch: "npm:^3.1.2" - checksum: 10c0/2f657d4edd6ddcb920579b72e7a5b127865d4c3fb4dda24f11d5c4f445a93ca481aebdbd6bf3291c536f5d034458dbcbb298ee3b698bc6c9dd02900fe87eec3c + minimatch: "npm:^3.1.5" + checksum: 10c0/89dfe815d18456177c0a1f238daf4593107fd20298b3598e0103054360d3b8d09d967defd8318f031185d68df1f95cfa68becf1390a9c5c6887665f1475142e3 languageName: node linkType: hard @@ -3881,43 +3829,36 @@ __metadata: languageName: node linkType: hard -"@eslint/core@npm:^1.0.0": - version: 1.0.0 - resolution: "@eslint/core@npm:1.0.0" +"@eslint/core@npm:^1.2.1": + version: 1.2.1 + resolution: "@eslint/core@npm:1.2.1" dependencies: "@types/json-schema": "npm:^7.0.15" - checksum: 10c0/ce94edc4e7f78afac5815ba9afcae8c99d286a7d6f80efd596f6ba08dd1984277c4f3b2d6585f7a31d8235f9124ca311780ace664a7340a0cb19d9a71b413285 + checksum: 10c0/10979b40588ecfef771fcb5013a542a35fb30692cc95a65f3481b0b36fbd89f5679efeb30d57f4eed35203d859aabace2a620177d6c536f71b299a1af2f3398f languageName: node linkType: hard -"@eslint/eslintrc@npm:^3.3.1": - version: 3.3.3 - resolution: "@eslint/eslintrc@npm:3.3.3" +"@eslint/eslintrc@npm:^3.3.6": + version: 3.3.7 + resolution: "@eslint/eslintrc@npm:3.3.7" dependencies: - ajv: "npm:^6.12.4" + ajv: "npm:^6.14.0" debug: "npm:^4.3.2" espree: "npm:^10.0.1" globals: "npm:^14.0.0" ignore: "npm:^5.2.0" import-fresh: "npm:^3.2.1" - js-yaml: "npm:^4.1.1" - minimatch: "npm:^3.1.2" + js-yaml: "npm:^4.3.2" + minimatch: "npm:^3.1.5" strip-json-comments: "npm:^3.1.1" - checksum: 10c0/532c7acc7ddd042724c28b1f020bd7bf148fcd4653bb44c8314168b5f772508c842ce4ee070299cac51c5c5757d2124bdcfcef5551c8c58ff9986e3e17f2260d + checksum: 10c0/010fca3403489ff109cfb5b9996142a2a4b4be28bbb233eda3c30ed004826aeab84d6914d0c5c4b1cd80add7051525adb7818268e0fb4775ddb6dbc620f00c72 languageName: node linkType: hard -"@eslint/js@npm:9.39.1": - version: 9.39.1 - resolution: "@eslint/js@npm:9.39.1" - checksum: 10c0/6f7f26f8cdb7ad6327bbf9741973b6278eb946f18f70e35406e88194b0d5c522d0547a34a02f2a208eec95c5d1388cdf7ccb20039efd2e4cb6655615247a50f1 - languageName: node - linkType: hard - -"@eslint/js@npm:^9.39.1": - version: 9.39.4 - resolution: "@eslint/js@npm:9.39.4" - checksum: 10c0/5aa7dea2cbc5decf7f5e3b0c6f86a084ccee0f792d288ca8e839f8bc1b64e03e227068968e49b26096e6f71fd857ab6e42691d1b993826b9a3883f1bdd7a0e46 +"@eslint/js@npm:9.39.5": + version: 9.39.5 + resolution: "@eslint/js@npm:9.39.5" + checksum: 10c0/49894e98ba313a7d3bfb1b20d55c0f9826be45a7db876fd84e533ac7f101b1d95b51cd22c6a6db3a45066b9c0d068c31b4a22fa0db8a6cc8744a25540efdb824 languageName: node linkType: hard @@ -4101,20 +4042,30 @@ __metadata: languageName: node linkType: hard -"@humanfs/core@npm:^0.19.1": - version: 0.19.1 - resolution: "@humanfs/core@npm:0.19.1" - checksum: 10c0/aa4e0152171c07879b458d0e8a704b8c3a89a8c0541726c6b65b81e84fd8b7564b5d6c633feadc6598307d34564bd53294b533491424e8e313d7ab6c7bc5dc67 +"@humanfs/core@npm:^0.19.2": + version: 0.19.2 + resolution: "@humanfs/core@npm:0.19.2" + dependencies: + "@humanfs/types": "npm:^0.15.0" + checksum: 10c0/d0a1d52d7b30c27d49475a53072d1510b81c5803e44b342fb8faf3887f1aa27593a1e6dc76a45268e7892d3f4e198146659281f6b6d55eacf3fd5a38bac30c5c languageName: node linkType: hard "@humanfs/node@npm:^0.16.6": - version: 0.16.7 - resolution: "@humanfs/node@npm:0.16.7" + version: 0.16.8 + resolution: "@humanfs/node@npm:0.16.8" dependencies: - "@humanfs/core": "npm:^0.19.1" + "@humanfs/core": "npm:^0.19.2" + "@humanfs/types": "npm:^0.15.0" "@humanwhocodes/retry": "npm:^0.4.0" - checksum: 10c0/9f83d3cf2cfa37383e01e3cdaead11cd426208e04c44adcdd291aa983aaf72d7d3598844d2fe9ce54896bb1bf8bd4b56883376611c8905a19c44684642823f30 + checksum: 10c0/56140579db811af4e160b195d45d0f29acf644d192c93fe24c9e594ebf06f19dfc157494a07c84540b8a071c0e4b37209c2362765d31734f4d0be869c2422e25 + languageName: node + linkType: hard + +"@humanfs/types@npm:^0.15.0": + version: 0.15.0 + resolution: "@humanfs/types@npm:0.15.0" + checksum: 10c0/fc26b9a024b0e55f7eaf64036df94345bf5d36d6a41ef80ef38e78f1f7430ce26cf435af736adae58913baae18eac3f38c18739054a3d379102015978eae862e languageName: node linkType: hard @@ -4236,8 +4187,6 @@ __metadata: "@dnd-kit/core": "npm:^6.3.1" "@dnd-kit/sortable": "npm:^10.0.0" "@dnd-kit/utilities": "npm:^3.2.2" - "@eslint-react/eslint-plugin": "npm:^3.0.0" - "@eslint/compat": "npm:^2.0.0" "@hookform/resolvers": "npm:^3.9.0" "@hyperdx/api": "workspace:*" "@hyperdx/common-utils": "npm:^0.36.0" @@ -4290,10 +4239,12 @@ __metadata: crypto-randomuuid: "npm:^1.0.0" date-fns: "npm:^2.28.0" dayjs: "npm:^1.11.19" - eslint-config-next: "npm:^16.3.4" eslint-plugin-playwright: "npm:^2.4.0" - eslint-plugin-react-hook-form: "npm:^0.3.1" - eslint-plugin-react-hooks: "npm:^7.0.1" + eslint-plugin-react-dom: "npm:3.0.0" + eslint-plugin-react-naming-convention: "npm:3.0.0" + eslint-plugin-react-rsc: "npm:3.0.0" + eslint-plugin-react-web-api: "npm:3.0.0" + eslint-plugin-react-x: "npm:3.0.0" eslint-plugin-storybook: "npm:10.1.4" flat: "npm:^5.0.2" fuse.js: "npm:^6.6.2" @@ -4320,7 +4271,7 @@ __metadata: postcss: "npm:^8.5.23" postcss-preset-mantine: "npm:^1.18.0" postcss-simple-vars: "npm:^7.0.0" - prettier: "npm:^3.3.2" + prettier: "npm:3.3.3" react: "npm:^19.2.3" react-copy-to-clipboard: "npm:^5.1.0" react-dom: "npm:^19.2.3" @@ -6009,7 +5960,7 @@ __metadata: languageName: node linkType: hard -"@next/eslint-plugin-next@npm:16.3.4, @next/eslint-plugin-next@npm:^16.3.4": +"@next/eslint-plugin-next@npm:^16.3.4": version: 16.3.4 resolution: "@next/eslint-plugin-next@npm:16.3.4" dependencies: @@ -7919,6 +7870,181 @@ __metadata: languageName: node linkType: hard +"@oxlint-tsgolint/darwin-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/darwin-arm64@npm:7.0.2006" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint-tsgolint/darwin-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/darwin-x64@npm:7.0.2006" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@oxlint-tsgolint/linux-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/linux-arm64@npm:7.0.2006" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint-tsgolint/linux-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/linux-x64@npm:7.0.2006" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + +"@oxlint-tsgolint/win32-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/win32-arm64@npm:7.0.2006" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint-tsgolint/win32-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/win32-x64@npm:7.0.2006" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-android-arm-eabi@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-android-arm-eabi@npm:1.93.0" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-android-arm64@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-android-arm64@npm:1.93.0" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-darwin-arm64@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-darwin-arm64@npm:1.93.0" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-darwin-x64@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-darwin-x64@npm:1.93.0" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-freebsd-x64@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-freebsd-x64@npm:1.93.0" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm-gnueabihf@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-arm-gnueabihf@npm:1.93.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm-musleabihf@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-arm-musleabihf@npm:1.93.0" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm64-gnu@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-arm64-gnu@npm:1.93.0" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-arm64-musl@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-arm64-musl@npm:1.93.0" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-linux-ppc64-gnu@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-ppc64-gnu@npm:1.93.0" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-riscv64-gnu@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-riscv64-gnu@npm:1.93.0" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-riscv64-musl@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-riscv64-musl@npm:1.93.0" + conditions: os=linux & cpu=riscv64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-linux-s390x-gnu@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-s390x-gnu@npm:1.93.0" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-x64-gnu@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-x64-gnu@npm:1.93.0" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@oxlint/binding-linux-x64-musl@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-linux-x64-musl@npm:1.93.0" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@oxlint/binding-openharmony-arm64@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-openharmony-arm64@npm:1.93.0" + conditions: os=openharmony & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-win32-arm64-msvc@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-win32-arm64-msvc@npm:1.93.0" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@oxlint/binding-win32-ia32-msvc@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-win32-ia32-msvc@npm:1.93.0" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + +"@oxlint/binding-win32-x64-msvc@npm:1.93.0": + version: 1.93.0 + resolution: "@oxlint/binding-win32-x64-msvc@npm:1.93.0" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@paralleldrive/cuid2@npm:^2.2.2": version: 2.2.2 resolution: "@paralleldrive/cuid2@npm:2.2.2" @@ -7935,13 +8061,6 @@ __metadata: languageName: node linkType: hard -"@pkgr/core@npm:^0.1.0": - version: 0.1.1 - resolution: "@pkgr/core@npm:0.1.1" - checksum: 10c0/3f7536bc7f57320ab2cf96f8973664bef624710c403357429fbf680a5c3b4843c1dbd389bb43daa6b1f6f1f007bb082f5abcb76bb2b5dc9f421647743b71d3d8 - languageName: node - linkType: hard - "@pkgr/core@npm:^0.2.9": version: 0.2.9 resolution: "@pkgr/core@npm:0.2.9" @@ -9217,13 +9336,6 @@ __metadata: languageName: node linkType: hard -"@rtsao/scc@npm:^1.1.0": - version: 1.1.0 - resolution: "@rtsao/scc@npm:1.1.0" - checksum: 10c0/b5bcfb0d87f7d1c1c7c0f7693f53b07866ed9fec4c34a97a8c948fb9a7c0082e416ce4d3b60beb4f5e167cbe04cdeefbf6771320f3ede059b9ce91188c409a5b - languageName: node - linkType: hard - "@scarf/scarf@npm:=1.4.0": version: 1.4.0 resolution: "@scarf/scarf@npm:1.4.0" @@ -10644,7 +10756,7 @@ __metadata: languageName: node linkType: hard -"@types/estree@npm:*, @types/estree@npm:1.0.8, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.6, @types/estree@npm:^1.0.8": +"@types/estree@npm:*, @types/estree@npm:1.0.8, @types/estree@npm:^1.0.0, @types/estree@npm:^1.0.8": version: 1.0.8 resolution: "@types/estree@npm:1.0.8" checksum: 10c0/39d34d1afaa338ab9763f37ad6066e3f349444f9052b9676a7cc0252ef9485a41c6d81c9c4e0d26e9077993354edf25efc853f3224dd4b447175ef62bdcc86a5 @@ -10658,6 +10770,13 @@ __metadata: languageName: node linkType: hard +"@types/estree@npm:^1.0.6": + version: 1.0.10 + resolution: "@types/estree@npm:1.0.10" + checksum: 10c0/d258926dac68425e77e43fd64045123b77f998ab2cf0bd0cc5a6ff016c365e60ed26f42adac64551906c1beab3bea08d60d113f905829ac60cfd6409db4761e9 + languageName: node + linkType: hard + "@types/express-serve-static-core@npm:4.17.43": version: 4.17.43 resolution: "@types/express-serve-static-core@npm:4.17.43" @@ -10804,13 +10923,6 @@ __metadata: languageName: node linkType: hard -"@types/json5@npm:^0.0.29": - version: 0.0.29 - resolution: "@types/json5@npm:0.0.29" - checksum: 10c0/6bf5337bc447b706bb5b4431d37686aa2ea6d07cfd6f79cc31de80170d6ff9b1c7384a9c0ccbc45b3f512bae9e9f75c2e12109806a15331dc94e8a8db6dbb4ac - languageName: node - linkType: hard - "@types/lodash@npm:^4.14.186": version: 4.14.191 resolution: "@types/lodash@npm:4.14.191" @@ -11292,43 +11404,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:8.48.1": - version: 8.48.1 - resolution: "@typescript-eslint/eslint-plugin@npm:8.48.1" - dependencies: - "@eslint-community/regexpp": "npm:^4.10.0" - "@typescript-eslint/scope-manager": "npm:8.48.1" - "@typescript-eslint/type-utils": "npm:8.48.1" - "@typescript-eslint/utils": "npm:8.48.1" - "@typescript-eslint/visitor-keys": "npm:8.48.1" - graphemer: "npm:^1.4.0" - ignore: "npm:^7.0.0" - natural-compare: "npm:^1.4.0" - ts-api-utils: "npm:^2.1.0" - peerDependencies: - "@typescript-eslint/parser": ^8.48.1 - eslint: ^8.57.0 || ^9.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/aeb4692ac27ded73dce5ddba08d46f15d617651f629cdfc5e874dd4ac767eac0523807f1f4e51f6f80675efff78e5937690f1c58740b8cb92b44b87d757a6a1a - languageName: node - linkType: hard - -"@typescript-eslint/parser@npm:8.48.1": - version: 8.48.1 - resolution: "@typescript-eslint/parser@npm:8.48.1" - dependencies: - "@typescript-eslint/scope-manager": "npm:8.48.1" - "@typescript-eslint/types": "npm:8.48.1" - "@typescript-eslint/typescript-estree": "npm:8.48.1" - "@typescript-eslint/visitor-keys": "npm:8.48.1" - debug: "npm:^4.3.4" - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/54ec22c82cc631f56131bfed9747f8cadf52ab123463a406c5221f258f9533431c4a33ebe21ef178840d50235e69bb370d36aa2fd6a066e7223b38bfa41a1788 - languageName: node - linkType: hard - "@typescript-eslint/project-service@npm:8.48.1": version: 8.48.1 resolution: "@typescript-eslint/project-service@npm:8.48.1" @@ -11342,16 +11417,16 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/project-service@npm:8.57.2": - version: 8.57.2 - resolution: "@typescript-eslint/project-service@npm:8.57.2" +"@typescript-eslint/project-service@npm:8.72.2": + version: 8.72.2 + resolution: "@typescript-eslint/project-service@npm:8.72.2" dependencies: - "@typescript-eslint/tsconfig-utils": "npm:^8.57.2" - "@typescript-eslint/types": "npm:^8.57.2" + "@typescript-eslint/tsconfig-utils": "npm:^8.72.2" + "@typescript-eslint/types": "npm:^8.72.2" debug: "npm:^4.4.3" peerDependencies: - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/f84e3165b0a214318d4bc119018b87c044170d7638945e84bd4cee2d752b62c1797ce722ca1161cd06f48512d0115ef75500e6c8fc01005ad4bb39fb48dd77bf + typescript: ">=4.8.4 <6.1.0" + checksum: 10c0/655d448448b05e0394da913d36c6e527b88aaf5ee98dddfa06e7f674f9a55d729df2114f04ecdfb3657cd5ac1ce1dfed2da1c964e5cb766e6a2ea91c76b3f136 languageName: node linkType: hard @@ -11365,13 +11440,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:8.57.2, @typescript-eslint/scope-manager@npm:^8.57.0": - version: 8.57.2 - resolution: "@typescript-eslint/scope-manager@npm:8.57.2" +"@typescript-eslint/scope-manager@npm:8.72.2, @typescript-eslint/scope-manager@npm:^8.57.0": + version: 8.72.2 + resolution: "@typescript-eslint/scope-manager@npm:8.72.2" dependencies: - "@typescript-eslint/types": "npm:8.57.2" - "@typescript-eslint/visitor-keys": "npm:8.57.2" - checksum: 10c0/532b1a97a5c2fce51400fa1a94e09615b4df84ce1f2d107206a3f3935074cada396a3e30f155582a698981832868e1afea1641ff779ad9456fdc94169b7def64 + "@typescript-eslint/types": "npm:8.72.2" + "@typescript-eslint/visitor-keys": "npm:8.72.2" + checksum: 10c0/c8a0836f9f60b3bebec02f2ce75b7211479d02865e27ca628909d047b27a0dae33c928ea5e6622e58e33227e11bf7da58bf81e534c10cbf8bfd57bae4919da32 languageName: node linkType: hard @@ -11384,44 +11459,28 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/tsconfig-utils@npm:8.57.2, @typescript-eslint/tsconfig-utils@npm:^8.57.2": - version: 8.57.2 - resolution: "@typescript-eslint/tsconfig-utils@npm:8.57.2" - peerDependencies: - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/199dad2d96efc88ce94f5f3e12e97205537bf7a7152e56ef1d84dfbe7bd1babebea9b9f396c01b6c447505a4eb02c1cbbd2c28828c587b51b41b15d017a11d2f - languageName: node - linkType: hard - -"@typescript-eslint/type-utils@npm:8.48.1": - version: 8.48.1 - resolution: "@typescript-eslint/type-utils@npm:8.48.1" - dependencies: - "@typescript-eslint/types": "npm:8.48.1" - "@typescript-eslint/typescript-estree": "npm:8.48.1" - "@typescript-eslint/utils": "npm:8.48.1" - debug: "npm:^4.3.4" - ts-api-utils: "npm:^2.1.0" +"@typescript-eslint/tsconfig-utils@npm:8.72.2, @typescript-eslint/tsconfig-utils@npm:^8.72.2": + version: 8.72.2 + resolution: "@typescript-eslint/tsconfig-utils@npm:8.72.2" peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/c98a71f7d374be249ecc7c9f20b0a867a73ad4f64e646a6bf9f2c1a5d74f0dc7bd59e9c94a0842068caa366af39ae0c550ede6d653b5c9418a0a587510bbb6d5 + typescript: ">=4.8.4 <6.1.0" + checksum: 10c0/eafdd9b29185849218277c7c79a23fdcedea1d9d016b2f438e3518eba89e2fff09cb4434afd9ab5f3eec322f554456844cb5b6be5deeaaf77a915733c966b392 languageName: node linkType: hard "@typescript-eslint/type-utils@npm:^8.57.0": - version: 8.57.2 - resolution: "@typescript-eslint/type-utils@npm:8.57.2" + version: 8.72.2 + resolution: "@typescript-eslint/type-utils@npm:8.72.2" dependencies: - "@typescript-eslint/types": "npm:8.57.2" - "@typescript-eslint/typescript-estree": "npm:8.57.2" - "@typescript-eslint/utils": "npm:8.57.2" + "@typescript-eslint/types": "npm:8.72.2" + "@typescript-eslint/typescript-estree": "npm:8.72.2" + "@typescript-eslint/utils": "npm:8.72.2" debug: "npm:^4.4.3" - ts-api-utils: "npm:^2.4.0" + ts-api-utils: "npm:^2.5.0" peerDependencies: eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/9c479cd0e809d26b7da7b31e830520bc016aaf528bc10a8b8279374808cb76a27f1b4adc77c84156417dc70f6a9e8604f47717b555a27293da2b9b5cfda70411 + typescript: ">=4.8.4 <6.1.0" + checksum: 10c0/db237b79d866555c84cbaa555d9a23c3e01d5167a259f33a31c6c0e2905fb0111a637386ee9128291935f142cbeb0716ca280cd789c998b37a69aa53b15764ad languageName: node linkType: hard @@ -11432,10 +11491,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:8.57.2, @typescript-eslint/types@npm:^8.57.0, @typescript-eslint/types@npm:^8.57.2": - version: 8.57.2 - resolution: "@typescript-eslint/types@npm:8.57.2" - checksum: 10c0/3cd87dd77d28b3ac2fed56a17909b0d11633628d4d733aa148dfd7af72e2cc3ec0e6114b72fac0ff538e8a47e907b4b10dab4095170ae1bd73719ef0b8eaf2e7 +"@typescript-eslint/types@npm:8.72.2, @typescript-eslint/types@npm:^8.57.0, @typescript-eslint/types@npm:^8.72.2": + version: 8.72.2 + resolution: "@typescript-eslint/types@npm:8.72.2" + checksum: 10c0/283cbfd02033da3790dde8a613f23bbcb21706281393daf256ea798112124e355679d1f5bdd16ee0d3b9730f4d16acd619504b3bfb25c7979f363c0963b3e1b6 languageName: node linkType: hard @@ -11458,26 +11517,41 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:8.57.2, @typescript-eslint/typescript-estree@npm:^8.57.0": - version: 8.57.2 - resolution: "@typescript-eslint/typescript-estree@npm:8.57.2" +"@typescript-eslint/typescript-estree@npm:8.72.2, @typescript-eslint/typescript-estree@npm:^8.57.0": + version: 8.72.2 + resolution: "@typescript-eslint/typescript-estree@npm:8.72.2" dependencies: - "@typescript-eslint/project-service": "npm:8.57.2" - "@typescript-eslint/tsconfig-utils": "npm:8.57.2" - "@typescript-eslint/types": "npm:8.57.2" - "@typescript-eslint/visitor-keys": "npm:8.57.2" + "@typescript-eslint/project-service": "npm:8.72.2" + "@typescript-eslint/tsconfig-utils": "npm:8.72.2" + "@typescript-eslint/types": "npm:8.72.2" + "@typescript-eslint/visitor-keys": "npm:8.72.2" debug: "npm:^4.4.3" minimatch: "npm:^10.2.2" semver: "npm:^7.7.3" tinyglobby: "npm:^0.2.15" - ts-api-utils: "npm:^2.4.0" + ts-api-utils: "npm:^2.5.0" peerDependencies: - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/2c5d143f0abbafd07a45f0b956aab5d6487b27f74fe93bee93e0a3f8edc8913f1522faf8d7d5215f3809a8d12f5729910ea522156552f2481b66e6d05ab311ae + typescript: ">=4.8.4 <6.1.0" + checksum: 10c0/5bcb59ec83bd7e750864308b2a6e2d7844777368f92180f4c4c3a9e92f8102c3fc8a6f9db4bee234e5417ce722a3f4835d6e74e6925b71654f4e8e7642f2fba5 + languageName: node + linkType: hard + +"@typescript-eslint/utils@npm:8.72.2, @typescript-eslint/utils@npm:^8.57.0": + version: 8.72.2 + resolution: "@typescript-eslint/utils@npm:8.72.2" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.9.1" + "@typescript-eslint/scope-manager": "npm:8.72.2" + "@typescript-eslint/types": "npm:8.72.2" + "@typescript-eslint/typescript-estree": "npm:8.72.2" + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: ">=4.8.4 <6.1.0" + checksum: 10c0/beadf16888dd042ede231e4b062cc058d0b3a58d08ffa99bd111b98d0e9f076da4d62cb3ca5102706a72c381e24fe517903804d38db4c4b46e9d024387f6b8cf languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.48.1, @typescript-eslint/utils@npm:^8.8.1": +"@typescript-eslint/utils@npm:^8.8.1": version: 8.48.1 resolution: "@typescript-eslint/utils@npm:8.48.1" dependencies: @@ -11492,21 +11566,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.57.2, @typescript-eslint/utils@npm:^8.57.0": - version: 8.57.2 - resolution: "@typescript-eslint/utils@npm:8.57.2" - dependencies: - "@eslint-community/eslint-utils": "npm:^4.9.1" - "@typescript-eslint/scope-manager": "npm:8.57.2" - "@typescript-eslint/types": "npm:8.57.2" - "@typescript-eslint/typescript-estree": "npm:8.57.2" - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/5771f3d4206004cc817a6556a472926b4c1c885dc448049c10ffab1d5aac7bd59450a391fb57ce8ef31a8367e9c8ddb3bc9370c4e83fc8b61f50fd5189390e8f - languageName: node - linkType: hard - "@typescript-eslint/visitor-keys@npm:8.48.1": version: 8.48.1 resolution: "@typescript-eslint/visitor-keys@npm:8.48.1" @@ -11517,13 +11576,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:8.57.2": - version: 8.57.2 - resolution: "@typescript-eslint/visitor-keys@npm:8.57.2" +"@typescript-eslint/visitor-keys@npm:8.72.2": + version: 8.72.2 + resolution: "@typescript-eslint/visitor-keys@npm:8.72.2" dependencies: - "@typescript-eslint/types": "npm:8.57.2" + "@typescript-eslint/types": "npm:8.72.2" eslint-visitor-keys: "npm:^5.0.0" - checksum: 10c0/8ceb8c228bf97b3e4b343bf6e42a91998d2522f459eb6b53c6bfad4898a9df74295660893dee6b698bdbbda537e968bfc13a3c56fc341089ebfba13db766a574 + checksum: 10c0/134e441f0c1d055b6b82f59887bc96d07a89909f8e910622e1e95d7fbf42de9c4fa1910d8335af252910c298b474565d2c34888608130d53238eee1504df9894 languageName: node linkType: hard @@ -12239,7 +12298,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.12.4, ajv@npm:^6.12.5": +"ajv@npm:^6.12.5": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -12251,6 +12310,18 @@ __metadata: languageName: node linkType: hard +"ajv@npm:^6.14.0": + version: 6.15.0 + resolution: "ajv@npm:6.15.0" + dependencies: + fast-deep-equal: "npm:^3.1.1" + fast-json-stable-stringify: "npm:^2.0.0" + json-schema-traverse: "npm:^0.4.1" + uri-js: "npm:^4.2.2" + checksum: 10c0/67966499dd272ecde1c2e467084411132891523d057487587879d39ac04207f4351b7b2324c83198013967fbfa632c1612adc960114a30770fbe07a0773b32c2 + languageName: node + linkType: hard + "ajv@npm:^8.0.0, ajv@npm:^8.0.1, ajv@npm:^8.17.1, ajv@npm:^8.20.0, ajv@npm:^8.9.0": version: 8.20.0 resolution: "ajv@npm:8.20.0" @@ -12445,7 +12516,7 @@ __metadata: languageName: node linkType: hard -"aria-query@npm:^5.0.0, aria-query@npm:^5.3.2": +"aria-query@npm:^5.0.0": version: 5.3.2 resolution: "aria-query@npm:5.3.2" checksum: 10c0/003c7e3e2cff5540bf7a7893775fc614de82b0c5dde8ae823d47b7a28a9d4da1f7ed85f340bdb93d5649caa927755f0e31ecc7ab63edfdfc00c8ef07e505e03e @@ -12469,22 +12540,6 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.6, array-includes@npm:^3.1.8, array-includes@npm:^3.1.9": - version: 3.1.9 - resolution: "array-includes@npm:3.1.9" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.4" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.24.0" - es-object-atoms: "npm:^1.1.1" - get-intrinsic: "npm:^1.3.0" - is-string: "npm:^1.1.1" - math-intrinsics: "npm:^1.1.0" - checksum: 10c0/0235fa69078abeac05ac4250699c44996bc6f774a9cbe45db48674ce6bd142f09b327d31482ff75cf03344db4ea03eae23edb862d59378b484b47ed842574856 - languageName: node - linkType: hard - "array-union@npm:^2.1.0": version: 2.1.0 resolution: "array-union@npm:2.1.0" @@ -12492,36 +12547,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlast@npm:^1.2.5": - version: 1.2.5 - resolution: "array.prototype.findlast@npm:1.2.5" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - es-errors: "npm:^1.3.0" - es-object-atoms: "npm:^1.0.0" - es-shim-unscopables: "npm:^1.0.2" - checksum: 10c0/ddc952b829145ab45411b9d6adcb51a8c17c76bf89c9dd64b52d5dffa65d033da8c076ed2e17091779e83bc892b9848188d7b4b33453c5565e65a92863cb2775 - languageName: node - linkType: hard - -"array.prototype.findlastindex@npm:^1.2.6": - version: 1.2.6 - resolution: "array.prototype.findlastindex@npm:1.2.6" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.4" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.9" - es-errors: "npm:^1.3.0" - es-object-atoms: "npm:^1.1.1" - es-shim-unscopables: "npm:^1.1.0" - checksum: 10c0/82559310d2e57ec5f8fc53d7df420e3abf0ba497935de0a5570586035478ba7d07618cb18e2d4ada2da514c8fb98a034aaf5c06caa0a57e2f7f4c4adedef5956 - languageName: node - linkType: hard - -"array.prototype.flat@npm:^1.2.3, array.prototype.flat@npm:^1.3.3": +"array.prototype.flat@npm:^1.2.3": version: 1.3.3 resolution: "array.prototype.flat@npm:1.3.3" dependencies: @@ -12533,43 +12559,6 @@ __metadata: languageName: node linkType: hard -"array.prototype.flat@npm:^1.3.1": - version: 1.3.1 - resolution: "array.prototype.flat@npm:1.3.1" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.1.4" - es-abstract: "npm:^1.20.4" - es-shim-unscopables: "npm:^1.0.0" - checksum: 10c0/8eda91d6925cc84b73ebf5a3d406ff28745d93a22ef6a0afb967755107081a937cf6c4555d3c18354870b2c5366c0ff51b3f597c11079e689869810a418b1b4f - languageName: node - linkType: hard - -"array.prototype.flatmap@npm:^1.3.2, array.prototype.flatmap@npm:^1.3.3": - version: 1.3.3 - resolution: "array.prototype.flatmap@npm:1.3.3" - dependencies: - call-bind: "npm:^1.0.8" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.5" - es-shim-unscopables: "npm:^1.0.2" - checksum: 10c0/ba899ea22b9dc9bf276e773e98ac84638ed5e0236de06f13d63a90b18ca9e0ec7c97d622d899796e3773930b946cd2413d098656c0c5d8cc58c6f25c21e6bd54 - languageName: node - linkType: hard - -"array.prototype.tosorted@npm:^1.1.4": - version: 1.1.4 - resolution: "array.prototype.tosorted@npm:1.1.4" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.3" - es-errors: "npm:^1.3.0" - es-shim-unscopables: "npm:^1.0.2" - checksum: 10c0/eb3c4c4fc0381b0bf6dba2ea4d48d367c2827a0d4236a5718d97caaccc6b78f11f4cadf090736e86301d295a6aa4967ed45568f92ced51be8cbbacd9ca410943 - languageName: node - linkType: hard - "arraybuffer.prototype.slice@npm:^1.0.4": version: 1.0.4 resolution: "arraybuffer.prototype.slice@npm:1.0.4" @@ -12651,13 +12640,6 @@ __metadata: languageName: node linkType: hard -"ast-types-flow@npm:^0.0.8": - version: 0.0.8 - resolution: "ast-types-flow@npm:0.0.8" - checksum: 10c0/f2a0ba8055353b743c41431974521e5e852a9824870cd6fce2db0e538ac7bf4da406bbd018d109af29ff3f8f0993f6a730c9eddbd0abd031fbcb29ca75c1014e - languageName: node - linkType: hard - "ast-types@npm:0.14.2": version: 0.14.2 resolution: "ast-types@npm:0.14.2" @@ -12734,13 +12716,6 @@ __metadata: languageName: node linkType: hard -"available-typed-arrays@npm:^1.0.5": - version: 1.0.5 - resolution: "available-typed-arrays@npm:1.0.5" - checksum: 10c0/c4df567ca72d2754a6cbad20088f5f98b1065b3360178169fa9b44ea101af62c0f423fc3854fa820fd6895b6b9171b8386e71558203103ff8fc2ad503fdcc660 - languageName: node - linkType: hard - "available-typed-arrays@npm:^1.0.7": version: 1.0.7 resolution: "available-typed-arrays@npm:1.0.7" @@ -12757,13 +12732,6 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:^4.10.0": - version: 4.11.0 - resolution: "axe-core@npm:4.11.0" - checksum: 10c0/7d7020a568a824c303711858c2fcfe56d001d27e46c0c2ff75dc31b436cfddfd4857a301e70536cc9e64829d25338f7fb782102d23497ebdc66801e9900fc895 - languageName: node - linkType: hard - "axios@npm:^1.13.5": version: 1.21.1 resolution: "axios@npm:1.21.1" @@ -12776,13 +12744,6 @@ __metadata: languageName: node linkType: hard -"axobject-query@npm:^4.1.0": - version: 4.1.0 - resolution: "axobject-query@npm:4.1.0" - checksum: 10c0/c470e4f95008f232eadd755b018cb55f16c03ccf39c027b941cd8820ac6b68707ce5d7368a46756db4256fbc91bb4ead368f84f7fb034b2b7932f082f6dc0775 - languageName: node - linkType: hard - "babel-jest@npm:30.2.0": version: 30.2.0 resolution: "babel-jest@npm:30.2.0" @@ -13020,9 +12981,9 @@ __metadata: linkType: hard "birecord@npm:^0.1.1": - version: 0.1.1 - resolution: "birecord@npm:0.1.1" - checksum: 10c0/7c7f8c38caebd98bcbfc8a209eaa3044384636ea162757de670c8633b7d1064b3b58e4e3d3a48fe10e279cd39290a76a31a18956a1c76b2b13522b6cf0293238 + version: 0.1.2 + resolution: "birecord@npm:0.1.2" + checksum: 10c0/0df8f0c6f89c4c558127ba026ebec8b845d3775a8af9cf918f65bab90240c46393a06bf6b285e718415736ca43db4dab990ab05d5e0c5ff0bd1c05be29beff5e languageName: node linkType: hard @@ -14842,13 +14803,6 @@ __metadata: languageName: node linkType: hard -"damerau-levenshtein@npm:^1.0.8": - version: 1.0.8 - resolution: "damerau-levenshtein@npm:1.0.8" - checksum: 10c0/4c2647e0f42acaee7d068756c1d396e296c3556f9c8314bac1ac63ffb236217ef0e7e58602b18bb2173deec7ec8e0cac8e27cccf8f5526666b4ff11a13ad54a3 - languageName: node - linkType: hard - "data-uri-to-buffer@npm:^2.0.0": version: 2.0.2 resolution: "data-uri-to-buffer@npm:2.0.2" @@ -14945,7 +14899,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:4.x, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.4.0": +"debug@npm:4, debug@npm:4.x, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.4, debug@npm:^4.4.0": version: 4.4.0 resolution: "debug@npm:4.4.0" dependencies: @@ -14966,7 +14920,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:^4.3.5, debug@npm:^4.4.3": +"debug@npm:^4.3.2, debug@npm:^4.3.5, debug@npm:^4.4.3": version: 4.4.3 resolution: "debug@npm:4.4.3" dependencies: @@ -15146,16 +15100,6 @@ __metadata: languageName: node linkType: hard -"define-properties@npm:^1.1.4": - version: 1.2.0 - resolution: "define-properties@npm:1.2.0" - dependencies: - has-property-descriptors: "npm:^1.0.0" - object-keys: "npm:^1.1.1" - checksum: 10c0/34b58cae4651936a3c8c720310ce393a3227f5123640ab5402e7d6e59bb44f8295b789cb5d74e7513682b2e60ff20586d6f52b726d964d617abffa3da76344e0 - languageName: node - linkType: hard - "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -15305,15 +15249,6 @@ __metadata: languageName: node linkType: hard -"doctrine@npm:^2.1.0": - version: 2.1.0 - resolution: "doctrine@npm:2.1.0" - dependencies: - esutils: "npm:^2.0.2" - checksum: 10c0/b6416aaff1f380bf56c3b552f31fdf7a69b45689368deca72d28636f41c16bb28ec3ebc40ace97db4c1afc0ceeb8120e8492fe0046841c94c2933b2e30a7d5ac - languageName: node - linkType: hard - "dom-accessibility-api@npm:^0.5.9": version: 0.5.16 resolution: "dom-accessibility-api@npm:0.5.16" @@ -15594,16 +15529,6 @@ __metadata: languageName: node linkType: hard -"enhanced-resolve@npm:^5.12.0": - version: 5.17.1 - resolution: "enhanced-resolve@npm:5.17.1" - dependencies: - graceful-fs: "npm:^4.2.4" - tapable: "npm:^2.2.0" - checksum: 10c0/81a0515675eca17efdba2cf5bad87abc91a528fc1191aad50e275e74f045b41506167d420099022da7181c8d787170ea41e4a11a0b10b7a16f6237daecb15370 - languageName: node - linkType: hard - "enhanced-resolve@npm:^5.19.0": version: 5.20.0 resolution: "enhanced-resolve@npm:5.20.0" @@ -15680,7 +15605,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.17.5, es-abstract@npm:^1.23.2, es-abstract@npm:^1.23.3, es-abstract@npm:^1.23.5, es-abstract@npm:^1.23.6, es-abstract@npm:^1.23.9, es-abstract@npm:^1.24.0": +"es-abstract@npm:^1.23.5, es-abstract@npm:^1.23.9, es-abstract@npm:^1.24.0": version: 1.24.0 resolution: "es-abstract@npm:1.24.0" dependencies: @@ -15742,47 +15667,6 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.19.0, es-abstract@npm:^1.20.4": - version: 1.21.1 - resolution: "es-abstract@npm:1.21.1" - dependencies: - available-typed-arrays: "npm:^1.0.5" - call-bind: "npm:^1.0.2" - es-set-tostringtag: "npm:^2.0.1" - es-to-primitive: "npm:^1.2.1" - function-bind: "npm:^1.1.1" - function.prototype.name: "npm:^1.1.5" - get-intrinsic: "npm:^1.1.3" - get-symbol-description: "npm:^1.0.0" - globalthis: "npm:^1.0.3" - gopd: "npm:^1.0.1" - has: "npm:^1.0.3" - has-property-descriptors: "npm:^1.0.0" - has-proto: "npm:^1.0.1" - has-symbols: "npm:^1.0.3" - internal-slot: "npm:^1.0.4" - is-array-buffer: "npm:^3.0.1" - is-callable: "npm:^1.2.7" - is-negative-zero: "npm:^2.0.2" - is-regex: "npm:^1.1.4" - is-shared-array-buffer: "npm:^1.0.2" - is-string: "npm:^1.0.7" - is-typed-array: "npm:^1.1.10" - is-weakref: "npm:^1.0.2" - object-inspect: "npm:^1.12.2" - object-keys: "npm:^1.1.1" - object.assign: "npm:^4.1.4" - regexp.prototype.flags: "npm:^1.4.3" - safe-regex-test: "npm:^1.0.0" - string.prototype.trimend: "npm:^1.0.6" - string.prototype.trimstart: "npm:^1.0.6" - typed-array-length: "npm:^1.0.4" - unbox-primitive: "npm:^1.0.2" - which-typed-array: "npm:^1.1.9" - checksum: 10c0/f05b7c6a0c2ff951bb358e252daa3b059de6aad2222d1338352a104c252824e9eeba7c18961b7e56b9d1bfb39f99580469144b39f05ec44af170b10dd69d4221 - languageName: node - linkType: hard - "es-aggregate-error@npm:^1.0.7": version: 1.0.14 resolution: "es-aggregate-error@npm:1.0.14" @@ -15813,30 +15697,6 @@ __metadata: languageName: node linkType: hard -"es-iterator-helpers@npm:^1.2.1": - version: 1.2.1 - resolution: "es-iterator-helpers@npm:1.2.1" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.3" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.6" - es-errors: "npm:^1.3.0" - es-set-tostringtag: "npm:^2.0.3" - function-bind: "npm:^1.1.2" - get-intrinsic: "npm:^1.2.6" - globalthis: "npm:^1.0.4" - gopd: "npm:^1.2.0" - has-property-descriptors: "npm:^1.0.2" - has-proto: "npm:^1.2.0" - has-symbols: "npm:^1.1.0" - internal-slot: "npm:^1.1.0" - iterator.prototype: "npm:^1.1.4" - safe-array-concat: "npm:^1.1.3" - checksum: 10c0/97e3125ca472d82d8aceea11b790397648b52c26d8768ea1c1ee6309ef45a8755bb63225a43f3150c7591cffc17caf5752459f1e70d583b4184370a8f04ebd2f - languageName: node - linkType: hard - "es-module-lexer@npm:^1.5.0": version: 1.5.3 resolution: "es-module-lexer@npm:1.5.3" @@ -15867,18 +15727,7 @@ __metadata: languageName: node linkType: hard -"es-set-tostringtag@npm:^2.0.1": - version: 2.0.1 - resolution: "es-set-tostringtag@npm:2.0.1" - dependencies: - get-intrinsic: "npm:^1.1.3" - has: "npm:^1.0.3" - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/9af096365e3861bb29755cc5f76f15f66a7eab0e83befca396129090c1d9737e54090278b8e5357e97b5f0a5b0459fca07c40c6740884c2659cbf90ef8e508cc - languageName: node - linkType: hard - -"es-set-tostringtag@npm:^2.0.3, es-set-tostringtag@npm:^2.1.0": +"es-set-tostringtag@npm:^2.1.0": version: 2.1.0 resolution: "es-set-tostringtag@npm:2.1.0" dependencies: @@ -15890,16 +15739,7 @@ __metadata: languageName: node linkType: hard -"es-shim-unscopables@npm:^1.0.0": - version: 1.0.0 - resolution: "es-shim-unscopables@npm:1.0.0" - dependencies: - has: "npm:^1.0.3" - checksum: 10c0/d54a66239fbd19535b3e50333913260394f14d2d7adb136a95396a13ca584bab400cf9cb2ffd9232f3fe2f0362540bd3a708240c493e46e13fe0b90cfcfedc3d - languageName: node - linkType: hard - -"es-shim-unscopables@npm:^1.0.2, es-shim-unscopables@npm:^1.1.0": +"es-shim-unscopables@npm:^1.0.2": version: 1.1.0 resolution: "es-shim-unscopables@npm:1.1.0" dependencies: @@ -15908,17 +15748,6 @@ __metadata: languageName: node linkType: hard -"es-to-primitive@npm:^1.2.1": - version: 1.2.1 - resolution: "es-to-primitive@npm:1.2.1" - dependencies: - is-callable: "npm:^1.1.4" - is-date-object: "npm:^1.0.1" - is-symbol: "npm:^1.0.2" - checksum: 10c0/0886572b8dc075cb10e50c0af62a03d03a68e1e69c388bd4f10c0649ee41b1fbb24840a1b7e590b393011b5cdbe0144b776da316762653685432df37d6de60f1 - languageName: node - linkType: hard - "es-to-primitive@npm:^1.3.0": version: 1.3.0 resolution: "es-to-primitive@npm:1.3.0" @@ -16271,93 +16100,6 @@ __metadata: languageName: node linkType: hard -"eslint-config-next@npm:^16.3.4": - version: 16.3.4 - resolution: "eslint-config-next@npm:16.3.4" - dependencies: - "@next/eslint-plugin-next": "npm:16.3.4" - eslint-import-resolver-node: "npm:^0.3.6" - eslint-import-resolver-typescript: "npm:^3.5.2" - eslint-plugin-import: "npm:^2.32.0" - eslint-plugin-jsx-a11y: "npm:^6.10.0" - eslint-plugin-react: "npm:^7.37.0" - eslint-plugin-react-hooks: "npm:^7.0.0" - globals: "npm:16.4.0" - typescript-eslint: "npm:^8.46.0" - peerDependencies: - eslint: ">=9.0.0" - typescript: ">=3.3.1" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10c0/70d8a2e5232d14a2a56105a0957c57e57303f1d60746b4c2564fb52d39cb9b0c8ecef6fb8e97c2ec0c364ed2058818fd3385e5ad449b33a033e1f7c457284f33 - languageName: node - linkType: hard - -"eslint-config-prettier@npm:^9.1.0": - version: 9.1.0 - resolution: "eslint-config-prettier@npm:9.1.0" - peerDependencies: - eslint: ">=7.0.0" - bin: - eslint-config-prettier: bin/cli.js - checksum: 10c0/6d332694b36bc9ac6fdb18d3ca2f6ac42afa2ad61f0493e89226950a7091e38981b66bac2b47ba39d15b73fff2cd32c78b850a9cf9eed9ca9a96bfb2f3a2f10d - languageName: node - linkType: hard - -"eslint-import-resolver-node@npm:^0.3.6, eslint-import-resolver-node@npm:^0.3.9": - version: 0.3.9 - resolution: "eslint-import-resolver-node@npm:0.3.9" - dependencies: - debug: "npm:^3.2.7" - is-core-module: "npm:^2.13.0" - resolve: "npm:^1.22.4" - checksum: 10c0/0ea8a24a72328a51fd95aa8f660dcca74c1429806737cf10261ab90cfcaaf62fd1eff664b76a44270868e0a932711a81b250053942595bcd00a93b1c1575dd61 - languageName: node - linkType: hard - -"eslint-import-resolver-typescript@npm:^3.5.2": - version: 3.6.1 - resolution: "eslint-import-resolver-typescript@npm:3.6.1" - dependencies: - debug: "npm:^4.3.4" - enhanced-resolve: "npm:^5.12.0" - eslint-module-utils: "npm:^2.7.4" - fast-glob: "npm:^3.3.1" - get-tsconfig: "npm:^4.5.0" - is-core-module: "npm:^2.11.0" - is-glob: "npm:^4.0.3" - peerDependencies: - eslint: "*" - eslint-plugin-import: "*" - checksum: 10c0/cb1cb4389916fe78bf8c8567aae2f69243dbfe624bfe21078c56ad46fa1ebf0634fa7239dd3b2055ab5c27359e4b4c28b69b11fcb3a5df8a9e6f7add8e034d86 - languageName: node - linkType: hard - -"eslint-module-utils@npm:^2.12.1": - version: 2.12.1 - resolution: "eslint-module-utils@npm:2.12.1" - dependencies: - debug: "npm:^3.2.7" - peerDependenciesMeta: - eslint: - optional: true - checksum: 10c0/6f4efbe7a91ae49bf67b4ab3644cb60bc5bd7db4cb5521de1b65be0847ffd3fb6bce0dd68f0995e1b312d137f768e2a1f842ee26fe73621afa05f850628fdc40 - languageName: node - linkType: hard - -"eslint-module-utils@npm:^2.7.4": - version: 2.7.4 - resolution: "eslint-module-utils@npm:2.7.4" - dependencies: - debug: "npm:^3.2.7" - peerDependenciesMeta: - eslint: - optional: true - checksum: 10c0/a14368a03d01824e4780e76df08460bbd5dcbf9d58944faf8660079559d169ab2b163b9b1b21fa2955c31c76f4ad348fdcde1bf0ef50cda7e14b89f6257b0eda - languageName: node - linkType: hard - "eslint-plugin-es-x@npm:^7.5.0": version: 7.5.0 resolution: "eslint-plugin-es-x@npm:7.5.0" @@ -16371,60 +16113,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.32.0": - version: 2.32.0 - resolution: "eslint-plugin-import@npm:2.32.0" - dependencies: - "@rtsao/scc": "npm:^1.1.0" - array-includes: "npm:^3.1.9" - array.prototype.findlastindex: "npm:^1.2.6" - array.prototype.flat: "npm:^1.3.3" - array.prototype.flatmap: "npm:^1.3.3" - debug: "npm:^3.2.7" - doctrine: "npm:^2.1.0" - eslint-import-resolver-node: "npm:^0.3.9" - eslint-module-utils: "npm:^2.12.1" - hasown: "npm:^2.0.2" - is-core-module: "npm:^2.16.1" - is-glob: "npm:^4.0.3" - minimatch: "npm:^3.1.2" - object.fromentries: "npm:^2.0.8" - object.groupby: "npm:^1.0.3" - object.values: "npm:^1.2.1" - semver: "npm:^6.3.1" - string.prototype.trimend: "npm:^1.0.9" - tsconfig-paths: "npm:^3.15.0" - peerDependencies: - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9 - checksum: 10c0/bfb1b8fc8800398e62ddfefbf3638d185286edfed26dfe00875cc2846d954491b4f5112457831588b757fa789384e1ae585f812614c4797f0499fa234fd4a48b - languageName: node - linkType: hard - -"eslint-plugin-jsx-a11y@npm:^6.10.0": - version: 6.10.2 - resolution: "eslint-plugin-jsx-a11y@npm:6.10.2" - dependencies: - aria-query: "npm:^5.3.2" - array-includes: "npm:^3.1.8" - array.prototype.flatmap: "npm:^1.3.2" - ast-types-flow: "npm:^0.0.8" - axe-core: "npm:^4.10.0" - axobject-query: "npm:^4.1.0" - damerau-levenshtein: "npm:^1.0.8" - emoji-regex: "npm:^9.2.2" - hasown: "npm:^2.0.2" - jsx-ast-utils: "npm:^3.3.5" - language-tags: "npm:^1.0.9" - minimatch: "npm:^3.1.2" - object.fromentries: "npm:^2.0.8" - safe-regex-test: "npm:^1.0.3" - string.prototype.includes: "npm:^2.0.1" - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9 - checksum: 10c0/d93354e03b0cf66f018d5c50964e074dffe4ddf1f9b535fa020d19c4ae45f89c1a16e9391ca61ac3b19f7042c751ac0d361a056a65cbd1de24718a53ff8daa6e - languageName: node - linkType: hard - "eslint-plugin-n@npm:^16.4.0": version: 16.4.0 resolution: "eslint-plugin-n@npm:16.4.0" @@ -16456,26 +16144,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-prettier@npm:^5.2.1": - version: 5.2.1 - resolution: "eslint-plugin-prettier@npm:5.2.1" - dependencies: - prettier-linter-helpers: "npm:^1.0.0" - synckit: "npm:^0.9.1" - peerDependencies: - "@types/eslint": ">=8.0.0" - eslint: ">=8.0.0" - eslint-config-prettier: "*" - prettier: ">=3.0.0" - peerDependenciesMeta: - "@types/eslint": - optional: true - eslint-config-prettier: - optional: true - checksum: 10c0/4bc8bbaf5bb556c9c501dcdff369137763c49ccaf544f9fa91400360ed5e3a3f1234ab59690e06beca5b1b7e6f6356978cdd3b02af6aba3edea2ffe69ca6e8b2 - languageName: node - linkType: hard - "eslint-plugin-react-dom@npm:3.0.0": version: 3.0.0 resolution: "eslint-plugin-react-dom@npm:3.0.0" @@ -16505,21 +16173,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:^7.0.0, eslint-plugin-react-hooks@npm:^7.0.1": - version: 7.0.1 - resolution: "eslint-plugin-react-hooks@npm:7.0.1" - dependencies: - "@babel/core": "npm:^7.24.4" - "@babel/parser": "npm:^7.24.4" - hermes-parser: "npm:^0.25.1" - zod: "npm:^3.25.0 || ^4.0.0" - zod-validation-error: "npm:^3.5.0 || ^4.0.0" - peerDependencies: - eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 - checksum: 10c0/1e711d1a9d1fa9cfc51fa1572500656577201199c70c795c6a27adfc1df39e5c598f69aab6aa91117753d23cc1f11388579a2bed14921cf9a4efe60ae8618496 - languageName: node - linkType: hard - "eslint-plugin-react-naming-convention@npm:3.0.0": version: 3.0.0 resolution: "eslint-plugin-react-naming-convention@npm:3.0.0" @@ -16604,34 +16257,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react@npm:^7.37.0": - version: 7.37.5 - resolution: "eslint-plugin-react@npm:7.37.5" - dependencies: - array-includes: "npm:^3.1.8" - array.prototype.findlast: "npm:^1.2.5" - array.prototype.flatmap: "npm:^1.3.3" - array.prototype.tosorted: "npm:^1.1.4" - doctrine: "npm:^2.1.0" - es-iterator-helpers: "npm:^1.2.1" - estraverse: "npm:^5.3.0" - hasown: "npm:^2.0.2" - jsx-ast-utils: "npm:^2.4.1 || ^3.0.0" - minimatch: "npm:^3.1.2" - object.entries: "npm:^1.1.9" - object.fromentries: "npm:^2.0.8" - object.values: "npm:^1.2.1" - prop-types: "npm:^15.8.1" - resolve: "npm:^2.0.0-next.5" - semver: "npm:^6.3.1" - string.prototype.matchall: "npm:^4.0.12" - string.prototype.repeat: "npm:^1.0.0" - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7 - checksum: 10c0/c850bfd556291d4d9234f5ca38db1436924a1013627c8ab1853f77cac73ec19b020e861e6c7b783436a48b6ffcdfba4547598235a37ad4611b6739f65fd8ad57 - languageName: node - linkType: hard - "eslint-plugin-security@npm:^3.0.1": version: 3.0.1 resolution: "eslint-plugin-security@npm:3.0.1" @@ -16704,22 +16329,22 @@ __metadata: linkType: hard "eslint@npm:^9.39.1": - version: 9.39.1 - resolution: "eslint@npm:9.39.1" + version: 9.39.5 + resolution: "eslint@npm:9.39.5" dependencies: "@eslint-community/eslint-utils": "npm:^4.8.0" "@eslint-community/regexpp": "npm:^4.12.1" - "@eslint/config-array": "npm:^0.21.1" + "@eslint/config-array": "npm:^0.21.2" "@eslint/config-helpers": "npm:^0.4.2" "@eslint/core": "npm:^0.17.0" - "@eslint/eslintrc": "npm:^3.3.1" - "@eslint/js": "npm:9.39.1" + "@eslint/eslintrc": "npm:^3.3.6" + "@eslint/js": "npm:9.39.5" "@eslint/plugin-kit": "npm:^0.4.1" "@humanfs/node": "npm:^0.16.6" "@humanwhocodes/module-importer": "npm:^1.0.1" "@humanwhocodes/retry": "npm:^0.4.2" "@types/estree": "npm:^1.0.6" - ajv: "npm:^6.12.4" + ajv: "npm:^6.14.0" chalk: "npm:^4.0.0" cross-spawn: "npm:^7.0.6" debug: "npm:^4.3.2" @@ -16738,7 +16363,7 @@ __metadata: is-glob: "npm:^4.0.0" json-stable-stringify-without-jsonify: "npm:^1.0.1" lodash.merge: "npm:^4.6.2" - minimatch: "npm:^3.1.2" + minimatch: "npm:^3.1.5" natural-compare: "npm:^1.4.0" optionator: "npm:^0.9.3" peerDependencies: @@ -16748,7 +16373,7 @@ __metadata: optional: true bin: eslint: bin/eslint.js - checksum: 10c0/59b2480639404ba24578ca480f973683b87b7aac8aa7e349240474a39067804fd13cd8b9cb22fee074170b8c7c563b57bab703ec0f0d3f81ea017e5d2cad299d + checksum: 10c0/46335bfcf180ffea9955b38122b578ac9e075b6220e5695be1c988354ea429b04f5db05edc132aa9019ce9847736e9ca0c9ea6d6cedda3c06209c9b52dbd0fd5 languageName: node linkType: hard @@ -16774,11 +16399,11 @@ __metadata: linkType: hard "esquery@npm:^1.5.0": - version: 1.6.0 - resolution: "esquery@npm:1.6.0" + version: 1.7.0 + resolution: "esquery@npm:1.7.0" dependencies: estraverse: "npm:^5.1.0" - checksum: 10c0/cb9065ec605f9da7a76ca6dadb0619dfb611e37a81e318732977d90fab50a256b95fee2d925fba7c2f3f0523aa16f91587246693bc09bc34d5a59575fe6e93d2 + checksum: 10c0/77d5173db450b66f3bc685d11af4c90cffeedb340f34a39af96d43509a335ce39c894fd79233df32d38f5e4e219fa0f7076f6ec90bae8320170ba082c0db4793 languageName: node linkType: hard @@ -16798,7 +16423,7 @@ __metadata: languageName: node linkType: hard -"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0, estraverse@npm:^5.3.0": +"estraverse@npm:^5.1.0, estraverse@npm:^5.2.0": version: 5.3.0 resolution: "estraverse@npm:5.3.0" checksum: 10c0/1ff9447b96263dec95d6d67431c5e0771eb9776427421260a3e2f0fdd5d6bd4f8e37a7338f5ad2880c9f143450c9b1e4fc2069060724570a49cf9cf0312bd107 @@ -17168,19 +16793,6 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.3.1": - version: 3.3.2 - resolution: "fast-glob@npm:3.3.2" - dependencies: - "@nodelib/fs.stat": "npm:^2.0.2" - "@nodelib/fs.walk": "npm:^1.2.3" - glob-parent: "npm:^5.1.2" - merge2: "npm:^1.3.0" - micromatch: "npm:^4.0.4" - checksum: 10c0/42baad7b9cd40b63e42039132bde27ca2cb3a4950d0a0f9abe4639ea1aa9d3e3b40f98b1fe31cbc0cc17b664c9ea7447d911a152fa34ec5b72977b125a6fc845 - languageName: node - linkType: hard - "fast-glob@npm:^3.3.3": version: 3.3.3 resolution: "fast-glob@npm:3.3.3" @@ -17519,13 +17131,20 @@ __metadata: languageName: node linkType: hard -"flatted@npm:^3.1.0, flatted@npm:^3.2.9, flatted@npm:^3.3.3": +"flatted@npm:^3.1.0, flatted@npm:^3.3.3": version: 3.4.2 resolution: "flatted@npm:3.4.2" checksum: 10c0/a65b67aae7172d6cdf63691be7de6c5cd5adbdfdfe2e9da1a09b617c9512ed794037741ee53d93114276bff3f93cd3b0d97d54f9b316e1e4885dde6e9ffdf7ed languageName: node linkType: hard +"flatted@npm:^3.2.9": + version: 3.4.4 + resolution: "flatted@npm:3.4.4" + checksum: 10c0/a3a52a88ea5a4c333e5a1f097dcd87a037fa31c236a77cf46222c2aa4036ef895ab9bc76138a66d9dc22bdb3652128f9598cd26e7439561bf19f67276e2bc37e + languageName: node + linkType: hard + "fn-args@npm:^5.0.0": version: 5.0.0 resolution: "fn-args@npm:5.0.0" @@ -17764,18 +17383,6 @@ __metadata: languageName: node linkType: hard -"function.prototype.name@npm:^1.1.5": - version: 1.1.5 - resolution: "function.prototype.name@npm:1.1.5" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.1.3" - es-abstract: "npm:^1.19.0" - functions-have-names: "npm:^1.2.2" - checksum: 10c0/b75fb8c5261f03a54f7cb53a8c99e0c40297efc3cf750c51d3a2e56f6741701c14eda51986d30c24063136a4c32d1643df9d1dd2f2a14b64fa011edd3e7117ae - languageName: node - linkType: hard - "function.prototype.name@npm:^1.1.6, function.prototype.name@npm:^1.1.8": version: 1.1.8 resolution: "function.prototype.name@npm:1.1.8" @@ -17790,7 +17397,7 @@ __metadata: languageName: node linkType: hard -"functions-have-names@npm:^1.2.2, functions-have-names@npm:^1.2.3": +"functions-have-names@npm:^1.2.3": version: 1.2.3 resolution: "functions-have-names@npm:1.2.3" checksum: 10c0/33e77fd29bddc2d9bb78ab3eb854c165909201f88c75faa8272e35899e2d35a8a642a15e7420ef945e1f64a9670d6aa3ec744106b2aa42be68ca5114025954ca @@ -17854,17 +17461,6 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3, get-intrinsic@npm:^1.2.0": - version: 1.2.0 - resolution: "get-intrinsic@npm:1.2.0" - dependencies: - function-bind: "npm:^1.1.1" - has: "npm:^1.0.3" - has-symbols: "npm:^1.0.3" - checksum: 10c0/7c564f6b1061e6ca9eb1abab424a2cf80b93e75dcde65229d504e4055aa0ea54f88330e9b75d10e41c72bca881a947e84193b3549a4692d836f304239a178d63 - languageName: node - linkType: hard - "get-intrinsic@npm:^1.2.4, get-intrinsic@npm:^1.2.5, get-intrinsic@npm:^1.2.7": version: 1.3.1 resolution: "get-intrinsic@npm:1.3.1" @@ -17918,7 +17514,7 @@ __metadata: languageName: node linkType: hard -"get-proto@npm:^1.0.0, get-proto@npm:^1.0.1": +"get-proto@npm:^1.0.1": version: 1.0.1 resolution: "get-proto@npm:1.0.1" dependencies: @@ -17955,16 +17551,6 @@ __metadata: languageName: node linkType: hard -"get-symbol-description@npm:^1.0.0": - version: 1.0.0 - resolution: "get-symbol-description@npm:1.0.0" - dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.1" - checksum: 10c0/23bc3b44c221cdf7669a88230c62f4b9e30393b61eb21ba4400cb3e346801bd8f95fe4330ee78dbae37aecd874646d53e3e76a17a654d0c84c77f6690526d6bb - languageName: node - linkType: hard - "get-symbol-description@npm:^1.1.0": version: 1.1.0 resolution: "get-symbol-description@npm:1.1.0" @@ -17985,7 +17571,7 @@ __metadata: languageName: node linkType: hard -"get-tsconfig@npm:^4.5.0, get-tsconfig@npm:^4.7.0": +"get-tsconfig@npm:^4.7.0": version: 4.7.2 resolution: "get-tsconfig@npm:4.7.2" dependencies: @@ -18115,13 +17701,6 @@ __metadata: languageName: node linkType: hard -"globals@npm:16.4.0": - version: 16.4.0 - resolution: "globals@npm:16.4.0" - checksum: 10c0/a14b447a78b664b42f6d324e8675fcae6fe5e57924fecc1f6328dce08af9b2ca3a3138501e1b1f244a49814a732dc60cfc1aa24e714e0b64ac8bd18910bfac90 - languageName: node - linkType: hard - "globals@npm:^11.1.0": version: 11.12.0 resolution: "globals@npm:11.12.0" @@ -18143,15 +17722,6 @@ __metadata: languageName: node linkType: hard -"globalthis@npm:^1.0.3": - version: 1.0.3 - resolution: "globalthis@npm:1.0.3" - dependencies: - define-properties: "npm:^1.1.3" - checksum: 10c0/0db6e9af102a5254630351557ac15e6909bc7459d3e3f6b001e59fe784c96d31108818f032d9095739355a88467459e6488ff16584ee6250cd8c27dec05af4b0 - languageName: node - linkType: hard - "globalthis@npm:^1.0.4": version: 1.0.4 resolution: "globalthis@npm:1.0.4" @@ -18218,13 +17788,6 @@ __metadata: languageName: node linkType: hard -"graphemer@npm:^1.4.0": - version: 1.4.0 - resolution: "graphemer@npm:1.4.0" - checksum: 10c0/e951259d8cd2e0d196c72ec711add7115d42eb9a8146c8eeda5b8d3ac91e5dd816b9cd68920726d9fd4490368e7ed86e9c423f40db87e2d8dfafa00fa17c3a31 - languageName: node - linkType: hard - "graphql@npm:^16.8.1": version: 16.8.1 resolution: "graphql@npm:16.8.1" @@ -18264,7 +17827,7 @@ __metadata: languageName: node linkType: hard -"has-bigints@npm:^1.0.1, has-bigints@npm:^1.0.2": +"has-bigints@npm:^1.0.2": version: 1.0.2 resolution: "has-bigints@npm:1.0.2" checksum: 10c0/724eb1485bfa3cdff6f18d95130aa190561f00b3fcf9f19dc640baf8176b5917c143b81ec2123f8cddb6c05164a198c94b13e1377c497705ccc8e1a80306e83b @@ -18294,13 +17857,6 @@ __metadata: languageName: node linkType: hard -"has-proto@npm:^1.0.1": - version: 1.0.1 - resolution: "has-proto@npm:1.0.1" - checksum: 10c0/c8a8fe411f810b23a564bd5546a8f3f0fff6f1b692740eb7a2fdc9df716ef870040806891e2f23ff4653f1083e3895bf12088703dd1a0eac3d9202d3a4768cd0 - languageName: node - linkType: hard - "has-proto@npm:^1.2.0": version: 1.2.0 resolution: "has-proto@npm:1.2.0" @@ -18310,13 +17866,6 @@ __metadata: languageName: node linkType: hard -"has-symbols@npm:^1.0.2": - version: 1.0.3 - resolution: "has-symbols@npm:1.0.3" - checksum: 10c0/e6922b4345a3f37069cdfe8600febbca791c94988c01af3394d86ca3360b4b93928bbf395859158f88099cb10b19d98e3bbab7c9ff2c1bd09cf665ee90afa2c3 - languageName: node - linkType: hard - "has-symbols@npm:^1.0.3, has-symbols@npm:^1.1.0": version: 1.1.0 resolution: "has-symbols@npm:1.1.0" @@ -18498,22 +18047,6 @@ __metadata: languageName: node linkType: hard -"hermes-estree@npm:0.25.1": - version: 0.25.1 - resolution: "hermes-estree@npm:0.25.1" - checksum: 10c0/48be3b2fa37a0cbc77a112a89096fa212f25d06de92781b163d67853d210a8a5c3784fac23d7d48335058f7ed283115c87b4332c2a2abaaccc76d0ead1a282ac - languageName: node - linkType: hard - -"hermes-parser@npm:^0.25.1": - version: 0.25.1 - resolution: "hermes-parser@npm:0.25.1" - dependencies: - hermes-estree: "npm:0.25.1" - checksum: 10c0/3abaa4c6f1bcc25273f267297a89a4904963ea29af19b8e4f6eabe04f1c2c7e9abd7bfc4730ddb1d58f2ea04b6fee74053d8bddb5656ec6ebf6c79cc8d14202c - languageName: node - linkType: hard - "highlight.js@npm:^10.4.1, highlight.js@npm:~10.7.0": version: 10.7.3 resolution: "highlight.js@npm:10.7.3" @@ -18776,7 +18309,7 @@ __metadata: dependencies: "@changesets/cli": "npm:^2.26.2" "@dotenvx/dotenvx": "npm:^1.51.1" - "@eslint/js": "npm:^9.39.1" + "@eslint/compat": "npm:^2.0.0" "@types/ungap__structured-clone": "npm:^1.2.0" "@ungap/structured-clone": "npm:^1.3.0" babel-plugin-react-compiler: "npm:^1.0.0" @@ -18785,9 +18318,8 @@ __metadata: dotenv-cli: "npm:^8.0.0" dotenv-expand: "npm:^12.0.1" eslint: "npm:^9.39.1" - eslint-config-prettier: "npm:^9.1.0" eslint-plugin-n: "npm:^16.4.0" - eslint-plugin-prettier: "npm:^5.2.1" + eslint-plugin-react-hook-form: "npm:^0.3.1" eslint-plugin-security: "npm:^3.0.1" eslint-plugin-simple-import-sort: "npm:^12.1.1" husky: "npm:^8.0.3" @@ -18795,9 +18327,11 @@ __metadata: knip: "npm:^6.19.0" lint-staged: "npm:^13.1.2" nx: "npm:23.3.2" + oxlint: "npm:^1.92.0" + oxlint-plugin-eslint: "npm:^1.93.0" + oxlint-tsgolint: "npm:^7.0.2006" prettier: "npm:3.3.3" tslib: "npm:^2.6.0" - typescript-eslint: "npm:^8.46.0" languageName: unknown linkType: soft @@ -18897,7 +18431,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^7.0.0, ignore@npm:^7.0.5": +"ignore@npm:^7.0.5": version: 7.0.5 resolution: "ignore@npm:7.0.5" checksum: 10c0/ae00db89fe873064a093b8999fe4cc284b13ef2a178636211842cceb650b9c3e390d3339191acb145d81ed5379d2074840cf0c33a20bdbd6f32821f79eb4ad5d @@ -18934,7 +18468,17 @@ __metadata: languageName: node linkType: hard -"import-fresh@npm:^3.2.1, import-fresh@npm:^3.3.0": +"import-fresh@npm:^3.2.1": + version: 3.3.1 + resolution: "import-fresh@npm:3.3.1" + dependencies: + parent-module: "npm:^1.0.0" + resolve-from: "npm:^4.0.0" + checksum: 10c0/bf8cc494872fef783249709385ae883b447e3eb09db0ebd15dcead7d9afe7224dad7bd7591c6b73b0b19b3c0f9640eb8ee884f01cfaf2887ab995b0b36a0cbec + languageName: node + linkType: hard + +"import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" dependencies: @@ -19086,17 +18630,6 @@ __metadata: languageName: node linkType: hard -"internal-slot@npm:^1.0.4": - version: 1.0.5 - resolution: "internal-slot@npm:1.0.5" - dependencies: - get-intrinsic: "npm:^1.2.0" - has: "npm:^1.0.3" - side-channel: "npm:^1.0.4" - checksum: 10c0/66d8a66b4b5310c042e8ad00ce895dc55cb25165a3a7da0d7862ca18d69d3b1ba86511b4bf3baf4273d744d3f6e9154574af45189ef11135a444945309e39e4a - languageName: node - linkType: hard - "internal-slot@npm:^1.1.0": version: 1.1.0 resolution: "internal-slot@npm:1.1.0" @@ -19156,17 +18689,6 @@ __metadata: languageName: node linkType: hard -"is-array-buffer@npm:^3.0.1": - version: 3.0.1 - resolution: "is-array-buffer@npm:3.0.1" - dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.3" - is-typed-array: "npm:^1.1.10" - checksum: 10c0/a20fc6be40c2efa9465f56274d4ad9c13b84b5f7efe76ec4897609817f079d5e86f3b392c3a78e12d96e0151bcf23389946b0721bd00a09fc9c14905fd7edb1b - languageName: node - linkType: hard - "is-array-buffer@npm:^3.0.4, is-array-buffer@npm:^3.0.5": version: 3.0.5 resolution: "is-array-buffer@npm:3.0.5" @@ -19201,15 +18723,6 @@ __metadata: languageName: node linkType: hard -"is-bigint@npm:^1.0.1": - version: 1.0.4 - resolution: "is-bigint@npm:1.0.4" - dependencies: - has-bigints: "npm:^1.0.1" - checksum: 10c0/eb9c88e418a0d195ca545aff2b715c9903d9b0a5033bc5922fec600eb0c3d7b1ee7f882dbf2e0d5a6e694e42391be3683e4368737bd3c4a77f8ac293e7773696 - languageName: node - linkType: hard - "is-bigint@npm:^1.1.0": version: 1.1.0 resolution: "is-bigint@npm:1.1.0" @@ -19228,16 +18741,6 @@ __metadata: languageName: node linkType: hard -"is-boolean-object@npm:^1.1.0": - version: 1.1.2 - resolution: "is-boolean-object@npm:1.1.2" - dependencies: - call-bind: "npm:^1.0.2" - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/6090587f8a8a8534c0f816da868bc94f32810f08807aa72fa7e79f7e11c466d281486ffe7a788178809c2aa71fe3e700b167fe80dd96dad68026bfff8ebf39f7 - languageName: node - linkType: hard - "is-boolean-object@npm:^1.2.1": version: 1.2.2 resolution: "is-boolean-object@npm:1.2.2" @@ -19257,7 +18760,7 @@ __metadata: languageName: node linkType: hard -"is-callable@npm:^1.1.4, is-callable@npm:^1.2.7": +"is-callable@npm:^1.2.7": version: 1.2.7 resolution: "is-callable@npm:1.2.7" checksum: 10c0/ceebaeb9d92e8adee604076971dd6000d38d6afc40bb843ea8e45c5579b57671c3f3b50d7f04869618242c6cee08d1b67806a8cb8edaaaf7c0748b3720d6066f @@ -19275,15 +18778,6 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.11.0, is-core-module@npm:^2.9.0": - version: 2.11.0 - resolution: "is-core-module@npm:2.11.0" - dependencies: - has: "npm:^1.0.3" - checksum: 10c0/fd8f78ef4e243c295deafa809f89381d89aff5aaf38bb63266b17ee6e34b6a051baa5bdc2365456863336d56af6a59a4c1df1256b4eff7d6b4afac618586b004 - languageName: node - linkType: hard - "is-core-module@npm:^2.12.1, is-core-module@npm:^2.13.0": version: 2.13.1 resolution: "is-core-module@npm:2.13.1" @@ -19302,6 +18796,15 @@ __metadata: languageName: node linkType: hard +"is-core-module@npm:^2.9.0": + version: 2.11.0 + resolution: "is-core-module@npm:2.11.0" + dependencies: + has: "npm:^1.0.3" + checksum: 10c0/fd8f78ef4e243c295deafa809f89381d89aff5aaf38bb63266b17ee6e34b6a051baa5bdc2365456863336d56af6a59a4c1df1256b4eff7d6b4afac618586b004 + languageName: node + linkType: hard + "is-data-view@npm:^1.0.1, is-data-view@npm:^1.0.2": version: 1.0.2 resolution: "is-data-view@npm:1.0.2" @@ -19313,15 +18816,6 @@ __metadata: languageName: node linkType: hard -"is-date-object@npm:^1.0.1": - version: 1.0.5 - resolution: "is-date-object@npm:1.0.5" - dependencies: - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/eed21e5dcc619c48ccef804dfc83a739dbb2abee6ca202838ee1bd5f760fe8d8a93444f0d49012ad19bb7c006186e2884a1b92f6e1c056da7fd23d0a9ad5992e - languageName: node - linkType: hard - "is-date-object@npm:^1.0.5, is-date-object@npm:^1.1.0": version: 1.1.0 resolution: "is-date-object@npm:1.1.0" @@ -19472,13 +18966,6 @@ __metadata: languageName: node linkType: hard -"is-negative-zero@npm:^2.0.2": - version: 2.0.2 - resolution: "is-negative-zero@npm:2.0.2" - checksum: 10c0/eda024c158f70f2017f3415e471b818d314da5ef5be68f801b16314d4a4b6304a74cbed778acf9e2f955bb9c1c5f2935c1be0c7c99e1ad12286f45366217b6a3 - languageName: node - linkType: hard - "is-negative-zero@npm:^2.0.3": version: 2.0.3 resolution: "is-negative-zero@npm:2.0.3" @@ -19493,15 +18980,6 @@ __metadata: languageName: node linkType: hard -"is-number-object@npm:^1.0.4": - version: 1.0.7 - resolution: "is-number-object@npm:1.0.7" - dependencies: - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/aad266da1e530f1804a2b7bd2e874b4869f71c98590b3964f9d06cc9869b18f8d1f4778f838ecd2a11011bce20aeecb53cb269ba916209b79c24580416b74b1b - languageName: node - linkType: hard - "is-number-object@npm:^1.1.1": version: 1.1.1 resolution: "is-number-object@npm:1.1.1" @@ -19563,16 +19041,6 @@ __metadata: languageName: node linkType: hard -"is-regex@npm:^1.1.4": - version: 1.1.4 - resolution: "is-regex@npm:1.1.4" - dependencies: - call-bind: "npm:^1.0.2" - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/bb72aae604a69eafd4a82a93002058c416ace8cde95873589a97fc5dac96a6c6c78a9977d487b7b95426a8f5073969124dd228f043f9f604f041f32fcc465fc1 - languageName: node - linkType: hard - "is-regex@npm:^1.2.1": version: 1.2.1 resolution: "is-regex@npm:1.2.1" @@ -19592,15 +19060,6 @@ __metadata: languageName: node linkType: hard -"is-shared-array-buffer@npm:^1.0.2": - version: 1.0.2 - resolution: "is-shared-array-buffer@npm:1.0.2" - dependencies: - call-bind: "npm:^1.0.2" - checksum: 10c0/cfeee6f171f1b13e6cbc6f3b6cc44e192b93df39f3fcb31aa66ffb1d2df3b91e05664311659f9701baba62f5e98c83b0673c628e7adc30f55071c4874fcdccec - languageName: node - linkType: hard - "is-shared-array-buffer@npm:^1.0.4": version: 1.0.4 resolution: "is-shared-array-buffer@npm:1.0.4" @@ -19631,15 +19090,6 @@ __metadata: languageName: node linkType: hard -"is-string@npm:^1.0.5, is-string@npm:^1.0.7": - version: 1.0.7 - resolution: "is-string@npm:1.0.7" - dependencies: - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/905f805cbc6eedfa678aaa103ab7f626aac9ebbdc8737abb5243acaa61d9820f8edc5819106b8fcd1839e33db21de9f0116ae20de380c8382d16dc2a601921f6 - languageName: node - linkType: hard - "is-string@npm:^1.1.1": version: 1.1.1 resolution: "is-string@npm:1.1.1" @@ -19655,16 +19105,7 @@ __metadata: resolution: "is-subdir@npm:1.2.0" dependencies: better-path-resolve: "npm:1.0.0" - checksum: 10c0/03a03ee2ee6578ce589b1cfaf00e65c86b20fd1b82c1660625557c535439a7477cda77e20c62cda6d4c99e7fd908b4619355ae2d989f4a524a35350a44353032 - languageName: node - linkType: hard - -"is-symbol@npm:^1.0.2, is-symbol@npm:^1.0.3": - version: 1.0.4 - resolution: "is-symbol@npm:1.0.4" - dependencies: - has-symbols: "npm:^1.0.2" - checksum: 10c0/9381dd015f7c8906154dbcbf93fad769de16b4b961edc94f88d26eb8c555935caa23af88bda0c93a18e65560f6d7cca0fd5a3f8a8e1df6f1abbb9bead4502ef7 + checksum: 10c0/03a03ee2ee6578ce589b1cfaf00e65c86b20fd1b82c1660625557c535439a7477cda77e20c62cda6d4c99e7fd908b4619355ae2d989f4a524a35350a44353032 languageName: node linkType: hard @@ -19679,19 +19120,6 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.9": - version: 1.1.10 - resolution: "is-typed-array@npm:1.1.10" - dependencies: - available-typed-arrays: "npm:^1.0.5" - call-bind: "npm:^1.0.2" - for-each: "npm:^0.3.3" - gopd: "npm:^1.0.1" - has-tostringtag: "npm:^1.0.0" - checksum: 10c0/b71268a2e5f493f2b95af4cbfe7a65254a822f07d57f20c18f084347cd45f11810915fe37d7a6831fe4b81def24621a042fd1169ec558c50f830b591bc8c1f66 - languageName: node - linkType: hard - "is-typed-array@npm:^1.1.13, is-typed-array@npm:^1.1.14, is-typed-array@npm:^1.1.15": version: 1.1.15 resolution: "is-typed-array@npm:1.1.15" @@ -19862,20 +19290,6 @@ __metadata: languageName: node linkType: hard -"iterator.prototype@npm:^1.1.4": - version: 1.1.5 - resolution: "iterator.prototype@npm:1.1.5" - dependencies: - define-data-property: "npm:^1.1.4" - es-object-atoms: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.6" - get-proto: "npm:^1.0.0" - has-symbols: "npm:^1.1.0" - set-function-name: "npm:^2.0.2" - checksum: 10c0/f7a262808e1b41049ab55f1e9c29af7ec1025a000d243b83edf34ce2416eedd56079b117fa59376bb4a724110690f13aa8427f2ee29a09eec63a7e72367626d0 - languageName: node - linkType: hard - "jackspeak@npm:^3.1.2": version: 3.1.2 resolution: "jackspeak@npm:3.1.2" @@ -20629,7 +20043,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:^4.1.0, js-yaml@npm:^4.1.1": +"js-yaml@npm:^4.1.0, js-yaml@npm:^4.3.2": version: 4.3.2 resolution: "js-yaml@npm:4.3.2" dependencies: @@ -20863,17 +20277,6 @@ __metadata: languageName: node linkType: hard -"json5@npm:^1.0.2": - version: 1.0.2 - resolution: "json5@npm:1.0.2" - dependencies: - minimist: "npm:^1.2.0" - bin: - json5: lib/cli.js - checksum: 10c0/9ee316bf21f000b00752e6c2a3b79ecf5324515a5c60ee88983a1910a45426b643a4f3461657586e8aeca87aaf96f0a519b0516d2ae527a6c3e7eed80f68717f - languageName: node - linkType: hard - "jsonc-parser@npm:3.3.1, jsonc-parser@npm:^3.3.1": version: 3.3.1 resolution: "jsonc-parser@npm:3.3.1" @@ -20934,18 +20337,6 @@ __metadata: languageName: node linkType: hard -"jsx-ast-utils@npm:^2.4.1 || ^3.0.0, jsx-ast-utils@npm:^3.3.5": - version: 3.3.5 - resolution: "jsx-ast-utils@npm:3.3.5" - dependencies: - array-includes: "npm:^3.1.6" - array.prototype.flat: "npm:^1.3.1" - object.assign: "npm:^4.1.4" - object.values: "npm:^1.1.6" - checksum: 10c0/a32679e9cb55469cb6d8bbc863f7d631b2c98b7fc7bf172629261751a6e7bc8da6ae374ddb74d5fbd8b06cf0eb4572287b259813d92b36e384024ed35e4c13e1 - languageName: node - linkType: hard - "kareem@npm:2.5.1": version: 2.5.1 resolution: "kareem@npm:2.5.1" @@ -21055,22 +20446,6 @@ __metadata: languageName: node linkType: hard -"language-subtag-registry@npm:^0.3.20": - version: 0.3.22 - resolution: "language-subtag-registry@npm:0.3.22" - checksum: 10c0/d1e09971260a7cd3b9fdeb190d33af0b6e99c8697013537d9aaa15f7856d9d83aee128ba8078e219df0a7cf4b8dd18d1a0c188f6543b500d92a2689d2d114b70 - languageName: node - linkType: hard - -"language-tags@npm:^1.0.9": - version: 1.0.9 - resolution: "language-tags@npm:1.0.9" - dependencies: - language-subtag-registry: "npm:^0.3.20" - checksum: 10c0/9ab911213c4bd8bd583c850201c17794e52cb0660d1ab6e32558aadc8324abebf6844e46f92b80a5d600d0fbba7eface2c207bfaf270a1c7fd539e4c3a880bff - languageName: node - linkType: hard - "leven@npm:3.1.0, leven@npm:^3.1.0": version: 3.1.0 resolution: "leven@npm:3.1.0" @@ -22365,7 +21740,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:3.1.5, minimatch@npm:^3.1.4": +"minimatch@npm:3.1.5, minimatch@npm:^3.1.4, minimatch@npm:^3.1.5": version: 3.1.5 resolution: "minimatch@npm:3.1.5" dependencies: @@ -23369,53 +22744,6 @@ __metadata: languageName: node linkType: hard -"object.entries@npm:^1.1.9": - version: 1.1.9 - resolution: "object.entries@npm:1.1.9" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.4" - define-properties: "npm:^1.2.1" - es-object-atoms: "npm:^1.1.1" - checksum: 10c0/d4b8c1e586650407da03370845f029aa14076caca4e4d4afadbc69cfb5b78035fd3ee7be417141abdb0258fa142e59b11923b4c44d8b1255b28f5ffcc50da7db - languageName: node - linkType: hard - -"object.fromentries@npm:^2.0.8": - version: 2.0.8 - resolution: "object.fromentries@npm:2.0.8" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - es-object-atoms: "npm:^1.0.0" - checksum: 10c0/cd4327e6c3369cfa805deb4cbbe919bfb7d3aeebf0bcaba291bb568ea7169f8f8cdbcabe2f00b40db0c20cd20f08e11b5f3a5a36fb7dd3fe04850c50db3bf83b - languageName: node - linkType: hard - -"object.groupby@npm:^1.0.3": - version: 1.0.3 - resolution: "object.groupby@npm:1.0.3" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - checksum: 10c0/60d0455c85c736fbfeda0217d1a77525956f76f7b2495edeca9e9bbf8168a45783199e77b894d30638837c654d0cc410e0e02cbfcf445bc8de71c3da1ede6a9c - languageName: node - linkType: hard - -"object.values@npm:^1.1.6, object.values@npm:^1.2.1": - version: 1.2.1 - resolution: "object.values@npm:1.2.1" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.3" - define-properties: "npm:^1.2.1" - es-object-atoms: "npm:^1.0.0" - checksum: 10c0/3c47814fdc64842ae3d5a74bc9d06bdd8d21563c04d9939bf6716a9c00596a4ebc342552f8934013d1ec991c74e3671b26710a0c51815f0b603795605ab6b2c9 - languageName: node - linkType: hard - "objectorarray@npm:^1.0.5": version: 1.0.5 resolution: "objectorarray@npm:1.0.5" @@ -23498,16 +22826,16 @@ __metadata: linkType: hard "optionator@npm:^0.9.3": - version: 0.9.3 - resolution: "optionator@npm:0.9.3" + version: 0.9.4 + resolution: "optionator@npm:0.9.4" dependencies: - "@aashutoshrathi/word-wrap": "npm:^1.2.3" deep-is: "npm:^0.1.3" fast-levenshtein: "npm:^2.0.6" levn: "npm:^0.4.1" prelude-ls: "npm:^1.2.1" type-check: "npm:^0.4.0" - checksum: 10c0/66fba794d425b5be51353035cf3167ce6cfa049059cbb93229b819167687e0f48d2bc4603fcb21b091c99acb516aae1083624675b15c4765b2e4693a085e959c + word-wrap: "npm:^1.2.5" + checksum: 10c0/4afb687a059ee65b61df74dfe87d8d6815cd6883cb8b3d5883a910df72d0f5d029821f37025e4bccf4048873dbdb09acc6d303d27b8f76b1a80dd5a7d5334675 languageName: node linkType: hard @@ -23839,6 +23167,118 @@ __metadata: languageName: node linkType: hard +"oxlint-plugin-eslint@npm:^1.93.0": + version: 1.93.0 + resolution: "oxlint-plugin-eslint@npm:1.93.0" + checksum: 10c0/a5a31694347806891e834170a3567492324085b2b73072090aa4fa6c30fa505adc4b1179c16eca6001476ba94012570fbf13bd231a907f9391f80344a0c3c061 + languageName: node + linkType: hard + +"oxlint-tsgolint@npm:^7.0.2006": + version: 7.0.2006 + resolution: "oxlint-tsgolint@npm:7.0.2006" + dependencies: + "@oxlint-tsgolint/darwin-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/darwin-x64": "npm:7.0.2006" + "@oxlint-tsgolint/linux-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/linux-x64": "npm:7.0.2006" + "@oxlint-tsgolint/win32-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/win32-x64": "npm:7.0.2006" + dependenciesMeta: + "@oxlint-tsgolint/darwin-arm64": + optional: true + "@oxlint-tsgolint/darwin-x64": + optional: true + "@oxlint-tsgolint/linux-arm64": + optional: true + "@oxlint-tsgolint/linux-x64": + optional: true + "@oxlint-tsgolint/win32-arm64": + optional: true + "@oxlint-tsgolint/win32-x64": + optional: true + bin: + tsgolint: ./bin/tsgolint.js + checksum: 10c0/ee532b7ca42bc373b019eaa79bf899e925b86ad74d3fe4368528b950a397991e0ac78562d1a01b6fe5f6083d12588c18a69b9a0410ae240bf8cddf8e2e6c117f + languageName: node + linkType: hard + +"oxlint@npm:^1.92.0": + version: 1.93.0 + resolution: "oxlint@npm:1.93.0" + dependencies: + "@oxlint/binding-android-arm-eabi": "npm:1.93.0" + "@oxlint/binding-android-arm64": "npm:1.93.0" + "@oxlint/binding-darwin-arm64": "npm:1.93.0" + "@oxlint/binding-darwin-x64": "npm:1.93.0" + "@oxlint/binding-freebsd-x64": "npm:1.93.0" + "@oxlint/binding-linux-arm-gnueabihf": "npm:1.93.0" + "@oxlint/binding-linux-arm-musleabihf": "npm:1.93.0" + "@oxlint/binding-linux-arm64-gnu": "npm:1.93.0" + "@oxlint/binding-linux-arm64-musl": "npm:1.93.0" + "@oxlint/binding-linux-ppc64-gnu": "npm:1.93.0" + "@oxlint/binding-linux-riscv64-gnu": "npm:1.93.0" + "@oxlint/binding-linux-riscv64-musl": "npm:1.93.0" + "@oxlint/binding-linux-s390x-gnu": "npm:1.93.0" + "@oxlint/binding-linux-x64-gnu": "npm:1.93.0" + "@oxlint/binding-linux-x64-musl": "npm:1.93.0" + "@oxlint/binding-openharmony-arm64": "npm:1.93.0" + "@oxlint/binding-win32-arm64-msvc": "npm:1.93.0" + "@oxlint/binding-win32-ia32-msvc": "npm:1.93.0" + "@oxlint/binding-win32-x64-msvc": "npm:1.93.0" + peerDependencies: + oxlint-tsgolint: ">=7.0.2005" + vite-plus: "*" + dependenciesMeta: + "@oxlint/binding-android-arm-eabi": + optional: true + "@oxlint/binding-android-arm64": + optional: true + "@oxlint/binding-darwin-arm64": + optional: true + "@oxlint/binding-darwin-x64": + optional: true + "@oxlint/binding-freebsd-x64": + optional: true + "@oxlint/binding-linux-arm-gnueabihf": + optional: true + "@oxlint/binding-linux-arm-musleabihf": + optional: true + "@oxlint/binding-linux-arm64-gnu": + optional: true + "@oxlint/binding-linux-arm64-musl": + optional: true + "@oxlint/binding-linux-ppc64-gnu": + optional: true + "@oxlint/binding-linux-riscv64-gnu": + optional: true + "@oxlint/binding-linux-riscv64-musl": + optional: true + "@oxlint/binding-linux-s390x-gnu": + optional: true + "@oxlint/binding-linux-x64-gnu": + optional: true + "@oxlint/binding-linux-x64-musl": + optional: true + "@oxlint/binding-openharmony-arm64": + optional: true + "@oxlint/binding-win32-arm64-msvc": + optional: true + "@oxlint/binding-win32-ia32-msvc": + optional: true + "@oxlint/binding-win32-x64-msvc": + optional: true + peerDependenciesMeta: + oxlint-tsgolint: + optional: true + vite-plus: + optional: true + bin: + oxlint: bin/oxlint + checksum: 10c0/d82e8634dd326f8e16fa45eace6f410706a12486b78e9b3c899fa1a9333b9f3b39749d46a58268d6a1b11242dfc6b907b88fa3eed12b07dd1318d38ea2cbd51c + languageName: node + linkType: hard + "p-each-series@npm:^2.2.0": version: 2.2.0 resolution: "p-each-series@npm:2.2.0" @@ -24754,15 +24194,6 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^3.3.2": - version: 3.3.2 - resolution: "prettier@npm:3.3.2" - bin: - prettier: bin/prettier.cjs - checksum: 10c0/39ed27d17f0238da6dd6571d63026566bd790d3d0edac57c285fbab525982060c8f1e01955fe38134ab10f0951a6076da37f015db8173c02f14bc7f0803a384c - languageName: node - linkType: hard - "pretty-error@npm:^4.0.0": version: 4.0.0 resolution: "pretty-error@npm:4.0.0" @@ -25830,18 +25261,7 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.4.3": - version: 1.4.3 - resolution: "regexp.prototype.flags@npm:1.4.3" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.1.3" - functions-have-names: "npm:^1.2.2" - checksum: 10c0/5d797c7fb95f72a52dd9685a485faf0af3c55a4d1f2fafc1153a7be3df036cc3274b195b3ae051ee3d896a01960b446d726206e0d9a90b749e90d93445bb781f - languageName: node - linkType: hard - -"regexp.prototype.flags@npm:^1.5.3, regexp.prototype.flags@npm:^1.5.4": +"regexp.prototype.flags@npm:^1.5.4": version: 1.5.4 resolution: "regexp.prototype.flags@npm:1.5.4" dependencies: @@ -26084,7 +25504,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.14.2, resolve@npm:^1.22.2, resolve@npm:^1.22.4, resolve@npm:^1.22.8": +"resolve@npm:^1.14.2, resolve@npm:^1.22.2, resolve@npm:^1.22.8": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -26110,19 +25530,6 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^2.0.0-next.5": - version: 2.0.0-next.5 - resolution: "resolve@npm:2.0.0-next.5" - dependencies: - is-core-module: "npm:^2.13.0" - path-parse: "npm:^1.0.7" - supports-preserve-symlinks-flag: "npm:^1.0.0" - bin: - resolve: bin/resolve - checksum: 10c0/a6c33555e3482ea2ec4c6e3d3bf0d78128abf69dca99ae468e64f1e30acaa318fd267fb66c8836b04d558d3e2d6ed875fe388067e7d8e0de647d3c21af21c43a - languageName: node - linkType: hard - "resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin": version: 1.22.1 resolution: "resolve@patch:resolve@npm%3A1.22.1#optional!builtin::version=1.22.1&hash=c3c19d" @@ -26136,7 +25543,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin": +"resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -26162,19 +25569,6 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^2.0.0-next.5#optional!builtin": - version: 2.0.0-next.5 - resolution: "resolve@patch:resolve@npm%3A2.0.0-next.5#optional!builtin::version=2.0.0-next.5&hash=c3c19d" - dependencies: - is-core-module: "npm:^2.13.0" - path-parse: "npm:^1.0.7" - supports-preserve-symlinks-flag: "npm:^1.0.0" - bin: - resolve: bin/resolve - checksum: 10c0/78ad6edb8309a2bfb720c2c1898f7907a37f858866ce11a5974643af1203a6a6e05b2fa9c53d8064a673a447b83d42569260c306d43628bff5bb101969708355 - languageName: node - linkType: hard - "restore-cursor@npm:3.1.0, restore-cursor@npm:^3.1.0": version: 3.1.0 resolution: "restore-cursor@npm:3.1.0" @@ -26515,18 +25909,7 @@ __metadata: languageName: node linkType: hard -"safe-regex-test@npm:^1.0.0": - version: 1.0.0 - resolution: "safe-regex-test@npm:1.0.0" - dependencies: - call-bind: "npm:^1.0.2" - get-intrinsic: "npm:^1.1.3" - is-regex: "npm:^1.1.4" - checksum: 10c0/14a81a7e683f97b2d6e9c8be61fddcf8ed7a02f4e64a825515f96bb1738eb007145359313741d2704d28b55b703a0f6300c749dde7c1dbc13952a2b85048ede2 - languageName: node - linkType: hard - -"safe-regex-test@npm:^1.0.3, safe-regex-test@npm:^1.1.0": +"safe-regex-test@npm:^1.1.0": version: 1.1.0 resolution: "safe-regex-test@npm:1.1.0" dependencies: @@ -27067,7 +26450,7 @@ __metadata: languageName: node linkType: hard -"side-channel@npm:^1.0.4, side-channel@npm:^1.1.0": +"side-channel@npm:^1.1.0": version: 1.1.0 resolution: "side-channel@npm:1.1.0" dependencies: @@ -27575,9 +26958,9 @@ __metadata: linkType: hard "string-ts@npm:^2.3.1": - version: 2.3.1 - resolution: "string-ts@npm:2.3.1" - checksum: 10c0/14b2829934713bf6cdf7ea54d948283af345e5c505bfb505aca949ab67235cbc99a3e335581f8a91f68935ac52c0d44b32112618658371e5593d5a75f26b3048 + version: 2.4.0 + resolution: "string-ts@npm:2.4.0" + checksum: 10c0/54ebadc5799b4d13f83f432dc6f9c2d0345836f7d04885000d930d6a097495a66dfa39f3591e769017fea26956c7d189414f489cfff672cf0bcc0e0776887a16 languageName: node linkType: hard @@ -27624,48 +27007,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.includes@npm:^2.0.1": - version: 2.0.1 - resolution: "string.prototype.includes@npm:2.0.1" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.3" - checksum: 10c0/25ce9c9b49128352a2618fbe8758b46f945817a58a4420f4799419e40a8d28f116e176c7590d767d5327a61e75c8f32c86171063f48e389b9fdd325f1bd04ee5 - languageName: node - linkType: hard - -"string.prototype.matchall@npm:^4.0.12": - version: 4.0.12 - resolution: "string.prototype.matchall@npm:4.0.12" - dependencies: - call-bind: "npm:^1.0.8" - call-bound: "npm:^1.0.3" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.6" - es-errors: "npm:^1.3.0" - es-object-atoms: "npm:^1.0.0" - get-intrinsic: "npm:^1.2.6" - gopd: "npm:^1.2.0" - has-symbols: "npm:^1.1.0" - internal-slot: "npm:^1.1.0" - regexp.prototype.flags: "npm:^1.5.3" - set-function-name: "npm:^2.0.2" - side-channel: "npm:^1.1.0" - checksum: 10c0/1a53328ada73f4a77f1fdf1c79414700cf718d0a8ef6672af5603e709d26a24f2181208144aed7e858b1bcc1a0d08567a570abfb45567db4ae47637ed2c2f85c - languageName: node - linkType: hard - -"string.prototype.repeat@npm:^1.0.0": - version: 1.0.0 - resolution: "string.prototype.repeat@npm:1.0.0" - dependencies: - define-properties: "npm:^1.1.3" - es-abstract: "npm:^1.17.5" - checksum: 10c0/94c7978566cffa1327d470fd924366438af9b04b497c43a9805e476e2e908aa37a1fd34cc0911156c17556dab62159d12c7b92b3cc304c3e1281fe4c8e668f40 - languageName: node - linkType: hard - "string.prototype.trim@npm:^1.2.10": version: 1.2.10 resolution: "string.prototype.trim@npm:1.2.10" @@ -27681,17 +27022,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.trimend@npm:^1.0.6": - version: 1.0.6 - resolution: "string.prototype.trimend@npm:1.0.6" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.1.4" - es-abstract: "npm:^1.20.4" - checksum: 10c0/51b663e3195a74b58620a250b3fc4efb58951000f6e7d572a9f671c038f2f37f24a2b8c6994500a882aeab2f1c383fac1e8c023c01eb0c8b4e52d2f13b6c4513 - languageName: node - linkType: hard - "string.prototype.trimend@npm:^1.0.9": version: 1.0.9 resolution: "string.prototype.trimend@npm:1.0.9" @@ -27704,17 +27034,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.trimstart@npm:^1.0.6": - version: 1.0.6 - resolution: "string.prototype.trimstart@npm:1.0.6" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.1.4" - es-abstract: "npm:^1.20.4" - checksum: 10c0/13b9970d4e234002dfc8069c655c1fe19e83e10ced208b54858c41bb0f7544e581ac0ce746e92b279563664ad63910039f7253f36942113fec413b2b4e7c1fcd - languageName: node - linkType: hard - "string.prototype.trimstart@npm:^1.0.8": version: 1.0.8 resolution: "string.prototype.trimstart@npm:1.0.8" @@ -28229,16 +27548,6 @@ __metadata: languageName: node linkType: hard -"synckit@npm:^0.9.1": - version: 0.9.1 - resolution: "synckit@npm:0.9.1" - dependencies: - "@pkgr/core": "npm:^0.1.0" - tslib: "npm:^2.6.2" - checksum: 10c0/d8b89e1bf30ba3ffb469d8418c836ad9c0c062bf47028406b4d06548bc66af97155ea2303b96c93bf5c7c0f0d66153a6fbd6924c76521b434e6a9898982abc2e - languageName: node - linkType: hard - "systeminformation@npm:^5.33.19": version: 5.33.19 resolution: "systeminformation@npm:5.33.19" @@ -28701,7 +28010,7 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^2.4.0": +"ts-api-utils@npm:^2.4.0, ts-api-utils@npm:^2.5.0": version: 2.5.0 resolution: "ts-api-utils@npm:2.5.0" peerDependencies: @@ -28803,9 +28112,9 @@ __metadata: linkType: hard "ts-pattern@npm:^5.9.0": - version: 5.9.0 - resolution: "ts-pattern@npm:5.9.0" - checksum: 10c0/7640db25c39d29b287471b2b82d4f7b4674a02098c6ba4d10fed180adfb07d0e0c71930d9e59dc0d90654145e02fd320af63cf0df3c41e100d4154658a612a0a + version: 5.9.2 + resolution: "ts-pattern@npm:5.9.2" + checksum: 10c0/868adbb091dc86a6c0318a5f16535b60f8f32d2b4e20d931226b1111012e8f2cab7dd06dcb90c478e35f89c2f1c4163665e26b8798694977442358ccc5dea23f languageName: node linkType: hard @@ -28847,18 +28156,6 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^3.15.0": - version: 3.15.0 - resolution: "tsconfig-paths@npm:3.15.0" - dependencies: - "@types/json5": "npm:^0.0.29" - json5: "npm:^1.0.2" - minimist: "npm:^1.2.6" - strip-bom: "npm:^3.0.0" - checksum: 10c0/5b4f301a2b7a3766a986baf8fc0e177eb80bdba6e396792ff92dc23b5bca8bb279fc96517dcaaef63a3b49bebc6c4c833653ec58155780bc906bdbcf7dda0ef5 - languageName: node - linkType: hard - "tsconfig-paths@npm:^4.1.2": version: 4.1.2 resolution: "tsconfig-paths@npm:4.1.2" @@ -29116,17 +28413,6 @@ __metadata: languageName: node linkType: hard -"typed-array-length@npm:^1.0.4": - version: 1.0.4 - resolution: "typed-array-length@npm:1.0.4" - dependencies: - call-bind: "npm:^1.0.2" - for-each: "npm:^0.3.3" - is-typed-array: "npm:^1.1.9" - checksum: 10c0/c5163c0103d07fefc8a2ad0fc151f9ca9a1f6422098c00f695d55f9896e4d63614cd62cf8d8a031c6cee5f418e8980a533796597174da4edff075b3d275a7e23 - languageName: node - linkType: hard - "typed-array-length@npm:^1.0.7": version: 1.0.7 resolution: "typed-array-length@npm:1.0.7" @@ -29161,21 +28447,6 @@ __metadata: languageName: node linkType: hard -"typescript-eslint@npm:^8.46.0": - version: 8.48.1 - resolution: "typescript-eslint@npm:8.48.1" - dependencies: - "@typescript-eslint/eslint-plugin": "npm:8.48.1" - "@typescript-eslint/parser": "npm:8.48.1" - "@typescript-eslint/typescript-estree": "npm:8.48.1" - "@typescript-eslint/utils": "npm:8.48.1" - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - typescript: ">=4.8.4 <6.0.0" - checksum: 10c0/10b501bf69b14edd09d652b33e4a5dfad0498f2943992a433006933e384cdc5815217b2990801796ddf946d2ef4971d9a16c98c7cfbba41f6aa31b245ad057ac - languageName: node - linkType: hard - "typescript@npm:^6.0.3": version: 6.0.3 resolution: "typescript@npm:6.0.3" @@ -29221,18 +28492,6 @@ __metadata: languageName: node linkType: hard -"unbox-primitive@npm:^1.0.2": - version: 1.0.2 - resolution: "unbox-primitive@npm:1.0.2" - dependencies: - call-bind: "npm:^1.0.2" - has-bigints: "npm:^1.0.2" - has-symbols: "npm:^1.0.3" - which-boxed-primitive: "npm:^1.0.2" - checksum: 10c0/81ca2e81134167cc8f75fa79fbcc8a94379d6c61de67090986a2273850989dd3bae8440c163121b77434b68263e34787a675cbdcb34bb2f764c6b9c843a11b66 - languageName: node - linkType: hard - "unbox-primitive@npm:^1.1.0": version: 1.1.0 resolution: "unbox-primitive@npm:1.1.0" @@ -30007,19 +29266,6 @@ __metadata: languageName: node linkType: hard -"which-boxed-primitive@npm:^1.0.2": - version: 1.0.2 - resolution: "which-boxed-primitive@npm:1.0.2" - dependencies: - is-bigint: "npm:^1.0.1" - is-boolean-object: "npm:^1.1.0" - is-number-object: "npm:^1.0.4" - is-string: "npm:^1.0.5" - is-symbol: "npm:^1.0.3" - checksum: 10c0/0a62a03c00c91dd4fb1035b2f0733c341d805753b027eebd3a304b9cb70e8ce33e25317add2fe9b5fea6f53a175c0633ae701ff812e604410ddd049777cd435e - languageName: node - linkType: hard - "which-boxed-primitive@npm:^1.1.0, which-boxed-primitive@npm:^1.1.1": version: 1.1.1 resolution: "which-boxed-primitive@npm:1.1.1" @@ -30111,20 +29357,6 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.9": - version: 1.1.9 - resolution: "which-typed-array@npm:1.1.9" - dependencies: - available-typed-arrays: "npm:^1.0.5" - call-bind: "npm:^1.0.2" - for-each: "npm:^0.3.3" - gopd: "npm:^1.0.1" - has-tostringtag: "npm:^1.0.0" - is-typed-array: "npm:^1.1.10" - checksum: 10c0/7edb12cfd04bfe2e2d3ec3e6046417c59e6a8c72209e4fe41fe1a1a40a3b196626c2ca63dac2a0fa2491d5c37c065dfabd2fcf7c0c15f1d19f5640fef88f6368 - languageName: node - linkType: hard - "which@npm:3.0.1": version: 3.0.1 resolution: "which@npm:3.0.1" @@ -30198,6 +29430,13 @@ __metadata: languageName: node linkType: hard +"word-wrap@npm:^1.2.5": + version: 1.2.5 + resolution: "word-wrap@npm:1.2.5" + checksum: 10c0/e0e4a1ca27599c92a6ca4c32260e8a92e8a44f4ef6ef93f803f8ed823f486e0889fc0b93be4db59c8d51b3064951d25e43d434e95dc8c960cc3a63d65d00ba20 + languageName: node + linkType: hard + "wordwrap@npm:^1.0.0": version: 1.0.0 resolution: "wordwrap@npm:1.0.0" @@ -30540,15 +29779,6 @@ __metadata: languageName: node linkType: hard -"zod-validation-error@npm:^3.5.0 || ^4.0.0": - version: 4.0.2 - resolution: "zod-validation-error@npm:4.0.2" - peerDependencies: - zod: ^3.25.0 || ^4.0.0 - checksum: 10c0/0ccfec48c46de1be440b719cd02044d4abb89ed0e14c13e637cd55bf29102f67ccdba373f25def0fc7130e5f15025be4d557a7edcc95d5a3811599aade689e1b - languageName: node - linkType: hard - "zod@npm:3.25": version: 3.25.76 resolution: "zod@npm:3.25.76" @@ -30556,20 +29786,13 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.25 || ^4.0, zod@npm:^4.1.11, zod@npm:^4.3.6": +"zod@npm:^3.25 || ^4.0, zod@npm:^4.1.11": version: 4.3.6 resolution: "zod@npm:4.3.6" checksum: 10c0/860d25a81ab41d33aa25f8d0d07b091a04acb426e605f396227a796e9e800c44723ed96d0f53a512b57be3d1520f45bf69c0cb3b378a232a00787a2609625307 languageName: node linkType: hard -"zod@npm:^3.25.0 || ^4.0.0": - version: 4.1.13 - resolution: "zod@npm:4.1.13" - checksum: 10c0/d7e74e82dba81a91ffc3239cd85bc034abe193a28f7087a94ab258a3e48e9a7ca4141920cac979a0d781495b48fc547777394149f26be04c3dc642f58bbc3941 - languageName: node - linkType: hard - "zod@npm:^4.1.12": version: 4.4.3 resolution: "zod@npm:4.4.3" @@ -30577,6 +29800,13 @@ __metadata: languageName: node linkType: hard +"zod@npm:^4.3.6": + version: 4.6.7 + resolution: "zod@npm:4.6.7" + checksum: 10c0/4ce2eb14034317b7254e347ca37b5ad591cf8333147030cf05b9b5d31692d45073f7f2747aa50cf8c6b29012194d2b22978cecc89969cf34a0d18e89d0ee7d7b + languageName: node + linkType: hard + "zustand@npm:^4.4.0": version: 4.5.7 resolution: "zustand@npm:4.5.7" From 430f8497fdf918fe5dc2f840cd351c74cd5f40fe Mon Sep 17 00:00:00 2001 From: Drew Davis Date: Fri, 20 Nov 2026 10:45:13 -0500 Subject: [PATCH 2/2] review: Remove bootstrap rule --- packages/app/.oxlintrc.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/app/.oxlintrc.json b/packages/app/.oxlintrc.json index 33d6fc961b..5852d4f4d6 100644 --- a/packages/app/.oxlintrc.json +++ b/packages/app/.oxlintrc.json @@ -197,10 +197,6 @@ "react/unsupported-syntax": "warn", "eslint-js/no-restricted-syntax": [ "error", - { - "selector": "Literal[value=/\\bbi-\\b/i]", - "message": "Please update to use @tabler/icons-react instead" - }, { "selector": "JSXElement[openingElement.name.name=\"Button\"] JSXAttribute[name.name=\"variant\"][value.value=\"light\"]", "message": "Use variant=\"primary\", \"secondary\", or \"danger\" for Button. See agent_docs/code_style.md"