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.
const packageJson = JSON.parse(await fs.readFile('./package.json'));const packageJson = JSON.parse(await fs.readFile('./package.json', 'utf8'));Popular · 1 of 50
Enforce consistent JSON file reads before JSON.parse().
const packageJson = JSON.parse(await fs.readFile('./package.json'));const packageJson = JSON.parse(await fs.readFile('./package.json', 'utf8'));