aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2013-12-08 13:01:18 +0200
committerXhmikosR <[email protected]>2013-12-08 13:23:25 +0200
commitcbfbf1b2dd16b1aa17e3feef9a4643e98a0f967e (patch)
tree1b845510eb4528b07478cfedbe872f03b301bc5a
parentb5613c9af5ed412aace32419378137bf64342203 (diff)
downloadbootstrap-cbfbf1b2dd16b1aa17e3feef9a4643e98a0f967e.tar.xz
bootstrap-cbfbf1b2dd16b1aa17e3feef9a4643e98a0f967e.zip
Add csslint support.
-rw-r--r--.csslintrc18
-rw-r--r--Gruntfile.js8
-rw-r--r--package.json1
3 files changed, 27 insertions, 0 deletions
diff --git a/.csslintrc b/.csslintrc
new file mode 100644
index 000000000..8cf2f846d
--- /dev/null
+++ b/.csslintrc
@@ -0,0 +1,18 @@
+{
+ "adjoining-classes": false,
+ "box-sizing": false,
+ "box-model": false,
+ "compatible-vendor-prefixes": false,
+ "floats": false,
+ "font-sizes": false,
+ "gradients": false,
+ "important": false,
+ "known-properties": false,
+ "outline-none": false,
+ "qualified-headings": false,
+ "regex-selectors": false,
+ "text-indent": false,
+ "unique-headings": false,
+ "universal-selector": false,
+ "unqualified-attributes": false
+}
diff --git a/Gruntfile.js b/Gruntfile.js
index f7da24f8b..c7277cb98 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -58,6 +58,13 @@ module.exports = function (grunt) {
}
},
+ csslint: {
+ options: {
+ csslintrc: '.csslintrc'
+ },
+ src: ['dist/css/bootstrap.css', 'dist/css/bootstrap-theme.css']
+ },
+
concat: {
options: {
banner: '<%= banner %><%= jqueryCheck %>',
@@ -300,6 +307,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
+ grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
diff --git a/package.json b/package.json
index 3c9fd7fe6..e6adbc17e 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
, "grunt-contrib-concat": "~0.3.0"
, "grunt-contrib-connect": "~0.5.0"
, "grunt-contrib-copy": "~0.4.1"
+ , "grunt-contrib-csslint": "~0.2.0"
, "grunt-contrib-jshint": "~0.7.0"
, "grunt-contrib-qunit": "~0.3.0"
, "grunt-contrib-uglify": "~0.2.4"