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.
No rules match “”.
Popular · 1 of 50
Require the reactive classes from svelte/reactivity instead of built-in objects that are modified.
<script>
const tags = new Set();
function addTag(tag) {
tags.add(tag);
}
</script><script>
import { SvelteSet } from "svelte/reactivity";
const tags = new SvelteSet();
function addTag(tag) {
tags.add(tag);
}
const map = new Map([[1, "one"]]);
console.log(map.get(1));
function unique(items) {
const seen = new Set();
for (const item of items) {
seen.add(item);
}
return [...seen];
}
</script>