linkedin/css-blocks

Throw a meaningful error when there's a syntax mistake in composes

ramitha opened this issue · 1 comments

Currently, composes: a-block[type=butcher] (value is not in quotes) results in an error that's not meaningful, like the following.


[css-blocks] BlockSyntaxError: No Block named "b-block" found in scope. (xxx/card.block.scss:18:3)```

We should throw an error that suggest a quoting the value instead. 

Perhaps support composes: 'text-body[weight=bold][size=small]'; in addition to composes: 'text-body[weight=bold]', 'text-body[size=small]'