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 44623dd commit eb59b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eslintrc.json
Original file line number Diff line number Diff line change
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 eb59b83

Please sign in to comment.