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.
things.map((thing, index) => (
<Hello key={index} />
));
things.map((thing, index) => (
<Hello key={`hello-${index}`} />
));
things.map((thing, index) => (
React.cloneElement(thing, { key: index })
));
things.map((thing, index) => (
React.cloneElement(thing, { key: `hello-${index}` })
));
things.forEach((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.filter((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.some((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.every((thing, index) => {
otherThings.push(<Hello key={index} />);
});
// …things.map((thing) => (
<Hello key={thing.id} />
));
things.map((thing) => (
<Hello key={`hello-${thing.id}`} />
));
things.map((thing) => (
React.cloneElement(thing, { key: thing.id })
));
things.map((thing) => (
React.cloneElement(thing, { key: `hello-${thing.id}` })
));
things.forEach((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.filter((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.some((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.every((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
// …Popular · 1 of 1
things.map((thing, index) => (
<Hello key={index} />
));
things.map((thing, index) => (
<Hello key={`hello-${index}`} />
));
things.map((thing, index) => (
React.cloneElement(thing, { key: index })
));
things.map((thing, index) => (
React.cloneElement(thing, { key: `hello-${index}` })
));
things.forEach((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.filter((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.some((thing, index) => {
otherThings.push(<Hello key={index} />);
});
things.every((thing, index) => {
otherThings.push(<Hello key={index} />);
});
// …things.map((thing) => (
<Hello key={thing.id} />
));
things.map((thing) => (
<Hello key={`hello-${thing.id}`} />
));
things.map((thing) => (
React.cloneElement(thing, { key: thing.id })
));
things.map((thing) => (
React.cloneElement(thing, { key: `hello-${thing.id}` })
));
things.forEach((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.filter((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.some((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
things.every((thing) => {
otherThings.push(<Hello key={thing.id} />);
});
// …