mirror of
https://github.com/airbnb/javascript.git
synced 2026-04-25 03:00:19 -04:00
Add SublimeLinter settings that match the current JS rules in README.md
This commit is contained in:
46
SublimeLinter.sublime-settings
Normal file
46
SublimeLinter.sublime-settings
Normal file
@@ -0,0 +1,46 @@
|
||||
// Airbnb JSHint settings for use with SublimeLinter.
|
||||
//
|
||||
// Install SublimeLinter at https://github.com/SublimeLinter/SublimeLinter
|
||||
//
|
||||
// @see https://github.com/SublimeLinter/SublimeLinter
|
||||
// @see http://www.jshint.com/docs/
|
||||
{
|
||||
"jshint_options":
|
||||
{
|
||||
// ENVIRONMENTS
|
||||
// ============
|
||||
|
||||
// Defines globals exposed by modern browsers.
|
||||
"browser": true,
|
||||
|
||||
// Defines globals exposed by jQuery.
|
||||
"jquery": true,
|
||||
|
||||
// ENFORCING OPTIONS
|
||||
// =================
|
||||
|
||||
// Prohibits the use of == and != in favor of === and !==.
|
||||
"eqeqeq": true,
|
||||
|
||||
// Suppresses warnings about == null comparisons.
|
||||
"eqnull": true,
|
||||
|
||||
// Enforces a tab width of 2 spaces.
|
||||
"indent": 2,
|
||||
|
||||
// Prohibits the use of a variable before it was defined.
|
||||
"latedef": true,
|
||||
|
||||
// $equires you to capitalize names of constructor functions.
|
||||
"newcap": true,
|
||||
|
||||
// Makes it an error to leave a trailing whitespace in your code.
|
||||
"trailing": true,
|
||||
|
||||
// Prohibits the use of explicitly undeclared variables.
|
||||
"undef": true,
|
||||
|
||||
// Warns when you define and never use your variables.
|
||||
"unused": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user