ESLint
88 rules eslint@10.11.0
Complete effective rule inventory.
Rules
No enabled ESLint rules match this search.
-
prefer-object-has-ownDisallow use of
Object.prototype.hasOwnProperty.call()and prefer use ofObject.hasOwn(): error in All ESLint contexts -
prefer-rest-paramsRequire rest parameters instead of
arguments: error in TypeScript source, React source, TypeScript tests, Bun tests, Playwright end-to-end tests, Syntax-only tool configuration, Design-system React source -
prefer-spreadRequire spread operators instead of
.apply(): error in TypeScript source, React source, TypeScript tests, Bun tests, Playwright end-to-end tests, Syntax-only tool configuration, Design-system React source -
prefer-templateRequire template literals instead of string concatenation
: error in All ESLint contexts -
preserve-caught-errorDisallow losing originally caught error when re-throwing custom errors
: warning in All ESLint contexts -
require-yieldRequire generator functions to contain
yield: warning in All ESLint contexts -
use-isnanRequire calls to
isNaN()when checking forNaN: warning in All ESLint contexts -
valid-typeofEnforce comparing
typeofexpressions against valid strings: warning in All ESLint contexts