require-vercel-config-file
Require vercel.json when using the Vercel preset.
Targeted pattern scopeâ
- Repositories that opt into the Vercel preset without committing
vercel.json.
What this rule reportsâ
This rule reports repositories using the Vercel preset when no vercel.json
file exists.
Why this rule existsâ
Although Vercel supports dashboard configuration, repository-local config is easier to review, audit, and reproduce across environments.
â Incorrectâ
// Vercel deployment depends on dashboard-only settings.
export default [];
â Correctâ
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"cleanUrls": true
}
When not to use itâ
Disable this rule if the repository intentionally relies on Vercel defaults or dashboard-only settings.
Rule catalog ID: R070