Tinkoff/linters

custom-property-pattern not compat with taiga vars

Closed this issue · 1 comments

zy2ba commented

Into stylelint config contains rule custom-property-pattern, that dictate use only kebab case:

'custom-property-pattern': [
			'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
			{
				message: 'Expected custom property name to be kebab-case',
			},
		],

But taiga ui contains vars like --tui-text_body-m, obviously not match that pattern,

may custom-property-pattern needs to reconfigure for allowing all taiga vars?

zy2ba commented

my fault, taiga vars only in kebab, underscores only in class names
https://taiga-ui.dev/next/typography