Sha256: 19f05e51e0010725ef44c627197ff732d88a9d71a2ed15f635c05cd2d4e9862b
Contents?: true
Size: 612 Bytes
Versions: 17
Compression:
Stored size: 612 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 add_lint(node) if node.value.to_sass.strip == 'none' end def description '`border: 0;` is preferred over `border: none;`' end private BORDER_PROPERTIES = %w[border border-top border-right border-bottom border-left] end end
Version data entries
17 entries across 17 versions & 1 rubygems