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