Skip to content

max-dimensions

Flags images wider or taller than the configured maxWidth/maxHeight.

  • Severity: warning
  • Enabled by default: no

How to fix it

Resize the image to the allowed dimensions.

Configuration

{ "rules": { "max-dimensions": ["warn", { "maxWidth": 2048, "maxHeight": 2048 }] } }

All rules