diff --git a/.csslintrc b/.csslintrc new file mode 100644 index 0000000000000000000000000000000000000000..b4e65db2f49d720fbfe4fb35af74003c2efb7566 --- /dev/null +++ b/.csslintrc @@ -0,0 +1,38 @@ +{ + "adjoining-classes": false, + "box-sizing": true, + "box-model": false, + "bulletproof-font-face": true, + "compatible-vendor-prefixes": true, + "display-property-grouping": false, + "duplicate-background-images": true, + "duplicate-properties": true, + "empty-rules": true, + "errors": true, + "fallback-colors": false, + "floats": false, + "font-sizes": true, + "font-faces": true, + "gradients": true, + "ids": false, + "import": true, + "important": false, + "known-properties": true, + "outline-none": false, + "order-alphabetical": false, + "overqualified-elements": false, + "qualified-headings": false, + "regex-selectors": true, + "rules-count": true, + "selector-max": true, + "selector-max-approaching": true, + "shorthand": true, + "star-property-hack": true, + "text-indent": true, + "underscore-property-hack": true, + "unique-headings": false, + "universal-selector": true, + "unqualified-attributes": true, + "vendor-prefix": false, + "zero-units": true +} diff --git a/grunt/compile.js b/grunt/compile.js index 4b3937ab4425601d520488d299caa4e0264d8865..7af2ab74fccb1eb77eb371bb1a11e4c5e6a917f0 100644 --- a/grunt/compile.js +++ b/grunt/compile.js @@ -146,7 +146,9 @@ module.exports = function (grunt) { var subtask = (dev ? 'dev' : 'css'); grunt.task.run([ 'clean:' + subtask, - 'compile:overrides' + 'compile:overrides', + 'csslint:' + subtask ]); }); -} + +}; diff --git a/grunt/config/csslint.js b/grunt/config/csslint.js new file mode 100644 index 0000000000000000000000000000000000000000..1505ff655cd54ee11a56de6d041fd42ce0db7820 --- /dev/null +++ b/grunt/config/csslint.js @@ -0,0 +1,13 @@ +module.exports = function () { + return { + options: { + csslintrc: '.csslintrc' + }, + css: { + src: ['css/**/*.css'] + }, + dev: { + src: ['css/<%= latestVersion %>/overrides.min.css'] + } + }; +}; diff --git a/package.json b/package.json index 5ad97d44ad2daa0f7c57c77f935635ab586a4da9..4ed1fe49bfd57ec7818252165e24e2951c5295e0 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "glob": "^5.0.14", "grunt": "^0.4.5", "grunt-contrib-clean": "^0.6.0", + "grunt-contrib-csslint": "^2.0.0", "grunt-contrib-watch": "^0.6.1", "grunt-githooks": "^0.3.1", "inquirer": "^0.9.0",