Skip to content

fix(fallow): suppress oxc-minify false positive and fix duplicates override#167

Merged
mroderick merged 1 commit into
mainfrom
fix/fallow-config-146
Jun 13, 2026
Merged

fix(fallow): suppress oxc-minify false positive and fix duplicates override#167
mroderick merged 1 commit into
mainfrom
fix/fallow-config-146

Conversation

@mroderick

Copy link
Copy Markdown
Contributor

Summary

Fixes two issues in fallow.toml that caused Fallow warnings or false positives.

Changes

1. Suppress oxc-minify false positive

The oxc-minify dependency was added in 5fca2ff as a transitive dependency required by VitePress via rolldown-vite. Fallow correctly reports it as an unused devDependency because no source file directly imports it. Add it to ignoreDependencies to suppress the false positive.

2. Fix invalid duplicates override

The previous [[overrides]] section used rules = { duplicates = "off" }, which Fallow warns is an unknown rule name:

WARN unknown rule 'duplicates' in overrides[0].rules of fallow.toml; the rule will be ignored.

Replace it with a proper [duplicates] section using the ignore key, which is the correct TOML config for suppressing duplication detection in specific file patterns.

Verification

npx fallow dead-code
# ✓ No issues found (0.08s)

Closes #146

…erride

The oxc-minify dependency is required transitively by VitePress via
rolldown-vite, but is not directly imported by our code. Add it to
ignoreDependencies to suppress the false positive.

The previous [[overrides]] section used rules = { duplicates = 'off' },
which Fallow warns is an unknown rule name. Replace it with a proper
[duplicates] section using the ignore key, which is the correct TOML
config for suppressing duplication detection in specific file patterns.

Closes #146
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying idempot-js with  Cloudflare Pages  Cloudflare Pages

Latest commit: c6e063b
Status: ✅  Deploy successful!
Preview URL: https://4d9d1d03.idempot-js.pages.dev
Branch Preview URL: https://fix-fallow-config-146.idempot-js.pages.dev

View logs

@mroderick
mroderick marked this pull request as ready for review June 13, 2026 17:42
@mroderick
mroderick merged commit d2296f8 into main Jun 13, 2026
13 checks passed
@mroderick
mroderick deleted the fix/fallow-config-146 branch June 13, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallow false positives: JSDoc type imports and workspace test imports misreported as unused

1 participant