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

Allow custom functions #15

Open adammockor opened 8 years ago

adammockor commented 8 years ago

If I have custom function to retrieve color (for example from current theme), I am getting error, but I shouldn't because I am using variable as parameter to that function.

isellsoap commented 6 years ago

This would be really neat, indeed. See for example this Sass function usage as an example.

thibaudcolas commented 5 years ago

Check out https://github.com/AndyOGo/stylelint-declaration-strict-value, which is inspired by this plugin and supports functions:

A stylelint plugin that enforces either variables ($sass, @less, var(--cssnext)), functions or custom CSS keywords (inherit, none, etc.) for property's values.