You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sass loops inside of VUE files cause linter to crash
Which rule, if any, is the bug related to?
not related to any rule
What CSS is needed to reproduce the bug?
Any rule that has @for loop in sass
$class-slug: for !default@for $ifrom1through4
.#{$class-slug}-#{$i}
width: 60px+ $icolor: black
What stylelint configuration is needed to reproduce the bug?
Any rule, is not rule specific. Put something to tigger the linter.
{
"rules": {
"color-named": "never"
}
}
Which version of stylelint are you using?
11.1.1
How are you running stylelint: CLI, PostCSS plugin, Node.js API?
./node_modules/.bin/stylelint Sass.vue
Does the bug relate to non-standard syntax (e.g. SCSS, Less etc.)?
Yes, it's related to SASS loops
What did you expect to happen?
stylelint would work instead of failing with an error
What actually happened (e.g. what warnings or errors did you get)?
An error occured
TypeError: Cannot read property 'start' of undefined
at LocalFixer.node (/home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:35:27)
at /home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:41:9
at /home/andrew/sass-for/node_modules/postcss/lib/container.js:135:18
at Root.each (/home/andrew/sass-for/node_modules/postcss/lib/container.js:101:16)
at Root.walk (/home/andrew/sass-for/node_modules/postcss/lib/container.js:131:17)
at LocalFixer.root (/home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:40:8)
at LocalFixer.parse (/home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:69:9)
at parseStyle (/home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:88:39)
at /home/andrew/sass-for/node_modules/postcss-syntax/parse-style.js:103:17
at Array.forEach (<anonymous>)
The sass loops inside of VUE files cause linter to crash
not related to any rule
Any rule that has
@for
loop in sassAny rule, is not rule specific. Put something to tigger the linter.
11.1.1
./node_modules/.bin/stylelint Sass.vue
Yes, it's related to SASS loops
stylelint would work instead of failing with an error
An error occured
To reproduce the issue:
The text was updated successfully, but these errors were encountered: