Closed nfriedly closed 7 years ago
Both errors makes sense to me.
The first is yaml needs *
to be in a string. And then *-sass
is not a valid regular expression. You could use something like .*-sass
or just remove the *
.
If you need the actual star character you can use '\\*-sass'
which results in the regex /\*-sass/
Ok, I hadn't realized that they were supposed to be regular expressions. I had been putting in lines like
#...
ignoreErrors:
unused:
- karma-*
- eslint-*
My thinking was "*" was a wildcard, and otherwise the line would need to be an exact match.
That makes the second error make sense. I still not sure if I get the first one though - is it just bad yaml syntax to have a array item where the first character is *
?
*
is a special yaml character when at the beginning for anchors
Hi,
I added a
- *-sass
line underunused:
in my config file, and suddenly it couldn't load at all. This might be a bug in the dependencies, but I figured I'd report it here first.The codebase I'm working on uses eyeglass to enabling loading sass modules via npm. Most of these are named things like modularscale-sass or breakpoint-sass, etc. I tried just adding a wildcard rule, but it fails like so:
I also tried adding it in quotes:
- '*-sass'
and that got me a different error: