All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.scss-lint-0.34.0.lib.scss_lint.linter.important_rule.rb Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
module SCSSLint
  # Reports the use of !important in properties.
  class Linter::ImportantRule < Linter
    include LinterRegistry

    def visit_prop(node)
      return unless source_from_range(node.source_range).include?('!important')

      add_lint(node, '!important should not be used')
    end
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy