Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions linters/SublimeLinter/SublimeLinter.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 3. Paste the contents of this file into your settings file
* 4. Save the settings file
*
* @version 0.1.1
* @version 0.2.0
* @see https://github.com/SublimeLinter/SublimeLinter
* @see http://www.jshint.com/docs/
*/
Expand All @@ -19,39 +19,43 @@
* =================
*/

// Defines globals exposed by modern browsers.
// Define globals exposed by modern browsers.
"browser": true,

// Defines globals exposed by jQuery.
// Define globals exposed by jQuery.
"jquery": true,

/*
* ENFORCING OPTIONS
* =================
*/

// Prohibits the use of == and != in favor of === and !==.
// Force all variable names to use either camelCase style or UPPER_CASE
// with underscores.
"camelcase": true,

// Prohibit the use of == and != in favor of === and !==.
"eqeqeq": true,

// Suppresses warnings about == null comparisons.
// Suppress warnings about == null comparisons.
"eqnull": true,

// Enforces a tab width of 2 spaces.
// Enforce a tab width of 2 spaces.
"indent": 2,

// Prohibits the use of a variable before it was defined.
// Prohibit the use of a variable before it was defined.
"latedef": true,

// $equires you to capitalize names of constructor functions.
// Require capitalized names for constructor functions.
"newcap": true,

// Makes it an error to leave a trailing whitespace in your code.
// Prohibit trailing whitespace.
"trailing": true,

// Prohibits the use of explicitly undeclared variables.
// Prohibit the use of explicitly undeclared variables.
"undef": true,

// Warns when you define and never use your variables.
// Warn when variables are defined but never used.
"unused": true
}
}