Sha256: cdfbe69c7c78b2730c76a284a07359013c37fe4266354e2a38df635acf1aefee
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
module SCSSLint # Reports when `border: 0` can be used instead of `border: none`. class Linter::BorderZero < Linter include LinterRegistry def visit_prop(node) return unless BORDER_PROPERTIES.include?(node.name.first.to_s) if node.value.to_sass.strip == 'none' add_lint(node, '`border: 0;` is preferred over `border: none;`') end end private BORDER_PROPERTIES = %w[ border border-top border-right border-bottom border-left ] end end
Version data entries
4 entries across 4 versions & 1 rubygems