|
7 | 7 | * 3. Paste the contents of this file into your settings file |
8 | 8 | * 4. Save the settings file |
9 | 9 | * |
10 | | - * @version 0.1.1 |
| 10 | + * @version 0.2.0 |
11 | 11 | * @see https://github.com/SublimeLinter/SublimeLinter |
12 | 12 | * @see http://www.jshint.com/docs/ |
13 | 13 | */ |
|
19 | 19 | * ================= |
20 | 20 | */ |
21 | 21 |
|
22 | | - // Defines globals exposed by modern browsers. |
| 22 | + // Define globals exposed by modern browsers. |
23 | 23 | "browser": true, |
24 | 24 |
|
25 | | - // Defines globals exposed by jQuery. |
| 25 | + // Define globals exposed by jQuery. |
26 | 26 | "jquery": true, |
27 | 27 |
|
28 | 28 | // Define globals exposed by Node.js. |
|
33 | 33 | * ================= |
34 | 34 | */ |
35 | 35 |
|
36 | | - // Prohibits the use of == and != in favor of === and !==. |
| 36 | + // Force all variable names to use either camelCase style or UPPER_CASE |
| 37 | + // with underscores. |
| 38 | + "camelcase": true, |
| 39 | + |
| 40 | + // Prohibit the use of == and != in favor of === and !==. |
37 | 41 | "eqeqeq": true, |
38 | 42 |
|
39 | | - // Suppresses warnings about == null comparisons. |
| 43 | + // Suppress warnings about == null comparisons. |
40 | 44 | "eqnull": true, |
41 | 45 |
|
42 | | - // Enforces a tab width of 2 spaces. |
| 46 | + // Enforce a tab width of 2 spaces. |
43 | 47 | "indent": 2, |
44 | 48 |
|
45 | | - // Prohibits the use of a variable before it was defined. |
| 49 | + // Prohibit the use of a variable before it was defined. |
46 | 50 | "latedef": true, |
47 | 51 |
|
48 | | - // $equires you to capitalize names of constructor functions. |
| 52 | + // Require capitalized names for constructor functions. |
49 | 53 | "newcap": true, |
50 | 54 |
|
51 | | - // Makes it an error to leave a trailing whitespace in your code. |
| 55 | + // Prohibit trailing whitespace. |
52 | 56 | "trailing": true, |
53 | 57 |
|
54 | | - // Prohibits the use of explicitly undeclared variables. |
| 58 | + // Prohibit the use of explicitly undeclared variables. |
55 | 59 | "undef": true, |
56 | 60 |
|
57 | | - // Warns when you define and never use your variables. |
| 61 | + // Warn when variables are defined but never used. |
58 | 62 | "unused": true |
59 | 63 | } |
60 | 64 | } |
0 commit comments