gems.scss-lint-0.34.0.lib.scss_lint.linter.important_rule.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
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