| array-from-array |
Forbid calling Array.from on arrays |
βοΈ |
π§ |
|
π |
| as-unknown-as |
Forbid as unknown as |
πͺ βοΈ |
|
|
|
| await-promise-resolve |
Forbid await Promise.resolve() |
π© β
πͺ βοΈ |
π§ |
|
|
| boolean-coalescing |
Prefer distributing boolean casts over nullish coalescing expressions |
βοΈ |
π§ |
|
π |
| comment-duplicate-leading-space |
Forbid duplicate leading space in comments |
π© β
πͺ βοΈ |
π§ |
|
|
| conditional-boolean |
Forbid if/else branches where the only difference is a boolean literal |
π© β
πͺ βοΈ |
π§ |
|
|
| constant-boolean-cast |
Forbid boolean casts on values with constant truthiness |
β
βοΈ |
|
π‘ |
π |
| de-morgan |
Enforce using De Morgan's law to simplify negated logical expressions |
π© β
πͺ βοΈ |
π§ |
|
|
| discarded-expression-statement |
Forbid discarding the result of expression statements |
|
|
|
π |
| distribute-boolean-casts |
Enforce that boolean casts are distributed over logical expressions |
πͺ βοΈ |
π§ |
|
|
| duplicate-destructuring |
Forbid duplicate keys in object destructuring patterns |
π© β
πͺ βοΈ |
|
|
|
| duplicate-object-spread |
Forbid duplicate spread elements in object literals |
π© β
πͺ βοΈ |
π§ |
|
|
| e |
Forbid using e as a parameter name |
πͺ βοΈ |
|
π‘ |
|
| empty-for |
Forbid using for (;;) |
π© β
πͺ βοΈ |
π§ |
|
|
| enum-member |
Prefer enum members to literals asserted as enum |
β
βοΈ |
π§ |
|
π |
| eqeq-null |
Forbid using x == null when equivalent to x === null |
βοΈ |
π§ |
|
π |
| exact-string-regex |
Forbid using a RegEx when string equality would suffice |
π© β
πͺ βοΈ |
|
π‘ |
|
| export-using |
Forbid exporting variables declared with using or await using |
π© β
πͺ βοΈ |
|
|
|
| generic-constructor-with-hook |
Forbid specifying the type arguments on the hook instead of on the generic class |
πͺ βοΈ |
π§ |
|
|
| idiomatic-cast |
Enforce idiomatic ways to cast values |
βοΈ |
π§ |
|
π |
| inferable-type-predicate |
Forbid inferable type predicates |
βοΈ |
π§ |
|
π |
| inner-as-const |
Enforce setting as const on the outermost object/array literal only |
πͺ βοΈ |
π§ |
|
|
| jsx-tostring |
Forbid calling .toString() inside JSX expressions containers |
βοΈ |
π§ |
|
π |
| literal-destructuring |
Forbid variable declaration by destructuring object or array literals |
πͺ βοΈ |
π§ |
|
|
| named-export-with-side-effects |
Forbid named exports in files with side effects |
π© β
πͺ βοΈ |
|
|
|
| nested-reduce |
Forbid nested reduce calls |
πͺ βοΈ |
|
|
|
| nested-try-catch |
Forbid nested try/catch statements |
πͺ βοΈ |
|
|
|
| no-commented-out-comment |
Forbid commented out comments |
π© β
πͺ βοΈ |
|
|
|
| no-constant-template-expression |
Disallow constant string expressions in template literals |
βοΈ |
|
π‘ |
π |
| no-constructed-error-cause |
Forbid using Error.cause with constructed objects |
πͺ βοΈ |
|
|
|
| no-convoluted-boolean-expressions |
Forbid simplifiable logical expressions with boolean types |
β
βοΈ |
π§ |
|
π |
| no-convoluted-logical-expressions |
Forbid simplifiable logical expressions |
π© β
πͺ βοΈ |
π§ |
|
|
| no-custom-url-parsing |
Forbid parsing or building URLs by hand |
πͺ βοΈ |
|
|
|
| no-disallowed-warning-comments |
Forbid disallowed comments like FIXME, XXX, HACK |
πͺ βοΈ |
|
|
|
| no-duplicated-return |
Forbid duplicated branches with early returns |
π© β
πͺ βοΈ |
|
|
|
| no-else-break |
Forbid unnecessary else block after a break statement |
π© β
πͺ βοΈ |
π§ |
|
|
| no-else-continue |
Forbid unnecessary else block after a continue statement |
π© β
πͺ βοΈ |
π§ |
|
|
| no-else-never |
Forbid unnecessary else block after an expression that never returns |
βοΈ |
π§ |
|
π |
| no-else-return |
Forbid unnecessary else block after a return statement |
π© β
πͺ βοΈ |
π§ |
|
|
| no-else-throw |
Forbid unnecessary else block after a throw statement |
π© β
πͺ βοΈ |
π§ |
|
|
| no-empty-attribute |
Forbid some empty JSX attributes |
πͺ βοΈ |
|
|
|
| no-empty-comment |
Forbid empty comments |
πͺ βοΈ |
|
|
|
| no-empty-jsx-expression |
Forbid empty JSX expression containers |
π© β
πͺ βοΈ |
|
|
|
| no-empty-literal-iteration |
Forbid iterating over empty literals |
π© β
πͺ βοΈ |
|
|
|
| no-extra-false-fallback |
Forbid extra ?? false in conditions and predicates |
πͺ βοΈ |
|
π‘ |
|
| no-extra-nested-boolean-cast |
Forbid extra boolean casts in conditions and predicates |
πͺ βοΈ |
|
|
|
| no-first-last |
Forbid confusing naming for "first" or "last" |
π© β
πͺ βοΈ |
|
|
|
| no-float-length-check |
Forbid comparing a length to a floating point number |
π© β
πͺ βοΈ |
|
|
|
| no-huge-try-block |
Forbid huge try/catch blocks |
πͺ βοΈ |
|
|
|
| no-huge-useeffect |
Forbid huge useEffect functions |
πͺ βοΈ |
|
|
|
| no-if-length-for |
Forbid redundant condition for positive length before a loop |
π© β
πͺ βοΈ |
π§ |
|
|
| no-inline-jsdoc-tag |
Forbid JSDoc tags in code comments |
πͺ βοΈ |
|
|
|
| no-invalid-date-literal |
Disallow invalid date literals |
π© β
πͺ βοΈ |
|
|
|
| no-jsx-statement |
Forbid JSX expression statements |
π© β
πͺ βοΈ |
|
|
|
| no-lax-array-type |
Forbid declaring array types that are wider than the types of the actual elements |
βοΈ |
|
π‘ |
π |
| no-lax-return-type |
Forbid declaring function return types that are wider than the types of the actual return values |
βοΈ |
|
π‘ |
π |
| no-mutable-literal-fill |
Forbid using mutable literals to fill arrays |
π© β
πͺ βοΈ |
|
|
|
| no-nullish-ternary |
Forbid ternary conditions that can be replaced by optional chains |
π© β
πͺ βοΈ |
π§ |
|
|
| no-numbered-comments |
Forbid numbered comments |
|
|
|
|
| no-obvious-any |
Forbid using any when a stricter type can be trivially inferred |
βοΈ |
π§ |
|
π |
| no-optional-type-guard-param |
Forbid optional parameters in type guards |
π© β
πͺ βοΈ |
|
|
|
| no-out-of-order-comments |
Forbid out of order numbered comments |
π© β
πͺ βοΈ |
|
|
|
| no-possibly-nullish-equality |
Forbid checking the equality of possibly nullish values |
βοΈ |
|
|
π |
| no-redundant-function-declaration |
Forbid redundant function declarations |
π© β
πͺ βοΈ |
π§ |
|
|
| no-return-to-void |
Forbid returning values in void-returning callbacks |
βοΈ |
|
|
π |
| no-self-object-assign |
Forbid using Object.assign() with the same object as both target and source |
π© β
πͺ βοΈ |
|
|
|
| no-sloppy-length-check |
Forbid sloppy collection size checks |
π© β
πͺ βοΈ |
|
|
|
| no-suspicious-jsx-semicolon |
Forbid suspicious semicolons in JSX |
π© β
πͺ βοΈ |
|
|
|
| no-ternary-return |
Disallow ternary conditions in return statements |
πͺ βοΈ |
π§ |
|
|
| no-type-guard |
Forbid type guards |
|
|
|
|
| no-unassigned-todo |
Forbid unassigned TODO comments |
πͺ βοΈ |
|
|
|
| no-unbound-catch-error |
Forbid catch clauses with unbound errors |
πͺ βοΈ |
|
|
|
| no-unused-mutually-referential |
Forbid unused functions, even if mutually referential |
πͺ βοΈ |
|
|
|
| no-unused-param-read |
Forbid referencing parameters marked as unused with a leading underscore |
πͺ βοΈ |
|
|
|
| no-useless-computed-key |
Forbid useless computed keys |
πͺ βοΈ |
π§ |
|
|
| no-useless-iife |
Forbid useless IIFEs |
π© β
πͺ βοΈ |
|
π‘ |
|
| no-useless-logical-fallback |
Forbid useless fallback values for logical expressions |
β
βοΈ |
|
π‘ |
π |
| no-useless-return-undefined |
Forbid returning undefined in void-returning callbacks |
βοΈ |
|
|
π |
| no-useless-ts-check |
Forbid useless @ts-check comments in TypeScript files |
π© β
πͺ βοΈ |
|
|
|
| no-useless-use-strict |
Forbid useless "use strict" directives. |
πͺ βοΈ |
|
|
|
| no-useless-usememo |
Forbid useless useMemo() |
πͺ βοΈ |
|
|
|
| no-whitespace-property |
Forbid leading or trailing whitespace in object keys |
πͺ βοΈ |
|
|
|
| nullish-object-spread |
Forbid useless fallback for nullish values in object spread |
πͺ βοΈ |
|
|
|
| optional-call-expression |
Enforce using optional call expression syntax |
π© β
πͺ βοΈ |
π§ |
|
|
| prefer-array-from |
Enforce using Array.from or Array.fromAsync over iterative accumulation |
π© β
πͺ βοΈ |
π§ |
|
|
| prefer-catch-method |
Enforce usage of Promise.prototype.catch() when it improves readability |
π© β
πͺ βοΈ |
|
π‘ |
|
| prefer-early-return |
Require early returns when possible |
πͺ βοΈ |
π§ |
|
|
| prefer-eqeq-null |
Enforce using x == null instead of x === null || x === undefined |
πͺ βοΈ |
π§ |
|
|
| prefer-finally |
Enforce using finally rather than duplicating code in try and catch blocks |
πͺ βοΈ |
|
π‘ |
|
| prefer-getorinsert |
Enforce using Map#getOrInsert |
πͺ βοΈ |
|
π‘ |
|
| prefer-has |
Enforce using Map#has and Set#has |
πͺ βοΈ |
π§ |
|
|
| prefer-in |
Prefer in to Object.hasOwn() and Object.prototype.hasOwnProperty.call() |
πͺ βοΈ |
|
π‘ |
|
| prefer-object-keys-values |
Enforce using Object.keys() and Object.values() rather than Object.entries() |
πͺ βοΈ |
|
π‘ |
|
| prefer-repeat |
Enforce usage of String.prototype.repeat |
π© β
πͺ βοΈ |
|
π‘ |
|
| prefer-satisfies |
Prefer satisfies to type assertions |
βοΈ |
|
π‘ |
π |
| prefer-string-join |
Enforce usage of String.prototype.join |
π© β
πͺ βοΈ |
π§ |
|
|
| primitive-valueof |
Forbid calling .valueOf() on a primitive |
β
βοΈ |
π§ |
|
π |
| slim-try |
Enforce moving safe statements out of try blocks |
πͺ βοΈ |
π§ |
|
|
| styled-button-has-type |
Disallow usage of styled.button without an explicit type attribute. |
π© β
πͺ βοΈ |
|
|
|
| styled-transient-props |
Enforce using transient props in styled components to avoid polluting DOM elements with unknown props |
π© β
πͺ βοΈ |
|
|
|
| suspicious-map-length |
Disallow suspicious use of .map().length |
π© β
πͺ βοΈ |
|
π‘ |
|
| template-tostring |
Forbid calling .toString() inside template expressions |
πͺ βοΈ |
π§ |
|
|
| unsafe-asserted-chain |
Disallow unsafe type assertions on optional chained expressions |
βοΈ |
|
|
π |
| unused-object-assign |
Disallow unused Object.assign() expressions |
π© β
πͺ βοΈ |
|
|
|
| unused-object-freeze |
Disallow unused Object.freeze() expressions |
π© β
πͺ βοΈ |
|
|
|
| useless-as-const |
Forbid useless as const assertions |
πͺ βοΈ |
|
π‘ |
|
| useless-assign |
Enforce directly returning a value instead of assigning it first to a variable |
πͺ βοΈ |
π§ |
|
|
| useless-conditional-assign |
Enforce directly returning a value instead of conditionally assigning it first to a variable |
π© β
πͺ βοΈ |
π§ |
|
|
| useless-intermediary-variable |
Disallow unnecessary intermediary variables |
πͺ βοΈ |
|
π‘ |
|
| useless-mock |
Forbid useless mocks in tests |
πͺ βοΈ |
|
|
|
| useless-required |
Forbid unnecessary use of Required<T> and Partial<T> |
βοΈ |
|
π‘ |
π |