|
1 | 1 | { |
2 | | - "asi" : false, // If automatic semicolon insertion should be tolerated. |
3 | | - "bitwise" : true, // If bitwise operators should not be allowed. |
4 | | - "boss" : false, // If advanced usage of assignments should be allowed. |
5 | | - "browser" : true, // If the standard browser globals should be predefined. |
6 | | - "camelcase" : false, // If identifiers should be required in camel case. |
7 | | - "couch" : false, // If CouchDB globals should be predefined. |
8 | | - "curly" : true, // If curly braces around all blocks should be required. |
9 | | - "debug" : false, // If debugger statements should be allowed. |
10 | | - "devel" : true, // If logging globals should be predefined (console, alert, etc.). |
11 | | - "dojo" : false, // If Dojo Toolkit globals should be predefined. |
12 | | - "eqeqeq" : false, // If === should be required. |
13 | | - "eqnull" : false, // If == null comparisons should be tolerated. |
14 | | - "es3" : true, // If ES3 syntax should be allowed. |
15 | | - "esnext" : true, // If es.next specific syntax should be allowed. |
16 | | - "evil" : false, // If eval should be allowed. |
17 | | - "expr" : false, // If ExpressionStatement should be allowed as Programs. |
18 | | - "forin" : true, // If for in statements must filter. |
19 | | - "funcscope" : false, // If only function scope should be used for scope tests. |
20 | | - "gcl" : false, // If JSHint should be compatible with Google Closure Linter. |
21 | | - "globalstrict" : false, // If global "use strict"; should be allowed (also enables 'strict'). |
22 | | - "immed" : true, // If immediate invocations must be wrapped in parens. |
23 | | - "indent" : 4, // Tab width for your code. |
24 | | - "iterator" : false, // If the `__iterator__` property should be allowed. |
25 | | - "jquery" : true, // If jQuery globals should be predefined. |
26 | | - "lastsemic" : false, // If semicolons may be ommitted for the trailing statements inside of a one-line blocks. |
27 | | - "latedef" : true, // Warn if the variable is used before its definition. |
28 | | - "laxbreak" : false, // If line breaks should not be checked. |
29 | | - "laxcomma" : false, // If line breaks should not be checked around commas. |
30 | | - "loopfunc" : false, // If functions should be allowed to be defined within loops. |
31 | | - "maxcomplexity" : 50, // {int} Maximum cyclomatic complexity per function. |
32 | | - "maxdepth" : 5, // {int} Maximum nested block depth per function. |
33 | | - "maxerr" : false, // {int} Maximum number of errors. |
34 | | - "maxlen" : 1000, // {int} maximum length of a line. |
35 | | - "maxparams" : 5, // {int} Maximum params per function. |
36 | | - "maxstatements" : 50, // {int} Maximum statements per function. |
37 | | - "mootools" : false, // If MooTools globals should be predefined. |
38 | | - "moz" : false, // If mozilla specific syntax should be allowed. |
39 | | - "multistr" : false, // Allow multiline strings. |
40 | | - "newcap" : true, // If constructor names must be capitalized. |
41 | | - "noarg" : true, // If arguments.caller and arguments.callee should be disallowed. |
42 | | - "node" : true, // If the Node.js environment globals should be predefined. |
43 | | - "noempty" : true, // If empty blocks should be disallowed. |
44 | | - "nomen" : false, // If names should be checked. |
45 | | - "nonew" : true, // If using `new` for side-effects should be disallowed. |
46 | | - "nonstandard" : false, // If non-standard (but widely adopted) globals should be predefined. |
47 | | - "onecase" : false, // If one case switch statements should be allowed. |
48 | | - "onevar" : true, // One var statement per function. |
49 | | - "passfail" : false, // If the scan should stop on first error. |
50 | | - "phantom" : false, // If PhantomJS symbols should be allowed. |
51 | | - "plusplus" : false, // If increment/decrement should not be allowed. |
52 | | - "predef" : false, // An array of strings, the names of predefined global variables, or an object whose keys are global variable names, and whose values are booleans that determine if each variable is assignable. |
53 | | - "proto" : false, // If the `__proto__` property should be allowed. |
54 | | - "prototypejs" : false, // If Prototype and Scriptaculous globals should be predefined. |
55 | | - "quotmark" : true, // Enforce the consistency of quotation marks: 'single'|'double'|true. |
56 | | - "regexdash" : false, // If unescaped first/last dash (-) inside brackets should be tolerated. |
57 | | - "regexp" : true, // If the . should not be allowed in regexp literals. |
58 | | - "rhino" : false, // If the Rhino environment globals should be predefined. |
59 | | - "scripturl" : false, // If script-targeted URLs should be tolerated. |
60 | | - "shadow" : false, // If variable shadowing should be tolerated. |
61 | | - "shelljs" : false, // If ShellJS globals should be predefined. |
62 | | - "smarttabs" : true, // If smarttabs should be tolerated (http://www.emacswiki.org/emacs/SmartTabs). |
63 | | - "strict" : false, // Require the "use strict"; pragma. |
64 | | - "sub" : false, // If all forms of subscript notation are tolerated. |
65 | | - "supernew" : false, // If `new function () { ... };` and `new Object;` should be tolerated. |
66 | | - "trailing" : true, // If trailing whitespace rules apply. |
67 | | - "typed" : true, // If typed array globals should be predefined. |
68 | | - "undef" : true, // If variables should be declared before used. |
69 | | - "unused" : false, // Warn if variables are unused.. |
70 | | - "validthis" : false, // If 'this' inside a non-constructor function is valid. This is a function scoped option only.. |
71 | | - "white" : false, // If strict whitespace rules apply. |
72 | | - "withstmt" : false, // If with statements should be allowed. |
73 | | - "worker" : false, // If Web Worker script symbols should be allowed. |
74 | | - "wsh" : false, // If the Windows Scripting Host environment globals should be predefined. |
75 | | - "yui" : false, // YUI variables should be predefined. |
76 | | - "globals" : { // A map of global variables, with keys as names and a boolean value to determine if they are assignable. |
77 | | - "JSV": true, |
78 | | - "JSON": true, |
79 | | - "URI": true, |
80 | | - "d3": false, |
81 | | - "tv4": false, |
82 | | - "hljs": false, |
83 | | - "jsonpointer": false |
84 | | - } |
| 2 | + "asi": false, // If automatic semicolon insertion should be tolerated. |
| 3 | + "bitwise": true, // If bitwise operators should not be allowed. |
| 4 | + "boss": false, // If advanced usage of assignments should be allowed. |
| 5 | + "browser": true, // If the standard browser globals should be predefined. |
| 6 | + "camelcase": false, // If identifiers should be required in camel case. |
| 7 | + "couch": false, // If CouchDB globals should be predefined. |
| 8 | + "curly": true, // If curly braces around all blocks should be required. |
| 9 | + "debug": false, // If debugger statements should be allowed. |
| 10 | + "devel": true, // If logging globals should be predefined (console, alert, etc.). |
| 11 | + "dojo": false, // If Dojo Toolkit globals should be predefined. |
| 12 | + "eqeqeq": false, // If === should be required. |
| 13 | + "eqnull": false, // If == null comparisons should be tolerated. |
| 14 | + "es3": true, // If ES3 syntax should be allowed. |
| 15 | + "esnext": true, // If es.next specific syntax should be allowed. |
| 16 | + "evil": false, // If eval should be allowed. |
| 17 | + "expr": false, // If ExpressionStatement should be allowed as Programs. |
| 18 | + "forin": true, // If for in statements must filter. |
| 19 | + "funcscope": false, // If only function scope should be used for scope tests. |
| 20 | + "gcl": false, // If JSHint should be compatible with Google Closure Linter. |
| 21 | + "globalstrict": false, // If global "use strict"; should be allowed (also enables 'strict'). |
| 22 | + "immed": true, // If immediate invocations must be wrapped in parens. |
| 23 | + "indent": 4, // Tab width for your code. |
| 24 | + "iterator": false, // If the `__iterator__` property should be allowed. |
| 25 | + "jquery": true, // If jQuery globals should be predefined. |
| 26 | + "lastsemic": false, // If semicolons may be ommitted for the trailing statements inside of a one-line blocks. |
| 27 | + "latedef": true, // Warn if the variable is used before its definition. |
| 28 | + "laxbreak": false, // If line breaks should not be checked. |
| 29 | + "laxcomma": false, // If line breaks should not be checked around commas. |
| 30 | + "loopfunc": false, // If functions should be allowed to be defined within loops. |
| 31 | + "maxcomplexity": 50, // {int} Maximum cyclomatic complexity per function. |
| 32 | + "maxdepth": 5, // {int} Maximum nested block depth per function. |
| 33 | + "maxerr": false, // {int} Maximum number of errors. |
| 34 | + "maxlen": 1000, // {int} maximum length of a line. |
| 35 | + "maxparams": 5, // {int} Maximum params per function. |
| 36 | + "maxstatements": 50, // {int} Maximum statements per function. |
| 37 | + "mootools": false, // If MooTools globals should be predefined. |
| 38 | + "moz": false, // If mozilla specific syntax should be allowed. |
| 39 | + "multistr": false, // Allow multiline strings. |
| 40 | + "newcap": true, // If constructor names must be capitalized. |
| 41 | + "noarg": true, // If arguments.caller and arguments.callee should be disallowed. |
| 42 | + "node": true, // If the Node.js environment globals should be predefined. |
| 43 | + "noempty": true, // If empty blocks should be disallowed. |
| 44 | + "nomen": false, // If names should be checked. |
| 45 | + "nonew": true, // If using `new` for side-effects should be disallowed. |
| 46 | + "nonstandard": false, // If non-standard (but widely adopted) globals should be predefined. |
| 47 | + "onecase": false, // If one case switch statements should be allowed. |
| 48 | + "onevar": true, // One var statement per function. |
| 49 | + "passfail": false, // If the scan should stop on first error. |
| 50 | + "phantom": false, // If PhantomJS symbols should be allowed. |
| 51 | + "plusplus": false, // If increment/decrement should not be allowed. |
| 52 | + "predef": false, // An array of strings, the names of predefined global variables, or an object whose keys are global variable names, and whose values are booleans that determine if each variable is assignable. |
| 53 | + "proto": false, // If the `__proto__` property should be allowed. |
| 54 | + "prototypejs": false, // If Prototype and Scriptaculous globals should be predefined. |
| 55 | + "quotmark": false, // Do NOT Enforce the consistency of quotation marks: 'single'|'double'|true. |
| 56 | + "regexdash": false, // If unescaped first/last dash (-) inside brackets should be tolerated. |
| 57 | + "regexp": true, // If the . should not be allowed in regexp literals. |
| 58 | + "rhino": false, // If the Rhino environment globals should be predefined. |
| 59 | + "scripturl": false, // If script-targeted URLs should be tolerated. |
| 60 | + "shadow": false, // If variable shadowing should be tolerated. |
| 61 | + "shelljs": false, // If ShellJS globals should be predefined. |
| 62 | + "smarttabs": true, // If smarttabs should be tolerated (http://www.emacswiki.org/emacs/SmartTabs). |
| 63 | + "strict": false, // Require the "use strict"; pragma. |
| 64 | + "sub": false, // If all forms of subscript notation are tolerated. |
| 65 | + "supernew": false, // If `new function () { ... };` and `new Object;` should be tolerated. |
| 66 | + "trailing": true, // If trailing whitespace rules apply. |
| 67 | + "typed": true, // If typed array globals should be predefined. |
| 68 | + "undef": true, // If variables should be declared before used. |
| 69 | + "unused": false, // Warn if variables are unused.. |
| 70 | + "validthis": false, // If 'this' inside a non-constructor function is valid. This is a function scoped option only.. |
| 71 | + "white": false, // If strict whitespace rules apply. |
| 72 | + "withstmt": false, // If with statements should be allowed. |
| 73 | + "worker": false, // If Web Worker script symbols should be allowed. |
| 74 | + "wsh": false, // If the Windows Scripting Host environment globals should be predefined. |
| 75 | + "yui": false, // YUI variables should be predefined. |
| 76 | + "globals": { |
| 77 | + // A map of global variables, with keys as names and a boolean value to determine if they are assignable. |
| 78 | + "JSV": true, |
| 79 | + "JSON": true, |
| 80 | + "URI": true, |
| 81 | + "d3": false, |
| 82 | + "tv4": false, |
| 83 | + "hljs": false, |
| 84 | + "jsonpointer": false |
| 85 | + } |
85 | 86 | } |
0 commit comments