require-vercel-config-object
Require vercel.json to contain a top-level JSON object.
Targeted pattern scopeâ
- Top-level JSON document shape in
vercel.json.
What this rule reportsâ
This rule reports non-object JSON documents (for example arrays).
Why this rule existsâ
Vercel settings are object-based; non-object config documents are usually misconfigurations that break tooling expectations.
â Incorrectâ
[]
â Correctâ
{
"buildCommand": "npm run build"
}
When not to use itâ
Disable this rule if your repository intentionally preprocesses non-object config files before Vercel consumes them.
Rule catalog ID: R099