UNPKG

4.01 kBPlain TextView Raw
1{
2 "bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.).
3 "curly" : false, // Require {} for every new block or scope.
4 "eqeqeq" : false, // Require triple equals i.e. `===`.
5 "forin" : true, // Tolerate `for in` loops without `hasOwnPrototype`.
6 "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
7 "latedef" : false, // Prohibit variable use before definition.
8 "newcap" : false, // Require capitalization of all constructor functions e.g. `new F()`.
9 "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
10 "noempty" : true, // Prohibit use of empty blocks.
11 "nonew" : false, // Prohibit use of constructors for side-effects.
12 "plusplus" : false, // Prohibit use of `++` & `--`.
13 "regexp" : false, // Prohibit `.` and `[^...]` in regular expressions.
14 "undef" : true, // Require all non-global variables be declared before they are used.
15 "strict" : false, // Require `use strict` pragma in every file.
16 "trailing" : false, // Prohibit trailing whitespaces.
17
18
19 "asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
20 "boss" : true, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
21 "debug" : false, // Allow debugger statements e.g. browser breakpoints.
22 "eqnull" : false, // Tolerate use of `== null`.
23 "esnext" : true, // Allow ES.next specific features such as `const` and `let`.
24 "evil" : false, // Tolerate use of `eval`.
25 "expr" : true, // Tolerate `ExpressionStatement` as Programs.
26 "funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside.
27 "globalstrict" : false, // Allow global "use strict" (also enables 'strict').
28 "iterator" : false, // Allow usage of __iterator__ property.
29 "lastsemic" : false, // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block.
30 "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
31 "laxcomma" : true, // Suppress warnings about comma-first coding style.
32 "loopfunc" : false, // Allow functions to be defined within loops.
33 "multistr" : false, // Tolerate multi-line strings.
34 "onecase" : false, // Tolerate switches with just one case.
35 "proto" : false, // Tolerate __proto__ property. This property is deprecated.
36 "regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
37 "scripturl" : false, // Tolerate script-targeted URLs.
38 "smarttabs" : true, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only.
39 "shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
40 "sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
41 "supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
42 "validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function.
43
44 "browser" : false, // Standard browser globals e.g. `window`, `document`.
45 "node" : true, // Enable globals available when code is running inside of the NodeJS runtime environment.
46
47 "maxerr" : 100, // Maximum errors before stopping.
48 "predef" : [ // Extra globals.
49 //"exampleVar",
50 //"anotherCoolGlobal",
51 //"iLoveDouglas"
52 ],
53 "indent" : 4 // Specify indentation spacing
54}