summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticResultFormats/.jshintrc
blob: b4fecbac9bd919ad21064082e126a52091669cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
	"predef": [
		"mediaWiki",
		"smw",
		"srf",
		"semanticMediaWiki",
		"semanticFormats",
		"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
}