task(//): migrate eslint -> oxlint; adopt @jlg 0.1.0 configs#551
Open
jgeschwendt wants to merge 2 commits into
Open
task(//): migrate eslint -> oxlint; adopt @jlg 0.1.0 configs#551jgeschwendt wants to merge 2 commits into
jgeschwendt wants to merge 2 commits into
Conversation
…packages Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #550. Migrates jlg.io off the eslint stack onto the 0.1.0 shareable configs published from
jgeschwendt/jlg(GitHub Packages, interim@jgeschwendt/*scope via npm aliases — source names stay@jlg/*).Changes
@next/eslint-plugin-next— oxlint'snextjsplugin covers all 21 rules 1:1); addoxlint+oxlint-tsgolint; bumpoxfmt0.57 → 0.59; aliases →npm:@jgeschwendt/{tsconfig,oxlint,oxfmt}@0.1.0.oxlintrc.json: extends@jlg/oxlint, type-aware enabled (tsgolint bundles typescript-go — repo stays on TS 6.0.3), every authored override fromeslint.config.jsported (Icons.tsx, scripts/**, tsx casing split, proxy default-exports, Resume.tsx);eslint.config.jsdeleted.oxfmtrc.json: mirrors the@jlg/oxfmtbase keys (printWidth: 80→ 12 files reflowed;sortPackageJson: false) + keeps localsingleQuote/sortTailwindcss; wasm-bindgen output now ignoredNODE_AUTH_TOKENnow prefers aNODE_AUTH_TOKENrepo secret (falls back toGITHUB_TOKEN)Dropped (no oxlint equivalent, both were warn-level)
import/no-internal-modulesallow-listlinterOptions.reportUnusedInlineConfigs(unused-disable-directives survives as a CLI flag)Gates
oxlint0 errors / 32 warnings (restriction-category by design + 3 realstaggerChildrendeprecations in Main.tsx — motion 12.42 API migration, left visible) ·oxfmt --checkclean ·tsc --noEmitclean ·next buildpassesCI auth (verified 2026-07-20)
All
@jgeschwendt/*packages are public; the workflowGITHUB_TOKENreads them fine (GitHub Packages still 401s anonymous reads, hence the env wiring).🤖 Generated with Claude Code
Second commit: TS 7, JS tool configs, dep sweep (59f8173)
tsc --noEmitclean. Next 16.2 cannot drive TS7's native API in-build (nocreateProgram); the unlock is@typescript/native-preview(Next's explicit escape hatch), plusignoreBuildErrorsas defense-in-depth and abunx tsc --noEmitCI step as the enforced type gate.oxlint.config.ts— auto-discovered; evaluated under Node (≥22.18) even when invoked via bun, sonode = "24"added to mise.toml for CI. JS-configextendstakes objects (not paths); the JSONC base is loaded viajsonc-parser. Lint output proven identical to the JSON config (0 errors / 32 warnings, diff-identical).oxfmt.config.ts— imports the@jlg/oxfmtbase live (with { type: "json" }) + local settings;-cwired into lefthook/CI/scripts (oxfmt doesn't auto-discover JS configs). Relative paths in the config resolve config-file-relative (verified).@typescript/native-preview,jsonc-parser;resolveJsonModuleenabled locally.NODE_AUTH_TOKENfallback experiment reverted to plainsecrets.GITHUB_TOKEN.