stylelint-declaration-use-variable icon indicating copy to clipboard operation
stylelint-declaration-use-variable copied to clipboard

Allow custom functions

Open adammockor opened this issue 8 years ago • 2 comments

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.

adammockor avatar Sep 20 '16 08:09 adammockor

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

isellsoap avatar Apr 19 '18 08:04 isellsoap

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.

thibaudcolas avatar Apr 19 '19 09:04 thibaudcolas