author | Denis Laxalde <denis.laxalde@logilab.fr> |
Fri, 05 Apr 2019 17:19:56 +0200 | |
branch | 3.26 |
changeset 12563 | 4d6909de765a |
parent 10925 | a9a5772a5ee6 |
permissions | -rw-r--r-- |
10904
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
1 |
{ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
2 |
// -------------------------------------------------------------------- |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
3 |
// JSHint Configuration, Strict Edition |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
4 |
// -------------------------------------------------------------------- |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
5 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
6 |
// This is a options template for [JSHint][1], using [JSHint example][2] |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
7 |
// and [Ory Band's example][3] as basis and setting config values to |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
8 |
// be most strict: |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
9 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
10 |
// * set all enforcing options to true |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
11 |
// * set all relaxing options to false |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
12 |
// * set all environment options to false, except the browser value |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
13 |
// * set all JSLint legacy options to false |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
14 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
15 |
// [1]: http://www.jshint.com/ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
16 |
// [2]: https://github.com/jshint/node-jshint/blob/master/example/config.json |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
17 |
// [3]: https://github.com/oryband/dotfiles/blob/master/jshintrc |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
18 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
19 |
// @author http://michael.haschke.biz/ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
20 |
// @license http://unlicense.org/ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
21 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
22 |
// == Enforcing Options =============================================== |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
23 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
24 |
// These options tell JSHint to be more strict towards your code. Use |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
25 |
// them if you want to allow only a safe subset of JavaScript, very |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
26 |
// useful when your codebase is shared with a big number of developers |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
27 |
// with different skill levels. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
28 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
29 |
"bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.). |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
30 |
"curly" : true, // Require {} for every new block or scope. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
31 |
"eqeqeq" : true, // Require triple equals i.e. `===`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
32 |
"forin" : true, // Tolerate `for in` loops without `hasOwnPrototype`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
33 |
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );` |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
34 |
"latedef" : true, // Prohibit variable use before definition. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
35 |
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
36 |
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
37 |
"noempty" : true, // Prohibit use of empty blocks. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
38 |
"nonew" : true, // Prohibit use of constructors for side-effects. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
39 |
"plusplus" : true, // Prohibit use of `++` & `--`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
40 |
"regexp" : true, // Prohibit `.` and `[^...]` in regular expressions. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
41 |
"undef" : true, // Require all non-global variables be declared before they are used. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
42 |
"strict" : true, // Require `use strict` pragma in every file. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
43 |
"trailing" : true, // Prohibit trailing whitespaces. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
44 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
45 |
// == Relaxing Options ================================================ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
46 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
47 |
// These options allow you to suppress certain types of warnings. Use |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
48 |
// them only if you are absolutely positive that you know what you are |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
49 |
// doing. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
50 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
51 |
"asi" : false, // Tolerate Automatic Semicolon Insertion (no semicolons). |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
52 |
"boss" : false, // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
53 |
"debug" : false, // Allow debugger statements e.g. browser breakpoints. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
54 |
"eqnull" : false, // Tolerate use of `== null`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
55 |
"es5" : false, // Allow EcmaScript 5 syntax. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
56 |
"esnext" : false, // Allow ES.next specific features such as `const` and `let`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
57 |
"evil" : false, // Tolerate use of `eval`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
58 |
"expr" : false, // Tolerate `ExpressionStatement` as Programs. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
59 |
"funcscope" : false, // Tolerate declarations of variables inside of control structures while accessing them later from the outside. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
60 |
"globalstrict" : false, // Allow global "use strict" (also enables 'strict'). |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
61 |
"iterator" : false, // Allow usage of __iterator__ property. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
62 |
"lastsemic" : false, // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
63 |
"laxbreak" : false, // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
64 |
"laxcomma" : false, // Suppress warnings about comma-first coding style. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
65 |
"loopfunc" : false, // Allow functions to be defined within loops. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
66 |
"multistr" : false, // Tolerate multi-line strings. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
67 |
"onecase" : false, // Tolerate switches with just one case. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
68 |
"proto" : false, // Tolerate __proto__ property. This property is deprecated. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
69 |
"regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
70 |
"scripturl" : false, // Tolerate script-targeted URLs. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
71 |
"smarttabs" : false, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
72 |
"shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
73 |
"sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
74 |
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
75 |
"validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
76 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
77 |
// == Environments ==================================================== |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
78 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
79 |
// These options pre-define global variables that are exposed by |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
80 |
// popular JavaScript libraries and runtime environments—such as |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
81 |
// browser or node.js. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
82 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
83 |
"browser" : true, // Standard browser globals e.g. `window`, `document`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
84 |
"couch" : false, // Enable globals exposed by CouchDB. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
85 |
"devel" : false, // Allow development statements e.g. `console.log();`. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
86 |
"dojo" : false, // Enable globals exposed by Dojo Toolkit. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
87 |
"jquery" : false, // Enable globals exposed by jQuery JavaScript library. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
88 |
"mootools" : false, // Enable globals exposed by MooTools JavaScript framework. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
89 |
"node" : false, // Enable globals available when code is running inside of the NodeJS runtime environment. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
90 |
"nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
91 |
"prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
92 |
"rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
93 |
"wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
94 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
95 |
// == JSLint Legacy =================================================== |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
96 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
97 |
// These options are legacy from JSLint. Aside from bug fixes they will |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
98 |
// not be improved in any way and might be removed at any point. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
99 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
100 |
"nomen" : false, // Prohibit use of initial or trailing underbars in names. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
101 |
"onevar" : false, // Allow only one `var` statement per function. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
102 |
"passfail" : false, // Stop on first error. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
103 |
"white" : false, // Check against strict whitespace and indentation rules. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
104 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
105 |
// == Undocumented Options ============================================ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
106 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
107 |
// While I've found these options in [example1][2] and [example2][3] |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
108 |
// they are not described in the [JSHint Options documentation][4]. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
109 |
// |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
110 |
// [4]: http://www.jshint.com/options/ |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
111 |
|
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
112 |
"maxerr" : 100, // Maximum errors before stopping. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
113 |
"predef" : [], // Extra globals. |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
114 |
"indent" : 4 // Specify indentation spacing |
1ad66961ce8b
[js] add configuration file for jshint (closes #5593987)
Samuel Trégouët <samuel.tregouet@logilab.fr>
parents:
diff
changeset
|
115 |
} |