|
1 | | -{ |
2 | | - // Settings |
3 | | - "maxerr": 100, // Maximum error before stopping. |
4 | | - "passfail": false, // Stop on first error. |
5 | | - "smarttabs": true, // Suppress warnings about mixed tabs and spaces when the latter are used for alignmnent only |
6 | | - |
7 | | - // Predefined globals whom JSHint will ignore. |
8 | | - "browser": true, // Standard browser globals e.g. `window`, `document`. |
9 | | - "predef": [ |
10 | | - // Grunt |
11 | | - "__dirname", |
12 | | - // requireJS |
13 | | - "define", |
14 | | - // JASMINE |
15 | | - "describe", |
16 | | - "it", |
17 | | - "xit", |
18 | | - "beforeEach", |
19 | | - "afterEach", |
20 | | - "expect", |
21 | | - "spyOn", |
22 | | - "runs", |
23 | | - "waits", |
24 | | - "waitsFor" |
25 | | - ], |
26 | | - "globals": { |
27 | | - "require": true, |
28 | | - "module": true, |
29 | | - "sinon": true, |
30 | | - "S": true, |
31 | | - "steal": true, |
32 | | - "test": true, |
33 | | - "equal": true, |
34 | | - "ok": true, |
35 | | - "console": true, |
36 | | - "process": true |
37 | | - }, |
38 | | - |
39 | | - // Development |
40 | | - "debug": false, // Allow debugger statements e.g. browser breakpoints. |
41 | | - "devel": false, // Allow developments statements e.g. `console.log();`. |
42 | | - |
43 | | - // EcmaScript 5 |
44 | | - "es5": true, // Allow EcmaScript 5 syntax. |
45 | | - "esnext": true, // Allow ECMAScript 6 specific syntax |
46 | | - "strict": true, // Require `use strict` pragma in every file. |
47 | | - "globalstrict": true, // Allow global "use strict" (also enables 'strict'). |
48 | | - |
49 | | - // Bug prevention |
50 | | - "asi": false, // Tolerate Automatic Semicolon Insertion (no semicolons). |
51 | | - "laxbreak": false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
52 | | - "laxcomma": true, // Tolerate comma first |
53 | | - "bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.). |
54 | | - "boss": false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
55 | | - "curly": true, // Require {} for every new block or scope. |
56 | | - "eqeqeq": true, // Require triple equals i.e. `===`. |
57 | | - "eqnull": false, // Tolerate use of `== null`. |
58 | | - "evil": false, // Tolerate use of `eval`. |
59 | | - "expr": true, // Tolerate `ExpressionStatement` as Programs. |
60 | | - "forin": false, // Tolerate `for in` loops without `hasOwnPrototype`. |
61 | | - "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
62 | | - "latedef": true, // Prohibit variable use before definition. |
63 | | - "loopfunc": false, // Allow functions to be defined within loops. |
64 | | - "maxdepth": 3, // Max number of block nesting levels |
65 | | - "maxparams": false, // Max number of formal parameters allowed per function |
66 | | - "multistr": false, // Suppress warnings about multi-line strings |
67 | | - "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
68 | | - "regexp": true, // Prohibit `.` and `[^...]` in regular expressions. |
69 | | - "shadow": false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
70 | | - "supernew": false, // Tolerate `new function () { ... };` and `new Object;`. |
71 | | - "undef": true, // Require all non-global variables be declared before they are used. |
72 | | - "unused": true, // Warn when variable is defined but never used |
73 | | - |
74 | | - // Styling prefrences. |
75 | | - "quotmark": "single", // Enforce the consistency of quotation marks |
76 | | - "camelcase": true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores |
77 | | - "indent": 2, // Enforce specific tab width |
78 | | - "newcap": true, // Require capitalization of all constructor functions e.g. `new F()`. |
79 | | - "noempty": false, // Prohibit use of empty blocks. |
80 | | - "nonew": true, // Prohibit use of constructors for side-effects. |
81 | | - "nomen": false, // Prohibit use of initial or trailing underscores in names. |
82 | | - "onevar": false, // Allow only one `var` statement per function. |
83 | | - "plusplus": false, // Prohibit use of `++` & `--`. |
84 | | - "sub": false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
85 | | - "trailing": true, // Prohibit trailing whitespaces. |
86 | | - "white": false // Enforce Douglas Crockford's JavaScript coding style for white space |
87 | | -} |
| 1 | +{ |
| 2 | + // Settings |
| 3 | + "maxerr": 100, // Maximum error before stopping. |
| 4 | + "passfail": false, // Stop on first error. |
| 5 | + "smarttabs": true, // Suppress warnings about mixed tabs and spaces when the latter are used for alignmnent only |
| 6 | + |
| 7 | + // Predefined globals whom JSHint will ignore. |
| 8 | + "browser": true, // Standard browser globals e.g. `window`, `document`. |
| 9 | + "predef": [ |
| 10 | + // Grunt |
| 11 | + "__dirname", |
| 12 | + // requireJS |
| 13 | + "define", |
| 14 | + // JASMINE |
| 15 | + "describe", |
| 16 | + "it", |
| 17 | + "xit", |
| 18 | + "beforeEach", |
| 19 | + "afterEach", |
| 20 | + "expect", |
| 21 | + "spyOn", |
| 22 | + "runs", |
| 23 | + "waits", |
| 24 | + "waitsFor" |
| 25 | + ], |
| 26 | + "globals": { |
| 27 | + "require": true, |
| 28 | + "module": true, |
| 29 | + "sinon": true, |
| 30 | + "S": true, |
| 31 | + "steal": true, |
| 32 | + "test": true, |
| 33 | + "equal": true, |
| 34 | + "ok": true, |
| 35 | + "console": true, |
| 36 | + "process": true |
| 37 | + }, |
| 38 | + |
| 39 | + // Development |
| 40 | + "debug": false, // Allow debugger statements e.g. browser breakpoints. |
| 41 | + "devel": false, // Allow developments statements e.g. `console.log();`. |
| 42 | + |
| 43 | + // EcmaScript 5 |
| 44 | + "esnext": true, // Allow ECMAScript 6 specific syntax |
| 45 | + "strict": true, // Require `use strict` pragma in every file. |
| 46 | + "globalstrict": true, // Allow global "use strict" (also enables 'strict'). |
| 47 | + |
| 48 | + // Bug prevention |
| 49 | + "asi": false, // Tolerate Automatic Semicolon Insertion (no semicolons). |
| 50 | + "laxbreak": false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
| 51 | + "laxcomma": true, // Tolerate comma first |
| 52 | + "bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.). |
| 53 | + "boss": false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
| 54 | + "curly": true, // Require {} for every new block or scope. |
| 55 | + "eqeqeq": true, // Require triple equals i.e. `===`. |
| 56 | + "eqnull": false, // Tolerate use of `== null`. |
| 57 | + "evil": false, // Tolerate use of `eval`. |
| 58 | + "expr": true, // Tolerate `ExpressionStatement` as Programs. |
| 59 | + "forin": false, // Tolerate `for in` loops without `hasOwnPrototype`. |
| 60 | + "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
| 61 | + "latedef": true, // Prohibit variable use before definition. |
| 62 | + "loopfunc": false, // Allow functions to be defined within loops. |
| 63 | + "maxdepth": 3, // Max number of block nesting levels |
| 64 | + "maxparams": false, // Max number of formal parameters allowed per function |
| 65 | + "multistr": false, // Suppress warnings about multi-line strings |
| 66 | + "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
| 67 | + "regexp": true, // Prohibit `.` and `[^...]` in regular expressions. |
| 68 | + "shadow": false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
| 69 | + "supernew": false, // Tolerate `new function () { ... };` and `new Object;`. |
| 70 | + "undef": true, // Require all non-global variables be declared before they are used. |
| 71 | + "unused": true, // Warn when variable is defined but never used |
| 72 | + |
| 73 | + // Styling prefrences. |
| 74 | + "quotmark": "single", // Enforce the consistency of quotation marks |
| 75 | + "camelcase": true, // Force all variable names to use either camelCase style or UPPER_CASE with underscores |
| 76 | + "indent": 2, // Enforce specific tab width |
| 77 | + "newcap": true, // Require capitalization of all constructor functions e.g. `new F()`. |
| 78 | + "noempty": false, // Prohibit use of empty blocks. |
| 79 | + "nonew": true, // Prohibit use of constructors for side-effects. |
| 80 | + "nomen": false, // Prohibit use of initial or trailing underscores in names. |
| 81 | + "onevar": false, // Allow only one `var` statement per function. |
| 82 | + "plusplus": false, // Prohibit use of `++` & `--`. |
| 83 | + "sub": false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
| 84 | + "trailing": true, // Prohibit trailing whitespaces. |
| 85 | + "white": false // Enforce Douglas Crockford's JavaScript coding style for white space |
| 86 | +} |
0 commit comments