chore(jshint): make JSHint configuration stricter

- Check for usage of undefined variables
- Add basic Jasmine globals so that spec files pass JSHint
- Ensure that angular variable can't be re-defined (set to false)

Closes #2861
This commit is contained in:
Chris Chua
2014-10-20 01:29:41 -07:00
parent ca6fad675b
commit 42011f0665
2 changed files with 18 additions and 1 deletions
+17 -1
View File
@@ -8,7 +8,23 @@
"eqnull": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"browser": true,
"jquery": true,
"globals": {
"angular": true
"angular": false,
// For Jasmine
"after" : false,
"afterEach" : false,
"before" : false,
"beforeEach" : false,
"describe" : false,
"expect" : false,
"jasmine" : false,
"module" : false,
"spyOn" : false,
"inject" : false,
"it" : false
}
}
+1
View File
@@ -1,3 +1,4 @@
/* jshint node: true */
var markdown = require('node-markdown').Markdown;
module.exports = function(grunt) {