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