Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
export function MyComponent() {
return (
<div>
<img src="/test.png" alt="Test picture" />
</div>
);
}import Image from "next/image";
import testImage from "./test.png"
export function MyComponent() {
return (
<div>
<Image src={testImage} alt="Test picture" />
</div>
);
}Popular · 1 of 50
Prevent usage of <img> element due to slower LCP and higher bandwidth.
export function MyComponent() {
return (
<div>
<img src="/test.png" alt="Test picture" />
</div>
);
}import Image from "next/image";
import testImage from "./test.png"
export function MyComponent() {
return (
<div>
<Image src={testImage} alt="Test picture" />
</div>
);
}