jenkins-bot has submitted this change and it was merged.

Change subject: JSHint: Re-order jshintrc options to split common from project 
settings
......................................................................


JSHint: Re-order jshintrc options to split common from project settings

Per I43ace21208 and https://www.mediawiki.org/wiki/CC/JS#Linting

Change-Id: I280d377071ca1244130cd976aeba11d2152ef923
---
M .jshintrc
1 file changed, 22 insertions(+), 14 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/.jshintrc b/.jshintrc
index 8dd47db..2356693 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -1,36 +1,44 @@
 {
-       "predef": [
-               "ve",
-               "unicodeJS",
-               "QUnit"
-       ],
+       /* Common */
 
-       "bitwise": true,
+       // Enforcing
        "camelcase": true,
        "curly": true,
        "eqeqeq": true,
-       "forin": false,
        "immed": true,
        "latedef": true,
        "newcap": true,
        "noarg": true,
        "noempty": true,
        "nonew": true,
-       "plusplus": false,
        "quotmark": "single",
-       "regexp": true,
+       "trailing": true,
        "undef": true,
        "unused": true,
-       "strict": false,
-       "trailing": true,
+       // Legacy
+       "onevar": true,
 
+       /* Local */
+
+       // Enforcing
+       "bitwise": true,
+       "forin": false,
+       "plusplus": false,
+       "regexp": true,
+       "strict": false,
+       // Relaxing
        "es5": true,
        "multistr": true,
        "smarttabs": true,
-
+       // Environment
        "browser": true,
        "jquery": true,
-
+       // Legacy
        "nomen": true,
-       "onevar": true
+
+       "predef": [
+               "ve",
+               "unicodeJS",
+               "QUnit"
+       ]
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/59027
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I280d377071ca1244130cd976aeba11d2152ef923
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Krinkle <krinklem...@gmail.com>
Gerrit-Reviewer: Catrope <roan.katt...@gmail.com>
Gerrit-Reviewer: Trevor Parscal <tpars...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to