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