Documentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudflare/vinext/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thevinext lint command delegates to your project’s linter (eslint or oxlint), making it easy to check code quality without remembering which linter you’re using.
How It Works
vinext automatically detects and uses the appropriate linter:- eslint with Next.js config — If you have eslint installed with an existing config (
.eslintrc.json,eslint.config.js, etc.), vinext runseslint . - oxlint — If oxlint is installed, vinext uses it (much faster than eslint)
- eslint fallback — If only eslint is installed without config, runs
eslint . - No linter — Suggests installation options
Options
Show help for the lint command
Setup
Using eslint (Next.js style)
npm
.eslintrc.json:
Using oxlint (faster)
npm
.oxlintrc.json:
Examples
Basic usage
With oxlint
No linter installed
Linter Detection Priority
vinext checks for linters in this order:- eslint + config files —
.eslintrc.json,.eslintrc.js,.eslintrc.cjs,eslint.config.js,eslint.config.mjs - oxlint — Checks for
node_modules/.bin/oxlint - eslint (no config) — Checks for
node_modules/.bin/eslint
Integration with CI/CD
GitHub Actions
package.json script
Configuration
eslint-config-next rules
Theeslint-config-next package includes rules for:
- React Hooks
- Next.js best practices
- Accessibility (jsx-a11y)
- Import organization
oxlint configuration
oxlint is faster but has fewer rules. Configure via.oxlintrc.json:
Troubleshooting
eslint reports no files to lint
eslint reports no files to lint
Add a
.eslintignore file or configure ignorePatterns in your eslint config:oxlint too strict
oxlint too strict
Adjust rule levels in
.oxlintrc.json:Linting is slow
Linting is slow
Consider switching to oxlint:oxlint is typically 50-100x faster than eslint.
Comparison: eslint vs oxlint
| Feature | eslint | oxlint |
|---|---|---|
| Speed | Slower (5-10s for medium projects) | Much faster (0.1-0.5s) |
| Rules | 200+ rules, highly configurable | ~100 rules, focused on correctness |
| Plugins | Extensive ecosystem | No plugin support |
| Auto-fix | Yes | Yes (limited) |
| Next.js integration | Official eslint-config-next | Manual configuration |
Next Steps
typecheck
Type check with TypeScript
test
Run tests