Added all of the filters to the lesshint rc (all explicitly enabled or disabled) and made empty line at end of file compliant

pull/1/head
Caleb James DeLisle 7 years ago
parent 1d2119b292
commit 024aa741a7

@ -2,30 +2,59 @@
"fileExtensions": [".less"], "fileExtensions": [".less"],
// These rules are almost certainly crap and will not catch bugs (Caleb) // These rules are almost certainly crap and will not catch bugs (Caleb)
"finalNewline": false, "newlineAfterBlock": { "enabled": false }, // not just a newline but an entire empty line after each block
"newlineAfterBlock": false, "spaceAroundOperator": { "enabled": false }, // disallow calc(10px+10px);
"spaceAroundOperator": false, "hexLength": { "enabled": false }, // require long hex color codes or require short where possible
"hexLength": false, "hexNotation": { "enabled": false }, // require hex lowercase
"hexNotation": false, "propertyOrdering": { "enabled": false }, // require attributes to be in alphabetical order D:
"propertyOrdering": false, "stringQuotes": { "enabled": false }, // force quoting of strings with ' or " (silly)
"stringQuotes": false, "importPath": { "enabled": false }, // require imports to not have .less, ridiculous
"importPath": false, "qualifyingElement": { "enabled": false }, // disallow div.xxx and require .xxx
"qualifyingElement": false, "decimalZero": { "enabled": false }, // disallow .5em
"decimalZero": false, "borderZero": { "enabled": false }, // disallow border: none;
"borderZero": false, "selectorNaming": { "enabled": false }, // this would be crap because classes are what they are.
// These rules should be discussed, if they're crap then they should be moved up. // These rules should be discussed, if they're crap then they should be moved up.
"zeroUnit": false, "zeroUnit": { "enabled": false },
"spaceAroundComma": false, "spaceAroundComma": { "enabled": false },
"singleLinePerProperty": false, "singleLinePerProperty": { "enabled": false },
"importantRule": false, "_singleLinePerProperty": {
"idSelector": false, "enabled": true,
"singleLinePerSelector": false, "allowSingleLineRules": true
"spaceAfterPropertyColon": false, },
"spaceBetweenParens": false, "importantRule": { "enabled": false },
"spaceBeforeBrace": false, "idSelector": { "enabled": false },
"universalSelector": false, "singleLinePerSelector": { "enabled": false },
"spaceAfterPropertyColon": { "enabled": false },
"spaceBetweenParens": { "enabled": false },
"universalSelector": { "enabled": false },
"maxCharPerLine": { "enabled": false }, // using lesshint flags can cause long lines
"colorVariables": { "enabled": false }, // require all colors to be stored as variables first...
"comment": { "enabled": false }, // ban multi-line comments ?
"variableValue": { "enabled": false }, // any attribute types which should always be variables ? color?
"finalNewline": { "enabled": true }, // require an emprty line at the end of the file (enabled for now)
"spaceBeforeBrace": { "enabled": false },//{ "enabled": true, "style": "one_space" },
// These rules are really good rules to have around IMO (Caleb) but they're not being honored. // Turn everything else on
"maxCharPerLine": false "attributeQuotes": { "enabled": true },
"depthLevel": {
"depth": 1 // TODO(cjd) This is obviously not triggering, even with 1
},
"duplicateProperty": { "enabled": true },
"emptyRule": { "enabled": true },
"hexValidation": { "enabled": true }, // disallow actual garbage color hex codes (e.g. #ab)
"propertyUnits": {
"valid": ["rem", "vw", "em", "px"], // These units are allowed for all properties
"invalid": ["pt"], // The 'pt' unit is not allowed under any circumstances
"properties": {
//"line-height": [] // No units are allowed for line-height
}
},
"spaceAfterPropertyName": { "enabled": true, "style": "no_space" },
"spaceAfterPropertyValue": { "enabled": true, "style": "no_space" },
"spaceAroundBang": { "enabled": true, "style": "before" },
"trailingSemicolon": { "enabled": true },
"trailingWhitespace": { "enabled": true },
"urlFormat": { "enabled": true, "style": "relative" },
"urlQuotes": { "enabled": true }
} }

@ -3,4 +3,4 @@
// override whatever colors you want. When you update, the new colors will be // override whatever colors you want. When you update, the new colors will be
// added ok because the original file is pulled in first. // added ok because the original file is pulled in first.
@import (once) "/customize.dist/src/less2/include/colortheme.less"; @import (once) "/customize.dist/src/less2/include/colortheme.less";
@import (once) "/customize/src/less2/include/colortheme.less"; @import (once) "/customize/src/less2/include/colortheme.less";

@ -40,4 +40,4 @@
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
} }

Loading…
Cancel
Save