Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 73 lines (63 sloc) 4.889 kb
13870f0 @ixti Replace jslint with jshint
ixti authored
1 {
2 // Enforcing Options /////////////////////////////////////////////////////////
3
4 "bitwise" : false, // Prohibit bitwise operators (&, |, ^, etc.).
5 "curly" : true, // Require {} for every new block or scope.
6 "eqeqeq" : true, // Require triple equals i.e. `===`.
7 "forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
8 "immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
9 "latedef" : true, // Prohibit hariable use before definition.
10 "newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
11 "noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
12 "noempty" : true, // Prohibit use of empty blocks.
13 "nonew" : true, // Prohibit use of constructors for side-effects.
14 "plusplus" : false, // Prohibit use of `++` & `--`.
15 "regexp" : false, // Prohibit `.` and `[^...]` in regular expressions.
16 "undef" : true, // Require all non-global variables be declared before they are used.
17 "strict" : true, // Require `use strict` pragma in every file.
18 "trailing" : true, // Prohibit trailing whitespaces.
19
20 // Relaxing Options //////////////////////////////////////////////////////////
21
22 "asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons).
23 "boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
24 "debug" : false, // Allow debugger statements e.g. browser breakpoints.
25 "eqnull" : false, // Tolerate use of `== null`.
26 "es5" : true, // Allow ECMAScript 5 syntax.
27 "esnext" : false, // Allow ES.next specific features such as const and let
28 "evil" : false, // Tolerate use of `eval`.
29 "expr" : false, // Tolerate `ExpressionStatement` as Programs.
30 "funcscope" : false, // Tolerate declaring variables inside of control structures while accessing them later
31 "globalstrict" : true, // Allow global "use strict" (also enables 'strict').
32 "iterator" : false, // Allow usage of __iterator__ property.
33 "lastsemic" : false, // Tolerate semicolon omited for the last statement.
34 "laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
35 "laxcomma" : true, // This option suppresses warnings about comma-first coding style
36 "loopfunc" : false, // Allow functions to be defined within loops.
37 "multistr" : false, // Tolerate multi-line strings.
38 "onecase" : false, // Tolerate swithes with only one case.
39 "proto" : false, // Allow usage of __proto__ property.
40 "regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
41 "scripturl" : true, // Tolerate script-targeted URLs.
42 "smarttabs" : false, // Allow mixed tabs and spaces when the latter are used for alignmnent only.
43 "shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
44 "sub" : true, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
45 "supernew" : true, // Tolerate `new function () { ... };` and `new Object;`.
46
47 // Environments //////////////////////////////////////////////////////////////
48
49 "browser" : false, // Defines globals exposed by modern browsers
50 "couch" : false, // Defines globals exposed by CouchDB
51 "devel" : false, // Allow developments statements e.g. `console.log();`.
52 "dojo" : false, // Defines globals exposed by the Dojo Toolkit
53 "jquery" : false, // Defines globals exposed by the jQuery
54 "mootools" : false, // Defines globals exposed by the MooTools
55 "node" : true, // Defines globals exposed when running under Node.JS
56 "nonstandard" : false, // Defines non-standard but widely adopted globals such as escape and unescape
57 "prototypejs" : false, // Defines globals exposed by the Prototype
58 "rhino" : false, // Defines globals exposed when running under Rhino
59 "wsh" : false, // Defines globals exposed when running under WSH
60
61 // Legacy ////////////////////////////////////////////////////////////////////
62
63 "nomen" : false, // Prohibit use of initial or trailing underbars in names.
64 "onevar" : false, // Allow only one `var` statement per function.
65 "passfail" : false, // Stop on first error.
66 "white" : false, // Check against strict whitespace and indentation rules.
67
68 // Undocumented //////////////////////////////////////////////////////////////
69
70 "maxerr" : 100, // Maximum error before stopping.
71 "indent" : 2 // Specify indentation spacing
72 }
Something went wrong with that request. Please try again.