Skip to content

VBC-033: placeholder-image-src

error

Category: ux-dx
Analysis: Regex (line by line)
File types: .html, .js, .ts, .tsx, .jsx, .astro
Scope: source code only, ignoring anything inside strings and comments
Tags: ux slop

What it reports

Placeholder image service URL detected at line {line}. External placeholder services break when the service is down, look unfinished, and represent content that was never completed. Replace with real production images.

Flagged

html
<img src="https://via.placeholder.com/400" alt="x" />

Not flagged

html
<img src="/assets/hero.png" alt="Hero" />

Pattern

regex
(src|href)=['"](https?://)?(via\.placeholder\.com|picsum\.photos|placehold\.co|dummyimage\.com|loremflickr\.com|placekitten\.com)[^'"]*['"]

Released under the MIT License.