Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 42011f0

Browse files
committed
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
1 parent ca6fad6 commit 42011f0

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Diff for: .jshintrc

+17-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@
88
"eqnull": true,
99
"quotmark": "single",
1010
"trailing": true,
11+
"undef": true,
12+
"browser": true,
13+
"jquery": true,
1114
"globals": {
12-
"angular": true
15+
"angular": false,
16+
17+
// For Jasmine
18+
"after" : false,
19+
"afterEach" : false,
20+
"before" : false,
21+
"beforeEach" : false,
22+
"describe" : false,
23+
"expect" : false,
24+
"jasmine" : false,
25+
"module" : false,
26+
"spyOn" : false,
27+
"inject" : false,
28+
"it" : false
1329
}
1430
}

Diff for: Gruntfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* jshint node: true */
12
var markdown = require('node-markdown').Markdown;
23

34
module.exports = function(grunt) {

0 commit comments

Comments
 (0)