Sha256: 036f6ad8f927942ddd04fe44edcb48cba569416b7ed085789ab32ac941ab8e51
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 Bytes
Contents
module SCSSLint 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 end private BORDER_PROPERTIES = %w[border border-top border-right border-bottom border-left] end
Version data entries
4 entries across 4 versions & 1 rubygems