ea218f5e9d9144cc9c54559dad763c01e6cf870c
[platform/framework/web/crosswalk-tizen.git] /
1 {
2     // Settings
3     "passfail"      : false, // Stop on first error.
4     "maxerr"        : 500,    // Maximum error before stopping.
5
6
7     // Predefined globals whom JSHint will ignore.
8     "browser"       : false,  // Standard browser globals e.g. `window`, `document`.
9     "node"          : true,
10
11
12     // Custom globals.
13     "predef"        : [],
14
15
16     // Development.
17     "debug"         : false, // Allow debugger statements e.g. browser breakpoints.
18     "devel"         : false, // Allow developments statements e.g. `console.log();`.
19
20
21     // EcmaScript 5.
22     "es5"           : false, // Allow EcmaScript 5 syntax.
23     "globalstrict"  : true,  // Allow global "use strict" (also enables 'strict').
24     "strict"        : true,  // Require `use strict` pragma  in every file.
25
26
27     // The Good Parts.
28     "asi"           : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
29     "bitwise"       : false, // Prohibit bitwise operators (&, |, ^, etc.).
30     "boss"          : true,  // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
31     "curly"         : false, // Require {} for every new block or scope.
32     "eqeqeq"        : false, // Require triple equals i.e. `===`.
33     "eqnull"        : true,  // Tolerate use of `== null`.
34     "evil"          : false, // Tolerate use of `eval`.
35     "expr"          : false, // Tolerate `ExpressionStatement` as Programs.
36     "forin"         : true,  // Tolerate `for in` loops without `hasOwnPrototype`.
37     "immed"         : true,  // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
38     "latedef"       : false, // Prohibit variable use before definition.
39     "laxbreak"      : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
40     "loopfunc"      : false, // Allow functions to be defined within loops.
41     "noarg"         : true,  // Prohibit use of `arguments.caller` and `arguments.callee`.
42     "regexdash"     : true,  // Tolerate unescaped last dash i.e. `[-...]`.
43     "regexp"        : false, // Prohibit `.` and `[^...]` in regular expressions.
44     "scripturl"     : false, // Tolerate script-targeted URLs.
45     "shadow"        : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
46     "supernew"      : false, // Tolerate `new function () { ... };` and `new Object;`.
47     "undef"         : true,  // Require all non-global variables be declared before they are used.
48     "unused"        : true,  // Check for unused vars
49
50
51     // Personal styling prefrences.
52     "newcap"        : true,  // Require capitalization of all constructor functions e.g. `new F()`.
53     "noempty"       : true,  // Prohipit use of empty blocks.
54     "nomen"         : false, // Prohibit use of initial or trailing underbars in names.
55     "nonew"         : true,  // Prohibit use of constructors for side-effects.
56     "onevar"        : false, // Allow only one `var` statement per function.
57     "plusplus"      : false, // Prohibit use of `++` & `--`.
58     "sub"           : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
59     "trailing"      : true,  // Prohibit trailing whitespaces.
60     "white"         : false  // Check against strict whitespace and indentation rules.
61 }