diff options
author | Mark Otto <markdotto@gmail.com> | 2017-11-26 05:06:34 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-11-26 05:06:34 +0300 |
commit | 04d92a420a15311b5033215d843e853aae540f5d (patch) | |
tree | 1269db725037d51cf49a83f9017276194d426371 /Gruntfile.js | |
parent | 4731b239b1d2969b3e0262fb3e85ff8ce981e058 (diff) |
move from csslint to stylelint
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index dff1fadb9e..8b282a20b9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -218,24 +218,26 @@ module.exports = function (grunt) { } }, - csslint: { + stylelint: { options: { - csslintrc: 'less/.csslintrc' + configFile: 'grunt/.stylelintrc', + formatter: 'string', + ignoreDisables: false, + failOnError: true, + outputFile: '', + reportNeedlessDisables: false, + syntax: '' }, dist: [ - 'dist/css/bootstrap.css', - 'dist/css/bootstrap-theme.css' + 'less/**/*.less' + ], + docs: [ + 'docs/assets/less/**/*.less' ], examples: [ 'docs/examples/**/*.css' - ], - docs: { - options: { - ids: false, - 'overqualified-elements': false - }, - src: 'docs/assets/css/src/docs.css' - } + ] + }, cssmin: { @@ -464,7 +466,7 @@ module.exports = function (grunt) { if (runSubset('core') && // Skip core tests if this is a Savage build process.env.TRAVIS_REPO_SLUG !== 'twbs-savage/bootstrap') { - testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'csslint:dist', 'test-js', 'docs']); + testSubtasks = testSubtasks.concat(['dist-css', 'dist-js', 'stylelint:dist', 'test-js', 'docs']); } // Skip HTML validation if running a different subset of the test suite if (runSubset('validate-html') && @@ -515,7 +517,7 @@ module.exports = function (grunt) { // Docs task. grunt.registerTask('docs-css', ['autoprefixer:docs', 'autoprefixer:examples', 'csscomb:docs', 'csscomb:examples', 'cssmin:minifyDocs']); - grunt.registerTask('lint-docs-css', ['csslint:docs', 'csslint:examples']); + grunt.registerTask('lint-docs-css', ['stylelint:docs', 'stylelint:examples']); grunt.registerTask('docs-js', ['uglify:docsJs', 'uglify:customize']); grunt.registerTask('lint-docs-js', ['jshint:assets', 'jscs:assets']); grunt.registerTask('docs', ['docs-css', 'lint-docs-css', 'docs-js', 'lint-docs-js', 'clean:docs', 'copy:docs', 'build-glyphicons-data', 'build-customizer']); |