Skip to content

Commit

Permalink
Disallow case NaN, switch(NaN), indexOf(NaN), and `lastIndexOf(…
Browse files Browse the repository at this point in the history
…NaN)` (use-isnan)

Fixes: standard/standard#1429
  • Loading branch information
feross committed Oct 29, 2020
1 parent 0c59b83 commit 31318de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eslintrc.json
Expand Up @@ -206,7 +206,10 @@
"template-curly-spacing": ["error", "never"],
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"use-isnan": ["error", {
"enforceForSwitchCase": true,
"enforceForIndexOf": true
}],
"valid-typeof": ["error", { "requireStringLiterals": true }],
"wrap-iife": ["error", "any", { "functionPrototypeMethods": true }],
"yield-star-spacing": ["error", "both"],
Expand Down

0 comments on commit 31318de

Please sign in to comment.