aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index a48639482..5f3a02c2c 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -14,7 +14,12 @@ module.exports = function( grunt ) {
data = grunt.file.readJSON( filepath );
} catch(e) {}
return data;
- };
+ },
+ srcHintOptions = readOptionalJSON("src/.jshintrc");
+
+ // The concatenated file won't pass onevar
+ // But our modules can
+ delete srcHintOptions.onevar;
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
@@ -72,9 +77,7 @@ module.exports = function( grunt ) {
jshint: {
dist: {
src: [ "dist/jquery.js" ],
- options: {
- jshintrc: "src/.jshintrc"
- }
+ options: srcHintOptions
},
grunt: {
src: [ "Gruntfile.js" ],