프로젝트

일반

사용자정보

통계
| 개정판:

root / HServer / 00.Server / 00.Program / node_modules / mout / .jshintrc

이력 | 보기 | 이력해설 | 다운로드 (3.43 KB)

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