Open thybzi opened 8 years ago
Also it's quite wierd that linter doesn't pay attention to color values in the first nested hash (I think that could be somehow connected with successful passing for single-level hash)
This rule also applies if I have two color items in each nested hash.
In the following construct both colors for search
item are reported, and both for about
item aren't reported:
$icons = {
about: {
size: 15px
color: #bada55
background: #90091e
}
search: {
size: 17px
color: #90091e
background: #bada55
}
}
(And if I swap search
and about
order, so the search
is first, only about
's color are reported)
Having this:
Linter output:
Warnings for
about
andsearch
"invalid properties" can be suppressed by quoting these keys:'about'
and'search'
. For nested keys likesize
even quoting doesn't make any sense.P.S. However, single-level hash passes every linter: