summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/.jshintrc
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
committerYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
commitfc7369835258467bf97eb64f184b93691f9a9fd5 (patch)
treedaabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/SemanticMediaWiki/.jshintrc
first commit
Diffstat (limited to 'www/wiki/extensions/SemanticMediaWiki/.jshintrc')
-rw-r--r--www/wiki/extensions/SemanticMediaWiki/.jshintrc32
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