lib/scss_lint/linter/indentation.rb in scss_lint-0.53.0 vs lib/scss_lint/linter/indentation.rb in scss_lint-0.54.0
- old
+ new
@@ -95,11 +95,11 @@
check_and_visit_children(node, &block)
end
end
def visit_import(node)
- prev = previous_node(node)
- return if prev.is_a?(Sass::Tree::ImportNode) && source_from_range(prev.source_range) =~ /,$/
+ previous_node(node)
+ return unless engine.lines[node.line - 1] =~ /@import/
check_indentation(node)
end
# Define node types that increase indentation level
alias visit_directive check_and_visit_children