carbon-design-system / stylelint-plugin-carbon-tokens

Apache License 2.0
9 stars 3 forks source link

Allow removal of individual properties from those checked #118

Closed lee-chase closed 4 months ago

lee-chase commented 4 months ago

Props can be added currently but it is not simple to remove e.g. default - line-height.

Extend the includeProps mechanism or add an exclude props option

- `includeProps: []` - Indicates default, same as omitting the property
- `includeProps: ["*"]` - Indicates default, same as omitting the property
- `includeProps: ["/^\\$my-color--/", "*"]` - SCSS variable starting "\$my-color--", plus default values specified
lee-chase commented 4 months ago

Released in 2.6 and 3.0.0-rc.6