Support running @tanstack/eslint-plugin-oracles on TypeScript 7 (tsgo) via an opt-in oxc-parser syntax parser
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- eslint, javascript, nodejs, typescript
調査の方向性
This is a design proposal with four evaluated options rather than a task with a target file, so start by reading packages/eslint-plugin-oracles/src/index.js and src/modules.js to confirm the syntax-only claim, then tests/consumer-typescript.test.js for the existing consumer harness. Any implementation would add a new parser entry point and configs.recommendedSyntaxOnly alongside the existing configs, plus a differential corpus test against @typescript-eslint/parser and a TS 7 stub. Expect multi-package work across the plugin and oracles-setup/SKILL.md, and a maintainer decision on the oxc-parser pin before anyone writes code.
索引モデルが issue の本文から書いたものです。
説明
Problem
On repositories running TypeScript 7 (tsgo, e.g. [email protected].*), @tanstack/eslint-plugin-oracles currently cannot be run via @typescript-eslint/parser:
oracles-setupstep 2 unconditionally installs@tanstack/eslint-plugin-oracles(+ transitive dependencies), and step 3 then reports an environment limit because@typescript-eslint/[email protected]declarespeerDependencies.typescript: ">=4.8.4 <6.1.0"(failing withERESOLVE, and if forced, crashing withCannot read properties of undefined (reading 'Cjs')against TS 7's root export stub).- However,
@tanstack/eslint-plugin-oraclesitself is 100% syntax-only:- None of the rules in
packages/eslint-plugin-oracles/src/useparserServicesor TypeScript's type checker (src/index.jsexplicitly notes the rules need no type information). src/modules.jsparses imported modules via ESLint'snew Linter({ cwd }).verify(...), reusing whatever parser the consumer configures inlanguageOptions.parserwithproject/projectService/programsstripped.- The rules rely only on ESTree/TS-ESTree AST nodes,
scopeManager,sourceCode.getDisableDirectives(),sourceCode.getInlineConfigNodes(), andlinterOptions.noInlineConfig.
- None of the rules in
Options Evaluated (as of Nov 2026)
-
@typescript-eslint/parser(8.73.0):- Peer dependency remains
typescript >=4.8.4 <6.1.0; no TS 7-only v9/prerelease exists. - Its new
EXPERIMENTAL_backend: 'tsgo'(PR #12803) still requires classic TypeScript 6 installed side-by-side (@typescript/native), which conflicts withoracles-setup's rule not to alter the repository's TypeScript dependency.
- Peer dependency remains
-
Oxlint
jsPlugins(1.94.0, alpha):- Cannot run
@tanstack/eslint-plugin-oraclesunmodified:context.languageOptions.parser.parseis not implemented yet in Oxlint's JS plugin host (apps/oxlint/src-js/plugins/context.ts), breakingsrc/modules.js's imported-module parsing.sourceCode.getInlineConfigNodes()is absent, breakingno-oracle-disable.js.- No
linterOptions.noInlineConfigor ESLint flat-config preset support.
- Cannot run
-
tsgolint(oxlint-tsgolint):- Go backend for built-in type-aware
typescript/*rules only; has no custom JS/TS plugin host and is unnecessary for syntax-only rules.
- Go backend for built-in type-aware
-
Opt-in syntax-only ESLint parser backed by
oxc-parser(Recommended):oxc-parserparses JS/TS into ESTree/TS-ESTree with zerotypescriptdependency.- Paired with
@typescript-eslint/scope-managerand@typescript-eslint/visitor-keys(pluslocand token generation for ESLintSourceCode), it plugs straight into ESLint 9/10'slanguageOptions.parserwith no changes tosrc/modules.jsor any rule. - Experimental verification: Running the unmodified
@tanstack/eslint-plugin-oraclesunder ESLint 9.39 with[email protected](oxc-parser0.148) while hard-blocking anyimport 'typescript'viaregisterHooks:- On all 13
*oracle*.tsfiles inpackages/oracles: identical 6 findings (rule, location, text) vs@typescript-eslint/parser(2.5svs3.4s). - Across all 77
.ts/.tsx/.js/.mjsfiles underpackages/with all 7 rules +noInlineConfig: identical 37 findings (exact hash match7fa07d0778), zero fatal errors, and ~2× faster (2.2svs4.3s).
- On all 13
Proposed Direction
- Ship an opt-in syntax-only parser (e.g.
@tanstack/eslint-plugin-oracles/parserand/orconfigs.recommendedSyntaxOnly/productionSyntaxOnly) built onoxc-parser+@typescript-eslint/scope-manager+@typescript-eslint/visitor-keys.- Keep it opt-in so it never overrides a consumer's
@typescript-eslint/parser(andparserServices) on repos that run typed lint rules on oracle files. - Pin
oxc-parserand gate upgrades with a differential corpus test against@typescript-eslint/parserplus a TS 7 stub test (mirroringtests/consumer-typescript.test.js). - Note Node engine alignment (
oxc-parserrequires^20.19 || >=22.12).
- Keep it opt-in so it never overrides a consumer's
- Update
oracles-setup/SKILL.md:- Once the opt-in parser ships, use it for TS 7, TS < 4.8, and JS-only repos so consumers never need
@typescript-eslint/parseror changes to theirtypescriptversion. - In the meantime, skip installing
@tanstack/eslint-plugin-oraclesin step 2 when step 1 detects an environment where oracle lint cannot run (e.g. TS 7 without an alternative parser). - (Minor cleanup noticed during audit:
oracles-setup/SKILL.mdreferences anunparsedModulereport that no longer exists inpackages/eslint-plugin-oracles/src/.)
- Once the opt-in parser ships, use it for TS 7, TS < 4.8, and JS-only repos so consumers never need
- 主要言語
- JavaScript
- スター
- 13
- フォーク
- 1
- 平均マージ
- 11時間 8分
- マージ済み PR(30日)
- 67
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/oracles のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
TanStack/oracles の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client area対応中かも @lijy91 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
libnativeapi/nativeapi#53 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
KilledByAPixel/LittleJS#188 ·
-
[workshop-sync] workshop/06-install-gh-aw.md: outdated version example and gh aw init file listオープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
githubnext/gh-aw-workshop#6053 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
JuliusBrussee/caveman#1567 ·
メンテナーはふだん 1 日以内に返信