By running grunt check-scss the task ended with a fatal error:
Running "scsslint:allFiles" (scsslint) task
Running scss-lint on allFiles
Fatal error: Cannot read property '1' of null
Now, if I set compactto false, the task ran through:
Running "scsslint:allFiles" (scsslint) task
Running scss-lint on allFiles
source/sass/blocks/_test.scss:7 [W] Merge rule `.foo,
.bar` with rule on line 2
Warning: Task "scsslint:allFiles" failed. Use --force to continue.
Then I made another test with no comma separated selector in my SCSS-file:
I expected the same result but both tasks ran through!
with compact true:
Running "scsslint:allFiles" (scsslint) task
Running scss-lint on allFiles
source/sass/blocks/_test.scss
6: Merge rule `.foo` with rule on line 2
Warning: Task "scsslint:allFiles" failed. Use --force to continue.
with compact false:
Running "scsslint:allFiles" (scsslint) task
Running scss-lint on allFiles
source/sass/blocks/_test.scss:6 [W] Merge rule `.foo` with rule on line 2
Warning: Task "scsslint:allFiles" failed. Use --force to continue.
This is my setup:
node --version
grunt --version
package.json:
Gruntfile.js grunt task configuration:
grunt task:
_test.scss:
By running
grunt check-scss
the task ended with a fatal error:Now, if I set
compact
tofalse
, the task ran through:Then I made another test with no comma separated selector in my SCSS-file:
I expected the same result but both tasks ran through!
with
compact true
:with
compact false
: