Skip to content

Files

Latest commit

 

History

History
18 lines (11 loc) · 613 Bytes

valid-typeof.md

File metadata and controls

18 lines (11 loc) · 613 Bytes

Pattern: Invalid comparison in typeof

Issue: -

Description

Deprecated - This rule is now enforced by the TypeScript compiler.

Ensures that the results of typeof are compared against a valid string. This rule aims to prevent errors from likely typos by ensuring that when the result of a typeof operation is compared against a string, that the string is a valid value.

Similar to the valid-typeof ESLint rule.

Further Reading