You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2019. It is now read-only.
A mistake we see occasionally is users using unquoted strings as map keys, having one of those keys be named something like blue, and getting confused later on when that key compiles to #00f instead. We should add a lint rule to help out with this.
The most conservative way to do this is probably to warn the user when a map:
contains an unquoted string key,
contains a color name key, and
contains only unquoted string or color name keys.
Less conservatively, we could also warn about maps that have keys of mixed type in general or maps with any unquoted string keys, although this risks having more false positives.
The text was updated successfully, but these errors were encountered:
A mistake we see occasionally is users using unquoted strings as map keys, having one of those keys be named something like
blue
, and getting confused later on when that key compiles to#00f
instead. We should add a lint rule to help out with this.The most conservative way to do this is probably to warn the user when a map:
Less conservatively, we could also warn about maps that have keys of mixed type in general or maps with any unquoted string keys, although this risks having more false positives.
The text was updated successfully, but these errors were encountered: