Skip to content

Instantly share code, notes, and snippets.

@leepowelldev
Created July 7, 2015 13:51
Show Gist options
  • Save leepowelldev/e3ba4700da3fbffeaa59 to your computer and use it in GitHub Desktop.
Save leepowelldev/e3ba4700da3fbffeaa59 to your computer and use it in GitHub Desktop.
.csslintrc
{
// POSSIBLE ERRORS
"box-model": false, // Beware of broken box models
"display-property-grouping": true, // Use correct properties for a display
"duplicate-properties": true, // Avoid duplicate properties
"empty-rules": true, // Remove empty rules
"known-properties": false, // Require use of known properties
// COMPATIBILITY
"adjoining-classes": false, // Don't use adjoining classes
"box-sizing": false, // Disallow box sizing
"compatible-vendor-prefixes": false, // Include all compatible vendor prefixes
"gradients": false, // CSS gradients require all browser prefixes
"text-indent": false, // Disallow negative text indent
"vendor-prefix": true, // Vendor prefixed properties should also have the standard
"fallback-colors": true, // Require fallback colors
"star-property-hack": true, // Disallow star hack
"underscore-property-hack": true, // Disallow underscore hack
"bulletproof-font-face": true, // Bulletproof font face
// PERFORMANCE
"font-faces": false, // Don't use too many web fonts
"import": true, // Don't use @import
"regex-selectors": false, // Avoid selectors that look like regular expressions
"universal-selector": false, // Disallow universal selector
"unqualified-attributes": false, // Disallow unqualified attribute selectors
"zero-units": true, // Zero values don't need units
"overqualified-elements": true, // Disallow overqualified elements
"shorthand": false, // Require shorthand properties
"duplicate-background-images": true, // Disallow duplicate background images
// MAINTAINABILITY & DUPLICATION
"floats": false, // Don't use too many floats
"font-sizes": false, // Don't use too may font-size declarations
"ids": true, // Don't use IDs in selectors
"important": true, // Don't use !important
// ACCESSIBILITY
"outline-none": false, // Disallow outline:none
// OOCSS
"qualified-headings": false, // Don't qualify headings
"unique-headings": false, // Heading styles should only be defined once
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment