Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,14 @@ module.exports =
else
# Leaving this here to allow people to report the errors
console.log('linter-sass-lint', error)

# Unknown rules are forwarded to the user.
if /Rule `[\w-]+` could not be found/.test error.message
text = error.message

return [
type: 'Error'
text: 'Unexpected parse error in file'
text: text or 'Unexpected parse error in file'
filePath: filePath
range: [[lineIdx, 0], [lineIdx, colEndIdx]]
]
Expand Down