1 | {
|
2 |
|
3 | "maxerr" : 50, // {int} Maximum error before stopping
|
4 | "esversion" : 6,
|
5 |
|
6 | // Enforcing
|
7 | "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
|
8 | "camelcase" : false, // false: Identifiers do not need to be in camelCase. We would like to enforce this except for when interacting with our api objects which use snakeCase properties.
|
9 | "curly" : false, // false: Do not require {} for every new block or scope
|
10 | "eqeqeq" : true, // true: Require triple equals (===) for comparison
|
11 | "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
|
12 | "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
|
13 | "indent" : 2, // {int} Number of spaces to use for indentation
|
14 | "latedef" : false, // true: Require variables/functions to be defined before being used
|
15 | "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
|
16 | "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
|
17 | "noempty" : true, // true: Prohibit use of empty blocks
|
18 | "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
|
19 | "plusplus" : false, // true: Prohibit use of `++` & `--`
|
20 | "quotmark" : false, // Quotation mark consistency:
|
21 | // false : do nothing (default)
|
22 | // true : ensure whatever is used is consistent
|
23 | // "single" : require single quotes
|
24 | // "double" : require double quotes
|
25 | "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
|
26 | "unused" : true, // true: Require all defined variables be used
|
27 | "strict" : false, // false: Do not require all functions to be run in ES5 Strict Mode
|
28 | "trailing" : true, // true: Prohibit trailing whitespaces
|
29 | "maxparams" : false, // {int} Max number of formal params allowed per function
|
30 | "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
|
31 | "maxstatements" : false, // {int} Max number statements per function
|
32 | "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
|
33 | "maxlen" : 120, // {int} Max number of characters per line
|
34 |
|
35 | // Relaxing
|
36 | "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
37 | "boss" : false, // true: Tolerate assignments where comparisons would be expected
|
38 | "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
|
39 | "eqnull" : false, // true: Tolerate use of `== null`
|
40 | "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
|
41 | "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
|
42 | "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
|
43 | // (ex: `for each`, multiple try/catch, function expression…)
|
44 | "evil" : false, // true: Tolerate use of `eval` and `new Function()`
|
45 | "expr" : true, // true: Tolerate `ExpressionStatement` as Programs
|
46 | "funcscope" : false, // true: Tolerate defining variables inside control statements"
|
47 | "globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
|
48 | "iterator" : false, // true: Tolerate using the `__iterator__` property
|
49 | "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
|
50 | "laxbreak" : false, // true: Tolerate possibly unsafe line breakings
|
51 | "laxcomma" : false, // true: Tolerate comma-first style coding
|
52 | "loopfunc" : false, // true: Tolerate functions being defined in loops
|
53 | "multistr" : false, // true: Tolerate multi-line strings
|
54 | "proto" : false, // true: Tolerate using the `__proto__` property
|
55 | "scripturl" : false, // true: Tolerate script-targeted URLs
|
56 | "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
|
57 | "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
|
58 | "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
|
59 | "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
|
60 | "validthis" : false, // true: Tolerate using this in a non-constructor function
|
61 |
|
62 | // Environments
|
63 | "browser" : false, // Web Browser (window, document, etc)
|
64 | "couch" : false, // CouchDB
|
65 | "devel" : false, // Development/debugging (alert, confirm, etc)
|
66 | "dojo" : false, // Dojo Toolkit
|
67 | "jquery" : false, // jQuery
|
68 | "mootools" : false, // MooTools
|
69 | "node" : true, // Node.js
|
70 | "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
|
71 | "prototypejs" : false, // Prototype and Scriptaculous
|
72 | "rhino" : false, // Rhino
|
73 | "worker" : false, // Web Workers
|
74 | "wsh" : false, // Windows Scripting Host
|
75 | "yui" : false, // Yahoo User Interface
|
76 |
|
77 | "ignore": [{"dir":"./node_modules"}],
|
78 |
|
79 |
|
80 | // Custom globals, from http://docs.meteor.com, in the order they appear there
|
81 | "globals" : {
|
82 | // Jasmine
|
83 | "expect": false,
|
84 | "beforeEach": false,
|
85 | "afterEach":false,
|
86 | "beforeAll": false,
|
87 | "afterAll": false,
|
88 | "it": false,
|
89 | "describe": false,
|
90 | "spyOn": false
|
91 | }
|
92 |
|
93 |
|
94 | }
|