Skip to content

Commit

Permalink
Enforce comparing typeof expressions against string literals (valid…
Browse files Browse the repository at this point in the history
…-typeof)

Adds { "requireStringLiterals": true } to the 'valid-typeof' rule that
we already enforce.

Fixes: standard/standard#629
  • Loading branch information
feross committed Feb 9, 2017
1 parent 9c4ad79 commit 5743ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Expand Up @@ -156,7 +156,7 @@
"template-tag-spacing": ["error", "never"],
"unicode-bom": ["error", "never"],
"use-isnan": "error",
"valid-typeof": "error",
"valid-typeof": ["error", { "requireStringLiterals": true }],
"wrap-iife": ["error", "any", { "functionPrototypeMethods": true }],
"yield-star-spacing": ["error", "both"],
"yoda": ["error", "never"],
Expand Down

0 comments on commit 5743ce8

Please sign in to comment.