sh-waqar / stylelint-declaration-use-variable

A stylelint custom rule to check the use of scss variable on declaration.
MIT License
82 stars 18 forks source link

Show property value in error message #18

Open AndyOGo opened 7 years ago

AndyOGo commented 7 years ago

It would be very comfortable to log not only the failed CSS property, but also it's wrong value, istead of:

27:5  ✖  Expected variable for "color".   sh-waqar/declaration-use-variable

Better:

27:5  ✖  Expected variable for "color: #fff".   sh-waqar/declaration-use-variable
AndyOGo commented 5 years ago

I implemented my own plugin based on the ideas of this, but with above log: https://github.com/AndyOGo/stylelint-declaration-strict-value