From 9ae773e5c2c5a89e69edd7c953dfa8a32c894f4e Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 5 Nov 2012 11:57:58 -0800 Subject: [PATCH 1/4] Enforce camelCase or UPPER_CASE for all variable names --- linters/SublimeLinter/SublimeLinter.sublime-settings | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linters/SublimeLinter/SublimeLinter.sublime-settings b/linters/SublimeLinter/SublimeLinter.sublime-settings index 771e4d2802..8310b928cf 100644 --- a/linters/SublimeLinter/SublimeLinter.sublime-settings +++ b/linters/SublimeLinter/SublimeLinter.sublime-settings @@ -30,6 +30,10 @@ * ================= */ + // Forces all variable names to use either camelCase style or UPPER_CASE + // with underscores. + "camelcase": true, + // Prohibits the use of == and != in favor of === and !==. "eqeqeq": true, From 9c4f415c4071266c6db19f533dc3eeffa56a70e3 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 5 Nov 2012 12:16:46 -0800 Subject: [PATCH 2/4] Use the imperative mood in comments, 'Prohibit' instead of 'Prohibits' --- .../SublimeLinter.sublime-settings | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/linters/SublimeLinter/SublimeLinter.sublime-settings b/linters/SublimeLinter/SublimeLinter.sublime-settings index 8310b928cf..8b2c527f04 100644 --- a/linters/SublimeLinter/SublimeLinter.sublime-settings +++ b/linters/SublimeLinter/SublimeLinter.sublime-settings @@ -19,10 +19,10 @@ * ================= */ - // 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, /* @@ -30,32 +30,32 @@ * ================= */ - // Forces all variable names to use either camelCase style or UPPER_CASE + // Force all variable names to use either camelCase style or UPPER_CASE // with underscores. "camelcase": true, - // Prohibits the use of == and != in favor of === and !==. + // 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 you to capitalize names of constructor functions. "newcap": true, - // Makes it an error to leave a trailing whitespace in your code. + // Make it an error to leave a trailing whitespace in your code. "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 you define and never use your variables. "unused": true } } From 859164d18e47993d3ae617e8651c5bffe6d1fbe7 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 5 Nov 2012 12:17:45 -0800 Subject: [PATCH 3/4] Remove references to third-person 'you', it sounds weird --- linters/SublimeLinter/SublimeLinter.sublime-settings | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linters/SublimeLinter/SublimeLinter.sublime-settings b/linters/SublimeLinter/SublimeLinter.sublime-settings index 8b2c527f04..67bb8a10d2 100644 --- a/linters/SublimeLinter/SublimeLinter.sublime-settings +++ b/linters/SublimeLinter/SublimeLinter.sublime-settings @@ -46,16 +46,16 @@ // Prohibit the use of a variable before it was defined. "latedef": true, - // Require you to capitalize names of constructor functions. + // Require capitalized names for constructor functions. "newcap": true, - // Make it an error to leave a trailing whitespace in your code. + // Prohibit trailing whitespace. "trailing": true, // Prohibit the use of explicitly undeclared variables. "undef": true, - // Warn when you define and never use your variables. + // Warn when variables are defined but never used. "unused": true } } From c4ee2eb3c3aed0b2975c4705bb702b7927b045b1 Mon Sep 17 00:00:00 2001 From: Ross Allen Date: Mon, 5 Nov 2012 12:19:26 -0800 Subject: [PATCH 4/4] Increment minor version to include 'camelcase' settings and comment updates --- linters/SublimeLinter/SublimeLinter.sublime-settings | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linters/SublimeLinter/SublimeLinter.sublime-settings b/linters/SublimeLinter/SublimeLinter.sublime-settings index 67bb8a10d2..f9f87ba521 100644 --- a/linters/SublimeLinter/SublimeLinter.sublime-settings +++ b/linters/SublimeLinter/SublimeLinter.sublime-settings @@ -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/ */