Skip to content
Permalink
Browse files

Add onevar to jshintrc, but remove the option for linting the concate…

…nated file
  • Loading branch information...
timmywil committed Apr 9, 2013
1 parent e01a623 commit ac9cad19fa0473315489ee952ba73afdaeb80386
Showing with 8 additions and 4 deletions.
  1. +7 −4 Gruntfile.js
  2. +1 −0 src/.jshintrc
@@ -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"),
@@ -73,9 +78,7 @@ module.exports = function( grunt ) {
jshint: {
dist: {
src: [ "dist/jquery.js" ],
options: {
jshintrc: "src/.jshintrc"
}
options: srcHintOptions
},
grunt: {
src: [ "Gruntfile.js" ],
@@ -6,6 +6,7 @@
"expr": true,
"immed": true,
"noarg": true,
"onevar": true,
"quotmark": "double",
"smarttabs": true,
"trailing": true,

0 comments on commit ac9cad1

Please sign in to comment.
You can’t perform that action at this time.