Oxlint rules that flag risky Payload Local API calls before code review
Biome
Biome lint rules that catch risky Payload Local API calls before code review
Installation
pnpm add biome-plugin-payload About
Biome Plugin Payload adds lint rules to Biome that check how your code calls the Payload Local API. It flags reads that fetch every field, reads that leave relationship depth to the default, and calls that skip an explicit access control decision. Code written by hand or generated by an AI agent gets the same checks, so these mistakes show up in the editor or CI instead of in manual review.
Each rule can be enabled on its own, and a single line comment silences a rule at a call site where the broad read is intended. Calls that pass a spread object or a variable are skipped because their contents cannot be read statically. Direct database calls are not covered.
Package info
- Package name
biome-plugin-payload- Latest version
0.1.5- Unpacked size
- 16 kB
- License
- MIT
- Weekly downloads
- 128
- Last publish
- Oct 23, 2026
More from erikenz
View profileSimilar tools
More in Dev workflowStateful test emulator of the Payload collection REST API with seeded data
Editor support for Payload component paths, with import checks and autocomplete
Governance checks and ESLint rules for Payload project structure, access code and hooks
Manifest, linter and Payload block generator for a design system's components
Automated code transforms that move a Payload project past breaking changes
Idempotent seed runner that fills a Payload database with ordered, cross-referenced content