-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.jshintrc
32 lines (30 loc) · 1.14 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// http://jshint.com/docs/options/
// We want to be as strict as feasible; so don't change this file without
// team discussion! Thanks.
// Also don't change it before reading the JSHint documentation
{
// Enforcing
"enforceall": true, // start out strict
"strict": true, // must have "'use strict';"
"es5": false, // fixes a bug in JSHint
"es3": false, // fixes a bug related to JSON global. https://github.com/jshint/jshint/issues/2213
"nocomma": false, // fixes: https://github.com/jshint/jshint/issues/2044
//Environment
"globals": {
"Iris": true, // Our JS namespace
"Backbone": true, // defined by Backbone.js
"Turbolinks": true, // defined by turbolinks.js, part of Rails
"_": true, // defined by Underscore.js
"getJSONFixture": true, // jasmine-jquery
"loadFixture": true, // jasmine-jquery
"readFixtures": true, // jasmine-jquery
"stubAjaxRequest": true,
"stubAjaxRequestWithStatus": true,
"stubAjaxRequestNoFixture": true,
"searchAutocomplete": true,
"withoutMockAjax": true
},
"jasmine": true,
"jquery": true, // allow `$` as global variable
"browser": true // allow `window`
}