Sha256: 18624d0afaeed877b5b39ea46e0a840d0342f6249649ae38d46f1ecd74914c7c
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module SCSSLint # Checks for the use of double colons with pseudo elements. class Linter::PseudoElement < Linter include LinterRegistry PSEUDO_ELEMENTS = %w[after backdrop before first-letter first-line selection] def visit_pseudo(pseudo) if PSEUDO_ELEMENTS.include?(pseudo.name) return if pseudo.syntactic_type == :element add_lint(pseudo, 'Begin pseudo elements with double colons: `::`') else return if pseudo.syntactic_type != :element add_lint(pseudo, 'Begin pseudo classes with a single colon: `:`') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scss_lint-0.43.0 | lib/scss_lint/linter/pseudo_element.rb |