chore: migrate linter to @antfu/eslint-config - #6
Merged
Conversation
Replaces oxlint, oxfmt, and ultracite with the ESLint setup used by middleapi/orpc: @antfu/eslint-config with formatters, eslint-driven lint-staged and CI, and matching Zed and Claude hook settings. Top-level arrow-function consts become function declarations, and the oxlint-only disable directives are dropped.
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.
Replaces oxlint, oxfmt, and ultracite with the same ESLint setup middleapi/orpc uses:
@antfu/eslint-configwith formatters, eslint-driven lint-staged and CI, and matching Zed and Claude hook settings. The whole codebase is reformatted to that style, and top-level arrow-function consts are nowfunctiondeclarations.Config
lint/lint:fixruneslint --max-warnings=0; CI, lint-staged, and the sponsors sync use them.eslint,@antfu/eslint-config, andeslint-plugin-*like orpc.ts/method-signature-stylestays off so the published types keep their declared shapes; orpc'seslint-plugin-banrules are left out since they target orpc internals.Source
oxlint-disabledirectives are gone: the anti-slop rules have no ESLint counterpart, and hoisted function declarations remove the need for everyno-use-before-definesuppression but one.packages/types/testsare reformatted too; their generator is not in this repo.Testing
pnpm run lint,pnpm run type:check, andpnpm test(327 tests) pass.apps/*workspace glob) predate this PR.