Skip to content

Commit 8eb9087

Browse files
committed
Add SublimeLinter settings that match the current JS rules in README.md
1 parent 0e55858 commit 8eb9087

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

SublimeLinter.sublime-settings

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
}

0 commit comments

Comments
 (0)