Skip to content

Commit 4400753

Browse files
committed
Merge pull request airbnb#11 from airbnb/sublime-linter-updates
SublimeLinter updates
2 parents e34611d + c4ee2eb commit 4400753

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

linters/SublimeLinter/SublimeLinter.sublime-settings

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* 3. Paste the contents of this file into your settings file
88
* 4. Save the settings file
99
*
10-
* @version 0.1.1
10+
* @version 0.2.0
1111
* @see https://github.com/SublimeLinter/SublimeLinter
1212
* @see http://www.jshint.com/docs/
1313
*/
@@ -19,10 +19,10 @@
1919
* =================
2020
*/
2121

22-
// Defines globals exposed by modern browsers.
22+
// Define globals exposed by modern browsers.
2323
"browser": true,
2424

25-
// Defines globals exposed by jQuery.
25+
// Define globals exposed by jQuery.
2626
"jquery": true,
2727

2828
// Define globals exposed by Node.js.
@@ -33,28 +33,32 @@
3333
* =================
3434
*/
3535

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 !==.
3741
"eqeqeq": true,
3842

39-
// Suppresses warnings about == null comparisons.
43+
// Suppress warnings about == null comparisons.
4044
"eqnull": true,
4145

42-
// Enforces a tab width of 2 spaces.
46+
// Enforce a tab width of 2 spaces.
4347
"indent": 2,
4448

45-
// Prohibits the use of a variable before it was defined.
49+
// Prohibit the use of a variable before it was defined.
4650
"latedef": true,
4751

48-
// $equires you to capitalize names of constructor functions.
52+
// Require capitalized names for constructor functions.
4953
"newcap": true,
5054

51-
// Makes it an error to leave a trailing whitespace in your code.
55+
// Prohibit trailing whitespace.
5256
"trailing": true,
5357

54-
// Prohibits the use of explicitly undeclared variables.
58+
// Prohibit the use of explicitly undeclared variables.
5559
"undef": true,
5660

57-
// Warns when you define and never use your variables.
61+
// Warn when variables are defined but never used.
5862
"unused": true
5963
}
6064
}

0 commit comments

Comments
 (0)