diff options
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/.jshintrc')
-rw-r--r-- | www/wiki/extensions/SemanticMediaWiki/.jshintrc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/www/wiki/extensions/SemanticMediaWiki/.jshintrc b/www/wiki/extensions/SemanticMediaWiki/.jshintrc new file mode 100644 index 00000000..c33a3da5 --- /dev/null +++ b/www/wiki/extensions/SemanticMediaWiki/.jshintrc @@ -0,0 +1,32 @@ +{ + "predef": [ + "mediaWiki", + "semanticMediaWiki", + "jQuery", + "QUnit" + ], + + "bitwise": false, // prohibits the use of bitwise operators such as ^ (XOR), | (OR) + "camelcase": false, // allows you to force all variable names to use either camelCase style + "curly": true, // requires you to always put curly braces around blocks in loops and conditionals + "eqeqeq": true, // prohibits the use of == and != in favor of === and !== + "forin": false, // requires all for in loops to filter object's items + "immed": true, // prohibits the use of immediate function invocations without wrapping them + "latedef": true, // prohibits the use of a variable before it was defined + "newcap": false, // requires you to capitalize names of constructor functions + "noarg": true, // prohibits the use of arguments.caller and arguments.callee + "noempty": true, // warns when you have an empty block in your code + "nonew": false, // prohibits the use of constructor functions for side-effects + "quotmark": "single", // enforces the consistency of quotation marks used throughout your code + "regexp": false, // prohibits the use of unsafe . in regular expressions + "undef": false, // prohibits the use of explicitly undeclared variables + "unused": true, // warns when you define and never use your variables + "strict": true, // requires all functions to run in EcmaScript 5's strict mode + "trailing": true, // makes it an error to leave a trailing whitespace in your code + + "laxbreak": true, // suppresses most of the warnings about possibly unsafe line breakings + "smarttabs": true, // suppresses warnings about mixed tabs + "multistr": true, // suppresses warnings about multi-line strings + + "browser": true // defines globals exposed by modern browsers +}
\ No newline at end of file |