@typescript-eslint/no-shadow
Disallow variable declarations from shadowing variables declared in the outer scope
The Codiga Static Analysis engine checks JavaScript code and supports many popular libraries. If you are using React, NextJS, Vue or Angular: the engine will flag any issue in your codebase. Automate your code reviews with Codiga and merge with confidence.
Disallow variable declarations from shadowing variables declared in the outer scope
Enforce "for" loop update clause moving the counter in the right direction.
Enforces that a return statement is present in property getters
Detect the use of operator (e.g <=, <, ===, etc) to compare against -0.
Control characters are special, invisible characters in the ASCII range 0-31. These characters are rarely used in JavaScript strings so a regular expression containing these characters is most likely a mistake.
Disallow duplicate conditions in if-else-if chains
Disallow duplicate keys in object literals
If a switch statement has duplicate test expressions in case clauses, it is likely that a programmer copied a case clause but forgot to change the test expression.
Disallow reassigning function declarations
Disallow variable or function declarations in nested blocks
Irregular whitespace not allowed.
Disallow characters which are made with multiple code points in character class syntax
Disallow use of Object.prototypes builtins directly
Disallow multiple spaces in regular expression literals
Setter cannot return a value.
Disallow confusing multiline expressions
Disallow unreachable code after return, throw, continue, and break statements
Disallow control flow statements in finally blocks
Disallow negating the left operand of relational operators
Disallow require() expressions which import non-existence modules
React: Warn if an element that likely requires a key prop--namely, one present in an array literal or an arrow function expression.
React: No duplicate props allowed
React: Detects potential ReferenceErrors resulting from misspellings or missing components.
React: NEVER mutate this.state directly, as calling setState() afterwards may replace the mutation you made. Treat this.state as if it were immutable.
React: Prevent invalid characters from appearing in markup
React: Prevent usage of unknown DOM property
Enforce comparing typeof expressions against valid strings
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.