summaryrefslogtreecommitdiff
path: root/.jshintrc
diff options
context:
space:
mode:
Diffstat (limited to '.jshintrc')
-rw-r--r--.jshintrc39
1 files changed, 28 insertions, 11 deletions
diff --git a/.jshintrc b/.jshintrc
index 31dc9a0c..c4e265a4 100644
--- a/.jshintrc
+++ b/.jshintrc
@@ -1,25 +1,42 @@
{
- "predef": [
- "mediaWiki",
- "jQuery",
- "QUnit",
- "mw",
- "$"
- ],
+ /* Common */
- "bitwise": true,
+ // Enforcing
+ "camelcase": true,
+ "curly": true,
+ "eqeqeq": true,
"immed": true,
"latedef": true,
"newcap": true,
"noarg": true,
+ "noempty": true,
"nonew": true,
+ "quotmark": "single",
+ "trailing": true,
"undef": true,
+ "unused": true,
+ // Legacy
+ "onevar": true,
+
+ /* Local */
+ // Enforcing
+ "bitwise": true,
+ "forin": false,
+ "regexp": false,
+ "strict": false,
+ // Relaxing
"laxbreak": true,
- "loopfunc": true,
"smarttabs": true,
"multistr": true,
- "onecase": true,
+ // Environment
+ "browser": true,
+ // Legacy
+ "nomen": true,
- "browser": true
+ "predef": [
+ "mediaWiki",
+ "jQuery",
+ "QUnit"
+ ]
}