diff --git a/Gruntfile.js b/Gruntfile.js index 62f99f9..2c9c662 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -107,7 +107,7 @@ module.exports = function(grunt) { theme: { files: { '<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-ios.css', - '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.min.css' : '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css' + '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.min.css': '<%= meta.distPath %>css/<%= pkg.name %>-theme-android.css' } }, docs: { @@ -168,6 +168,23 @@ module.exports = function(grunt) { } }, + csslint: { + options: { + csslintrc: 'sass/.csslintrc' + }, + src: [ + 'dist/css/<%= pkg.name %>.css', + 'dist/css/<%= pkg.name %>-theme-android.css', + 'dist/css/<%= pkg.name %>-theme-ios.css' + ], + docs: { + options: { + 'ids': false + }, + src: ['docs/assets/css/docs.css'] + } + }, + validation: { options: { charset: 'utf-8', diff --git a/package.json b/package.json index 0b789e5..f9bf3a0 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "grunt-contrib-clean": "~0.5.0", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-copy": "~0.5.0", + "grunt-contrib-csslint": "~0.2.0", "grunt-contrib-cssmin": "~0.9.0", "grunt-contrib-jshint": "~0.8.0", "grunt-contrib-nodeunit": "~0.3.2", diff --git a/sass/.csslintrc b/sass/.csslintrc new file mode 100644 index 0000000..8e8433d --- /dev/null +++ b/sass/.csslintrc @@ -0,0 +1,15 @@ +{ + "adjoining-classes": false, + "box-sizing": false, + "box-model": false, + "compatible-vendor-prefixes": false, + "fallback-colors": false, + "font-sizes": false, + "important": false, + "known-properties": false, + "outline-none": false, + "qualified-headings": false, + "unique-headings": false, + "universal-selector": false, + "unqualified-attributes": false +}