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:
@@ -8,7 +8,23 @@
|
|||||||
"eqnull": true,
|
"eqnull": true,
|
||||||
"quotmark": "single",
|
"quotmark": "single",
|
||||||
"trailing": true,
|
"trailing": true,
|
||||||
|
"undef": true,
|
||||||
|
"browser": true,
|
||||||
|
"jquery": true,
|
||||||
"globals": {
|
"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,3 +1,4 @@
|
|||||||
|
/* jshint node: true */
|
||||||
var markdown = require('node-markdown').Markdown;
|
var markdown = require('node-markdown').Markdown;
|
||||||
|
|
||||||
module.exports = function(grunt) {
|
module.exports = function(grunt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user