Sha256: 4b7fcec8044b7184fa9f7327422a56a56e80201e6b68797c2cf272173f3bf2a0
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
module SCSSLint class Linter::PlaceholderInExtend < Linter include LinterRegistry def visit_extend(node) # The array returned by the parser is a bit awkward in that it splits on # every word boundary (so %placeholder becomes ['%', 'placeholder']). selector = node.selector.join add_lint(node) unless selector.start_with?('%') end def description 'Always use placeholder selectors (e.g. %some-placeholder) with @extend' end end end
Version data entries
4 entries across 4 versions & 1 rubygems