diff options
author | XhmikosR <xhmikosr@gmail.com> | 2015-11-16 18:56:08 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2015-11-18 23:05:40 +0300 |
commit | f553832f830447f636cb701a1dfca64411348274 (patch) | |
tree | 0fdb73dafeaed4f182f9f503010a82f2181c6477 /Gruntfile.js | |
parent | bca08873b0003882cb8f9a6be11765e8e268d816 (diff) |
Lint tweaks.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 5f0361a..f3fa1b6 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -25,108 +25,99 @@ module.exports = function(grunt) { // Before generating any new files, remove any previously-created files. clean: { - tests: ['tmp'] + tests: 'tmp' }, // Configuration to be run (and then tested). bootlint: { - default_options: { - options: { - }, + defaultOptions: { files: { - 'tmp/default_options': [ - 'test/fixtures/**.html', - ] + 'tmp/defaultOptions': 'test/fixtures/**.html' } }, relaxerror: { options: { relaxerror: { 'E001': [], - 'W005': [ - 'test/fixtures/missing-jquery.html' - ] - }, + 'W005': 'test/fixtures/missing-jquery.html' + } }, files: { 'tmp/relaxerror': [ 'test/fixtures/missing-doctype.html', 'test/fixtures/missing-charset.html', - 'test/fixtures/missing-jquery.html', + 'test/fixtures/missing-jquery.html' ] } }, - stoponerror: { + stoponerror: { options: { - stoponerror: true, + stoponerror: true }, files: { 'tmp/stoponerror': [ 'test/fixtures/missing-doctype.html', 'test/fixtures/missing-charset.html', - 'test/fixtures/cols-redundant.html', + 'test/fixtures/cols-redundant.html' ] } }, stoponwarning: { options: { - stoponwarning: true, + stoponwarning: true }, files: { 'tmp/stoponwarning': [ 'test/fixtures/missing-doctype.html', 'test/fixtures/missing-charset.html', - 'test/fixtures/cols-redundant.html', + 'test/fixtures/cols-redundant.html' ] } }, showallerrors: { options: { - showallerrors: true, + showallerrors: true }, files: { 'tmp/stoponwarning': [ 'test/fixtures/missing-doctype.html', 'test/fixtures/missing-charset.html', - 'test/fixtures/cols-redundant.html', + 'test/fixtures/cols-redundant.html' ] } }, showallerrorswithstop: { options: { showallerrors: true, - stoponwarning: true, + stoponwarning: true }, files: { 'tmp/stoponwarning': [ 'test/fixtures/missing-doctype.html', 'test/fixtures/missing-charset.html', - 'test/fixtures/cols-redundant.html', + 'test/fixtures/cols-redundant.html' ] } }, stoponboth: { options: { stoponwarning: true, - stoponerror: true, + stoponerror: true }, files: { - 'tmp/stoponboth': [ - 'test/fixtures/**.html', - ] + 'tmp/stoponboth': 'test/fixtures/**.html' } }, pass: { - options: {}, files: { 'tmp/pass': 'test/fixtures/pass.html' - }, - }, + } + } }, // Unit tests. nodeunit: { - tests: ['test/*_test.js'] + tests: 'test/*_test.js' } }); |