Biome lint rules that catch risky Payload Local API calls before code review
Oxlint
Oxlint rules that flag risky Payload Local API calls before code review
Installation
pnpm add oxlint-plugin-payload About
Oxlint Plugin checks the Local API calls in a Payload project and reports the ones that often lead to slow queries or access control mistakes. It runs inside oxlint, so a find call that pulls every field of a collection gets flagged in the same pass as other lint errors.
The five rules cover reads that fetch more fields or related documents than intended, and calls that skip access control without naming the user. Queries meant to run anonymously can state that intent explicitly, and a comment on the line silences a known exception. Oxlint JS plugins are still alpha, so pin the oxlint version your project tests against.
Package info
- Package name
oxlint-plugin-payload- Latest version
0.1.0- Unpacked size
- 16 kB
- License
- MIT
- Weekly downloads
- 14
- 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