Repository navigation
meta: disable CodeRabbit tools that cannot run on this repo - #18363
Closed
wikirik-agent wants to merge 1 commit into
Closed
wikirik-agent wants to merge 1 commit into
wikirik-agent wants to merge 1 commit into
Conversation
CodeRabbit runs Biome and ESLint on every review and both fail before producing any finding. Biome is not used by this project. It resolves the nearest package.json to choose script or module parsing, and our dialect packages declare "type": "commonjs" while their src/*.js files are ESM syntax compiled to CommonJS by esbuild. Biome therefore reports every import and export as a syntax error, across 29 source files, and has no parser option to override it. ESLint fails because CodeRabbit bundles ESLint 10, which removed eslintrc support, while this repo is pinned to ESLint 8 with .eslintrc.js. The run aborts during config loading, so it fails on any PR touching a JS or TS file. Pointing reviews.tools.eslint.config_file at another path does not help, and adding an eslint.config.* shim is unsafe: ESLint 8 switches to flat config purely from the presence of that file, which would break our own lint scripts. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 11, 2026
Contributor
|
Rather than removing eslint, we should just update eslintrc to be the new json format. |
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.
CodeRabbit runs Biome and ESLint on every review of this repo, and both fail before producing a single finding. This adds a
.coderabbit.yamlturning those two tools off. There is currently no CodeRabbit config file in the repo at all, so it runs entirely on defaults.Opening as a draft because this is a maintainer policy call, not a bug fix.
Biome
Biome is not used by this project: no
biome.json, no@biomejs/*dependency, no mention inyarn.lock. CodeRabbit runs it anyway, sincereviews.tools.biome.enableddefaults totrue.It fails because it resolves the nearest
package.jsonto decide between script and module parsing. Our dialect packages declare"type": "commonjs", which correctly describes the published output, whilesrc/*.jsis ESM syntax thatbuild-packages.mjscompiles to CommonJS intolib/. So Biome reports everyimportandexportas a syntax error:This affects 29 files, every
packages/*/src/**/*.jsusingimport/export. Biome exposes no parser option to override thetypefield, so there is no fix on our side short of changing the build or the published module type.This is not new. On #18309 CodeRabbit posted the same parse error inline on
packages/db2/src/query.js. Biome 2.5.10 promoted it from an inline nit to a whole-file failure, which is why it is now visible as a tool error.ESLint
CodeRabbit bundles ESLint 10.10.0, which removed eslintrc support. This repo is pinned to
[email protected]and uses.eslintrc.jsplus 13 per-package configs. The run aborts during config loading:parserOptionsis simply the first incompatible key encountered;env,extends,overrides,ignorePatternsandrootwould all fail too. This happens on any PR touching a JS or TS file, regardless of content. ESLint findings still worked on #18309 and #18293, so the ESLint 10 bump on CodeRabbit's side is recent.Two alternatives were considered and rejected:
reviews.tools.eslint.config_filedoes not help. ESLint 10 cannot parse an eslintrc file at any path.eslint.config.*shim just for CodeRabbit is unsafe. ESLint 8.57.1 switches to flat config purely from the presence ofeslint.config.{js,mjs,cjs}in the working directory, so the file would silently flipyarn test:format:eslint,format:eslintand lint-staged into flat mode and break CI.A real flat-config migration would mean ESLint 8 to 9,
@ephys/eslint-config-typescript20 to 21, dropping@rushstack/eslint-patchand rewriting 14 config files. That has been declined before in #18153, #18104, #17254 and #17320, so this PR deliberately does not go near it. Worth noting that even completing it would not necessarily satisfy CodeRabbit, since the shared config pins ESLint 9 and CodeRabbit runs 10.Trade-off
Disabling ESLint does lose real CodeRabbit findings, for example the
jsdoc/require-paramcatch on #18309. That value is already lost today because the tool errors out, but this makes the loss explicit. The inline comment records flat-config migration as the re-enable condition.Verification
This PR should test itself. CodeRabbit reads
.coderabbit.yamlfrom the PR branch, so its review here should no longer carry the "Some tools did not complete" block.@coderabbitai configurationwill show the resolved config and whether any organisation-level UI settings override it, which I cannot see from outside.Closes nothing; there is no existing issue for this.
Related work
This is one of a group of PRs that came out of reviewing #18254. Listing them so reviewers can see the relationship.
changeColumnandaddColumnchangeColumnbugs on PostgreSQL: theARRAY(ENUM)USINGcast,SET DEFAULTordering, and a strayUNIQUEin theTYPEclausecreateTableandchangeColumn, which brokeARRAY(ENUM)columns with adefaultValue.coderabbit.yamldisabling the two CodeRabbit tools that cannot run on this repoHow they interact:
changeColumnQueryinpackages/postgres/src/query-generator.js. They do not conflict semantically, but whichever merges second will need a small rebase.changeColumnto anARRAY(ENUM)with adefaultValueto work end to end. I verified all four combinations: fix(postgres): support default values on ARRAY(ENUM) columns #18364 alone generates correct SQL but fails on the cast, fix(postgres): correct changeColumn for enum arrays and enum defaults #18361 alone still throws on the enum name, and together they pass.🤖 Generated with Claude Code