Sha256: 28f5a5d1144732fd4afbe2757e7999e378fa797b48572248bd20c9a49f41e5dd
Contents?: true
Size: 1014 Bytes
Versions: 1
Compression:
Stored size: 1014 Bytes
Contents
# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules # # # Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. # TODO: Paste the CSSLint LICENSE here. # # # /* # * Rule: Don't use properties with a underscore prefix. # * # */ # /*global CSSLint*/ # CSSLint.addRule({ # # //rule information # id: "underscore-property-hack", # name: "Disallow properties with an underscore prefix", # desc: "Checks for the underscore property hack (targets IE6)", # browsers: "All", # # //initialization # init: function(parser, reporter){ # var rule = this; # # //check if property name starts with "_" # parser.addListener("property", function(event){ # var property = event.property; # # if (property.hack == "_") { # reporter.report("Property with underscore prefix found.", event.property.line, event.property.col, rule); # } # }); # } # });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sasslint-0.0.1 | lib/sasslint/rules/css/underscore-property-hack.rb |