annotate DataTables-1.9.4/scripts/jshint.config @ 9:7300ed4c1481 draft default tip

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