diff options
Diffstat (limited to 'grunt.js')
-rw-r--r-- | grunt.js | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -1,6 +1,7 @@ -/*jshint node: true */ module.exports = function( grunt ) { +"use strict"; + var // files coreFiles = [ @@ -161,6 +162,7 @@ grunt.initConfig({ "package.json", "*.jquery.json", "ui/**/*", + "ui/.jshintrc", "demos/**/*", "themes/**/*", "external/**/*", @@ -279,14 +281,11 @@ grunt.initConfig({ files: grunt.file.expandFiles( "tests/unit/**/*.html" ).filter(function( file ) { // disabling everything that doesn't (quite) work with PhantomJS for now // TODO except for all|index|test, try to include more as we go - return !( /(all|all-active|index|test|draggable|droppable|selectable|resizable|sortable|dialog|slider|datepicker|tabs|tabs_deprecated)\.html$/ ).test( file ); + return !( /(all|index|test|dialog|tabs|tooltip)\.html$/ ).test( file ); }) }, lint: { - ui: grunt.file.expandFiles( "ui/*.js" ).filter(function( file ) { - // TODO remove items from this list once rewritten - return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file ); - }), + ui: "ui/*.js", grunt: [ "grunt.js", "build/**/*.js" ], tests: "tests/unit/**/*.js" }, @@ -304,7 +303,8 @@ grunt.initConfig({ "important": false, "outline-none": false, // especially this one - "overqualified-elements": false + "overqualified-elements": false, + "compatible-vendor-prefixes": false } } }, @@ -325,9 +325,7 @@ grunt.initConfig({ } return { - // TODO: use "faux strict mode" https://github.com/jshint/jshint/issues/504 - // TODO: limit `smarttabs` to multi-line comments https://github.com/jshint/jshint/issues/503 - options: parserc(), + grunt: parserc(), ui: parserc( "ui/" ), // TODO: `evil: true` is only for document.write() https://github.com/jshint/jshint/issues/519 // TODO: don't create so many globals in tests |