Skip to content

meta: disable CodeRabbit tools that cannot run on this repo - #18363

Closed
wikirik-agent wants to merge 1 commit into
sequelize:mainfrom
wikirik-agent:meta/coderabbit-disable-unusable-tools
Closed

wikirik-agent wants to merge 1 commit into
sequelize:mainfrom
wikirik-agent:meta/coderabbit-disable-unusable-tools

Conversation

@wikirik-agent

@wikirik-agent wikirik-agent commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

CodeRabbit runs Biome and ESLint on every review of this repo, and both fail before producing a single finding. This adds a .coderabbit.yaml turning 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 in yarn.lock. CodeRabbit runs it anyway, since reviews.tools.biome.enabled defaults to true.

It fails because it resolves the nearest package.json to decide between script and module parsing. Our dialect packages declare "type": "commonjs", which correctly describes the published output, while src/*.js is ESM syntax that build-packages.mjs compiles to CommonJS into lib/. So Biome reports every import and export as a syntax error:

File contains syntax errors that prevent linting: Line 3: Illegal use of an
import declaration outside of a module; ... Line 31: Illegal use of an export
declaration outside of a module

This affects 29 files, every packages/*/src/**/*.js using import/export. Biome exposes no parser option to override the type field, 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.js plus 13 per-package configs. The run aborts during config loading:

A config object is using the "parserOptions" key, which is not supported in
flat config system.

parserOptions is simply the first incompatible key encountered; env, extends, overrides, ignorePatterns and root would 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_file does not help. ESLint 10 cannot parse an eslintrc file at any path.
  • Adding an eslint.config.* shim just for CodeRabbit is unsafe. ESLint 8.57.1 switches to flat config purely from the presence of eslint.config.{js,mjs,cjs} in the working directory, so the file would silently flip yarn test:format:eslint, format:eslint and lint-staged into flat mode and break CI.

A real flat-config migration would mean ESLint 8 to 9, @ephys/eslint-config-typescript 20 to 21, dropping @rushstack/eslint-patch and 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-param catch 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.yaml from the PR branch, so its review here should no longer carry the "Some tools did not complete" block. @coderabbitai configuration will 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.

PR What it does Issues
#18254 PostgreSQL column comments leaking into the type definition, for changeColumn and addColumn closes #17894 and #17118
#18361 Three changeColumn bugs on PostgreSQL: the ARRAY(ENUM) USING cast, SET DEFAULT ordering, and a stray UNIQUE in the TYPE clause no linked issue
#18364 Missing DataType usage context in createTable and changeColumn, which broke ARRAY(ENUM) columns with a defaultValue closes #11285
#18363 (this PR) Tooling only: a .coderabbit.yaml disabling the two CodeRabbit tools that cannot run on this repo no linked issue

How they interact:

🤖 Generated with Claude Code

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]>
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SippieCup

Copy link
Copy Markdown
Contributor

Rather than removing eslint, we should just update eslintrc to be the new json format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants