stylelint-validator icon indicating copy to clipboard operation
stylelint-validator copied to clipboard

Support `attr` as a value

Open hjonasson opened this issue 2 years ago • 3 comments

Hi there,

I am cleaning up our stylelint config and I came across what seems to be a missing feature in the stylelint validator. Namely, to write this

content: attr(title);

I need to have an ignoreValue pattern, (which I write attr.* for reference). I can not see from the docs that using attr is supported by the validator. Could you show me how I am wrong about that or point me in a direction to where I could add this support here?

Thanks

hjonasson avatar Jul 25 '22 22:07 hjonasson

Update css-tree to 2.2.0, should work.

lahmatiy avatar Aug 10 '22 13:08 lahmatiy

Awesome stuff. Thanks Roman!

On Thu, 11 Aug 2022 at 01:23, Roman Dvornov @.***> wrote:

Update css-tree to 2.2.0 https://github.com/csstree/csstree/releases/tag/v2.2.0, should work.

— Reply to this email directly, view it on GitHub https://github.com/csstree/stylelint-validator/issues/47#issuecomment-1210669096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB25QBJO5DTJHHOI6NO47N3VYOUNVANCNFSM54TZXYAQ . You are receiving this because you authored the thread.Message ID: @.***>

hjonasson avatar Aug 10 '22 21:08 hjonasson

I am just getting around to doing that now. Does stylelint-csstree-validator need to have that release created? The latest version is from 2021 and 2.0.0 is the latest version on npm

For reference, my dependency is

    "stylelint-csstree-validator": "^2.0.0",

hjonasson avatar Sep 29 '22 03:09 hjonasson

Fixed in 2.1.0

lahmatiy avatar Jan 30 '23 02:01 lahmatiy

Thanks a lot Roman!

On Mon, 30 Jan 2023 at 15:02, Roman Dvornov @.***> wrote:

Closed #47 https://github.com/csstree/stylelint-validator/issues/47 as completed.

— Reply to this email directly, view it on GitHub https://github.com/csstree/stylelint-validator/issues/47#event-8383425875, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB25QBL4Y2H5TPZ2HPOWBKDWU4OMRANCNFSM54TZXYAQ . You are receiving this because you authored the thread.Message ID: @.***>

hjonasson avatar Jan 30 '23 03:01 hjonasson