ls-lint
ls-lint copied to clipboard
Match all multiple patterns
Hello!
Looking at the docs seems there is a way to specify multiple patters with |
:
ls:
.svg: kebab-case | regex:.*-(suffix1-suffix2)$
However the behavior seems to be match any of the rules. Is there any way to specify that needs to match all of them?
My goal is to ensure kebab-case, but also that file names have one specific suffix.
I know I can write a more complex regex to allow for this (eg regex:[a-z0-9]+(?:-[a-z0-9]+)*-(suffix1|suffix2)
but was trying to keep it simpler