Stylelint sees font-size: var(--zz-text--1) in one of my Vue files as a mistake because of the -- at the end of the CSS variable name. We are using --1 because this variable representing a negative value. At the moment I've fully excluded this file, but I would prefer to just skip that one line so that I can still lint the rest of the file.
Hi @ota-meshi!
Is there a way of ignoring certain lines in Vue files? For example, it's possible to ignore code in CSS files using comments: https://stylelint.io/user-guide/ignore-code/
Stylelint sees
font-size: var(--zz-text--1)
in one of my Vue files as a mistake because of the--
at the end of the CSS variable name. We are using--1
because this variable representing a negative value. At the moment I've fully excluded this file, but I would prefer to just skip that one line so that I can still lint the rest of the file.Here's a screenshot of the error:
Thanks!