UNPKG

4.51 kBPlain TextView Raw
1{
2
3 // JShint
4 "passfail" : false, // if the scan should stop on first error
5
6 // Tolerate features
7 "eqnull" : false, // if == null comparisons should be tolerated
8 "sub" : true, // if all forms of subscript notation are tolerated
9 "asi" : false, // if automatic semicolon insertion should be tolerated
10 "scripturl" : false, // if script-targeted URLs should be tolerated
11 "shadow" : false, // if variable shadowing should be tolerated
12 "smarttabs" : false, // if smarttabs should be tolerated (http://www.emacswiki.org/emacs/SmartTabs)
13 "supernew" : false, // if `new function () { ... };` and `new Object;` should be tolerated
14
15 // Required
16 "strict" : false, // require the "use strict"; pragma
17 "curly" : true, // if curly braces around all blocks should be required
18 "eqeqeq" : true, // if === should be required
19
20 // Define Environments
21 "node" : true, // if the Node.js environment globals should be predefined
22 "nonstandard" : false, // if non-standard (but widely adopted) globals should be predefined
23 "couch" : false, // if CouchDB globals should be predefined
24 "devel" : false, // if logging globals should be predefined (console,// alert, etc.)
25 "browser" : false, // if the standard browser globals should be predefined
26 "dojo" : false, // if Dojo Toolkit globals should be predefined
27 "rhino" : false, // if the Rhino environment globals should be predefined
28 "jquery" : false, // if jQuery globals should be predefined
29 "mootools" : false, // if MooTools globals should be predefined
30 "prototypejs" : false, // if Prototype and Scriptaculous globals should be predefined
31 "wsh" : false, // if the Windows Scripting Host environment globals should be predefined
32
33 // Allow features
34 "expr" : true, // if ExpressionStatement should be allowed as Programs
35 "loopfunc" : true, // if functions should be allowed to be defined within loops
36 "onecase" : true, // if one case switch statements should be allowed
37 "boss" : false, // if advanced usage of assignments should be allowed
38 "debug" : false, // if debugger statements should be allowed
39 "es5" : false, // if ES5 syntax should be allowed
40 "esnext" : false, // if es.next specific syntax should be allowed
41 "evil" : false, // if eval should be allowed
42 "globalstrict": false, // if global "use strict"; should be allowed (also // enables 'strict')
43 "proto" : false, // if the `__proto__` property should be allowed
44 "iterator" : false, // if the `__iterator__` property should be allowed
45
46 // Disallow certain features
47 "nonew" : true, // if using `new` for side-effects should be disallowed
48 "latedef" : "nofunc", // if the use before definition should not be tolerated
49 "laxbreak" : true, // if line breaks should not be checked
50 "regexp" : true, // if the . should not be allowed in regexp literals
51 "noarg" : true, // if arguments.caller and arguments.callee should be disallowed
52 "noempty" : true, // if empty blocks should be disallowed
53 "bitwise" : false, // if bitwise operators should not be allowed
54 "plusplus" : false, // if increment/decrement should not be allowed
55
56 // Functions
57 "funcscope" : true, // if only function scope should be used for scope tests
58 "onevar" : false, // if only one var statement per function should be
59 "unused" : "vars",
60 "validthis" : true, // if 'this' inside a non-constructor function is valid This is a function scoped option only.
61
62 // Loops
63 "forin" : false, // if for in statements must filter
64
65 // Names
66 "newcap" : true, // if constructor names must be capitalized
67 "nomen" : false, // if names should be checked
68
69 // General
70 "undef" : true, // if variables should be declared before used
71 "regexdash" : true, // if unescaped first/last dash (-) inside brackets
72 "immed" : true, // if immediate invocations must be wrapped in parens
73
74 // Whitespace and Syntax
75 "trailing" : true, // if trailing whitespace rules apply
76 "multistr" : false, // allow multiline strings
77 "white" : false, // if strict whitespace rules apply
78 "lastsemic" : false // if semicolons may be ommitted for the trailing statements inside of a one-line blocks.
79}
80