File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ // Airbnb JSHint settings for use with SublimeLinter.
2+ //
3+ // Install SublimeLinter at https://github.com/SublimeLinter/SublimeLinter
4+ //
5+ // @see https://github.com/SublimeLinter/SublimeLinter
6+ // @see http://www.jshint.com/docs/
7+ {
8+ "jshint_options" :
9+ {
10+ // ENVIRONMENTS
11+ // ============
12+
13+ // Defines globals exposed by modern browsers.
14+ "browser" : true ,
15+
16+ // Defines globals exposed by jQuery.
17+ "jquery" : true ,
18+
19+ // ENFORCING OPTIONS
20+ // =================
21+
22+ // Prohibits the use of == and != in favor of === and !==.
23+ "eqeqeq" : true ,
24+
25+ // Suppresses warnings about == null comparisons.
26+ "eqnull" : true ,
27+
28+ // Enforces a tab width of 2 spaces.
29+ "indent" : 2 ,
30+
31+ // Prohibits the use of a variable before it was defined.
32+ "latedef" : true ,
33+
34+ // $equires you to capitalize names of constructor functions.
35+ "newcap" : true ,
36+
37+ // Makes it an error to leave a trailing whitespace in your code.
38+ "trailing" : true ,
39+
40+ // Prohibits the use of explicitly undeclared variables.
41+ "undef" : true ,
42+
43+ // Warns when you define and never use your variables.
44+ "unused" : true
45+ }
46+ }
You can’t perform that action at this time.
0 commit comments