Permalink
Browse files

Use JSHint's `extends` option

This allows the linting rules to be slightly more strict--test
environment globals should only be considered valid for test files.
  • Loading branch information...
jugglinmike committed Jun 30, 2014
1 parent ce39046 commit 2e91088d688ac5961a1ed22d330174406800e1cd
Showing with 11 additions and 8 deletions.
  1. +1 −7 .jshintrc
  2. +1 −1 package.json
  3. +9 −0 test/.jshintrc
View
@@ -6,11 +6,5 @@
"undef": true, "undef": true,
"unused": true, "unused": true,
"node": true, "node": true,
"quotmark": "single", "quotmark": "single"
"globals": {
"expect": true,
"it": true,
"describe": true,
"beforeEach": true
}
} }
View
@@ -32,7 +32,7 @@
"expect.js": "~0.3.1", "expect.js": "~0.3.1",
"istanbul": "~0.2", "istanbul": "~0.2",
"jsdom": "~0.8.9", "jsdom": "~0.8.9",
"jshint": "~2.3.0", "jshint": "~2.5.1",
"mocha": "*", "mocha": "*",
"xyz": "~0.4.0" "xyz": "~0.4.0"
}, },
View
@@ -0,0 +1,9 @@
{
"extends": "../.jshintrc",
"globals": {
"expect": true,
"it": true,
"describe": true,
"beforeEach": true
}
}

0 comments on commit 2e91088

Please sign in to comment.