Permalink
Browse files

Reconfigure jshint to have less strict options for non-task files

  • Loading branch information...
1 parent ef99a79 commit c86b2e53acb2cdfe9c081158a9ce804947dd1c7b @pieterv pieterv committed Dec 31, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 GruntFile.js
View
@@ -6,8 +6,8 @@ module.exports = function(grunt) {
all: ["test/test_image_encoder.js", "test/test_css_encoder.js"]
},
watch: {
- files: "<%= jshint.all.files %>",
- tasks: "default"
+ files: "<%= jshint.tasks.src %>",
+ tasks: ["jshint:tasks", "nodeunit"]
},
jshint: {
options: {
@@ -24,7 +24,13 @@ module.exports = function(grunt) {
node: true,
es5: true
},
- all: ["GruntFile.js", "tasks/**/*.js", "test/**/*.js"]
+ tasks: {
+ src: ["tasks/**/*.js"]
+ },
+ general: {
+ options: { strict: false },
+ src: ["GruntFile.js", "test/**/*.js"]
+ }
}
});

0 comments on commit c86b2e5

Please sign in to comment.