sasstools / sass-lint

Pure Node.js Sass linting
MIT License
1.77k stars 532 forks source link

@import and unquoted relative path change causes 'Fatal' block validity #1227

Open abrom opened 5 years ago

abrom commented 5 years ago

What version of Sass Lint are you using?

1.12.1

Please include any relevant parts of your configuration

N/A completely vanilla

What did you do? Please include the actual source code causing the issue.

Running the CLI against a sass file containing an import with a relative path change (that isn't surrounded with quotes)

@import ../foo

What did you expect to happen?

Parser to skip over the import and continue linting the rest of the document

What actually happened? Please include any error messages given to you by Sass Lint.

  1:1  error  Please check validity of the block starting from line #1  Fatal

Note, the following do work as expected:

@import path/to/foo

and

@import '../foo'
ericgish commented 4 years ago

@abrom Did you ever resolve this? I'm running into this issue as well

abrom commented 4 years ago

Yes, per :point_up: I just quoted the path. ie @import '../foo'