Commit ac9cad19 authored by Timmy Willison's avatar Timmy Willison

Add onevar to jshintrc, but remove the option for linting the concatenated file

parent e01a6231
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment