From e5f3f95b2fea079c42c9a84a05b1cbc2365f4f56 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 17 Apr 2013 17:26:19 +0200 Subject: [PATCH] Update .jshintrc Change-Id: I9e2add1dac6bf76b4efc0bdf799b731333b28376 --- .jshintrc | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/.jshintrc b/.jshintrc index 92db6ebe..b6a0f58e 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,11 +1,7 @@ { - "predef": [ - "jQuery", - "QUnit", - "_", - "mediaWiki" - ], + /* Common */ + // Enforcing "camelcase": true, "curly": true, "eqeqeq": true, @@ -15,15 +11,30 @@ "noarg": true, "noempty": true, "nonew": true, - "plusplus": false, "quotmark": "single", + "trailing": true, "undef": true, "unused": true, - "strict": true, - "trailing": true, - "laxbreak": true, - "browser": true, - "nomen": true, + // Legacy "onevar": true, - "white": false + + /* Local */ + + // Enforcing + "bitwise": true, + "forin": false, + "regexp": false, + "strict": true, + // Relaxing + "laxbreak": true, + "smarttabs": true, + "multistr": true, + // Environment + "browser": true, + + "predef": [ + "mediaWiki", + "jQuery", + "QUnit" + ] }