1+ {
2+ "esversion" : 6 ,
3+
4+ // --------------------------------------------------------------------
5+ // JSHint Nodeclipse Configuration v0.18
6+ // Strict Edition with some relaxations and switch to Node.js, no `use strict`
7+ // by Ory Band, Michael Haschke, Paul Verest
8+ // https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/templates/common-templates/.jshintrc
9+ // JSHint Documentation is at http://www.jshint.com/docs/options/
10+ // JSHint Integration v0.9.10 comes with JSHInt 2.5.6 , see https://github.com/eclipsesource/jshint-eclipse
11+ // --------------------------------------------------------------------
12+ // from https://gist.github.com/haschek/2595796
13+ //
14+ // This is a options template for [JSHint][1], using [JSHint example][2]
15+ // and [Ory Band's example][3] as basis and setting config values to
16+ // be most strict:
17+ //
18+ // * set all enforcing options to true
19+ // * set all relaxing options to false
20+ // * set all environment options to false, except the node value
21+ // * set all JSLint legacy options to false
22+ //
23+ // [1]: http://www.jshint.com/
24+ // [2]: https://github.com/jshint/node-jshint/blob/master/example/config.json //404
25+ // [3]: https://github.com/oryband/dotfiles/blob/master/jshintrc
26+ // [4]: http://www.jshint.com/options/
27+ //
28+ // @author http://michael.haschke.biz/
29+ // @license http://unlicense.org/
30+
31+ // == Enforcing Options ===============================================
32+ //
33+ // These options tell JSHint to be more strict towards your code. Use
34+ // them if you want to allow only a safe subset of JavaScript, very
35+ // useful when your codebase is shared with a big number of developers
36+ // with different skill levels. Was all true.
37+
38+ "bitwise" : true , // Prohibit bitwise operators (&, |, ^, etc.).
39+ "curly" : true , // Require {} for every new block or scope.
40+ "eqeqeq" : true , // Require triple equals i.e. `===`.
41+ "forin" : true , // Tolerate `for in` loops without `hasOwnPrototype`.
42+ "immed" : true , // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
43+ "latedef" : true , // Prohibit variable use before definition.
44+ "newcap" : true , // Require capitalization of all constructor functions e.g. `new F()`.
45+ "noarg" : true , // Prohibit use of `arguments.caller` and `arguments.callee`.
46+ "noempty" : true , // Prohibit use of empty blocks.
47+ "nonew" : true , // Prohibit use of constructors for side-effects.
48+ "plusplus" : false , // Prohibit use of `++` & `--`. //coding style related only
49+ "regexp" : true , // Prohibit `.` and `[^...]` in regular expressions.
50+ "undef" : true , // Require all non-global variables be declared before they are used.
51+ "strict" : false , // Require `use strict` pragma in every file.
52+ "trailing" : true , // Prohibit trailing whitespaces.
53+
54+ // == Relaxing Options ================================================
55+ //
56+ // These options allow you to suppress certain types of warnings. Use
57+ // them only if you are absolutely positive that you know what you are
58+ // doing. Was all false.
59+ "asi" : false , // Tolerate Automatic Semicolon Insertion (no semicolons).
60+ "boss" : false , // Tolerate assignments inside if, for & while. Usually conditions & loops are for comparison, not assignments.
61+ "debug" : false , // Allow debugger statements e.g. browser breakpoints.
62+ "eqnull" : false , // Tolerate use of `== null`.
63+ // "es5" : true, // Allow EcmaScript 5 syntax. // es5 is default https://github.com/jshint/jshint/issues/1411
64+ "esnext" : false , // Allow ES.next (ECMAScript 6) specific features such as `const` and `let`.
65+ "evil" : false , // Tolerate use of `eval`.
66+ "expr" : false , // Tolerate `ExpressionStatement` as Programs.
67+ "funcscope" : false , // Tolerate declarations of variables inside of control structures while accessing them later from the outside.
68+ "globalstrict" : false , // Allow global "use strict" (also enables 'strict').
69+ "iterator" : false , // Allow usage of __iterator__ property.
70+ "lastsemic" : false , // Tolerat missing semicolons when the it is omitted for the last statement in a one-line block.
71+ "laxbreak" : false , // Tolerate unsafe line breaks e.g. `return [\n] x` without semicolons.
72+ "laxcomma" : true , // Suppress warnings about comma-first coding style.
73+ "loopfunc" : false , // Allow functions to be defined within loops.
74+ "maxerr" : 100 , // This options allows you to set the maximum amount of warnings JSHint will produce before giving up. Default is 50.
75+ "multistr" : false , // Tolerate multi-line strings.
76+ "onecase" : false , // Tolerate switches with just one case.
77+ "proto" : false , // Tolerate __proto__ property. This property is deprecated.
78+ "regexdash" : false , // Tolerate unescaped last dash i.e. `[-...]`.
79+ "scripturl" : false , // Tolerate script-targeted URLs.
80+ "smarttabs" : false , // Tolerate mixed tabs and spaces when the latter are used for alignmnent only.
81+ "shadow" : false , // Allows re-define variables later in code e.g. `var x=1; x=2;`.
82+ "sub" : false , // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
83+ "supernew" : false , // Tolerate `new function () { ... };` and `new Object;`.
84+ "validthis" : false , // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function.
85+
86+ // == Environments ====================================================
87+ //
88+ // These options pre-define global variables that are exposed by
89+ // popular JavaScript libraries and runtime environments—such as
90+ // browser or node.js. TODO JSHint Documentation has more, but it is not clear since what JSHint version they appeared
91+ "browser" : false , // Standard browser globals e.g. `window`, `document`.
92+ "couch" : false , // Enable globals exposed by CouchDB.
93+ "devel" : false , // Allow development statements e.g. `console.log();`.
94+ "dojo" : false , // Enable globals exposed by Dojo Toolkit.
95+ "jquery" : false , // Enable globals exposed by jQuery JavaScript library.
96+ "mootools" : false , // Enable globals exposed by MooTools JavaScript framework.
97+ "node" : true , // Enable globals available when code is running inside of the NodeJS runtime environment.
98+ "nonstandard" : false , // Define non-standard but widely adopted globals such as escape and unescape.
99+ "phantom" : false , // ?since version? This option defines globals available when your core is running inside of the PhantomJS runtime environment.
100+ "prototypejs" : false , // Enable globals exposed by Prototype JavaScript framework.
101+ "rhino" : false , // Enable globals available when your code is running inside of the Rhino runtime environment.
102+ "worker" : false , // ?since version? This option defines globals available when your code is running inside of a Web Worker.
103+ "wsh" : false , // Enable globals available when your code is running as a script for the Windows Script Host.
104+ "yui" : false , // ?since version? This option defines globals exposed by the YUI JavaScript framework.
105+
106+ // == JSLint Legacy ===================================================
107+ //
108+ // These options are legacy from JSLint. Aside from bug fixes they will
109+ // not be improved in any way and might be removed at any point.
110+ "nomen" : false , // Prohibit use of initial or trailing underbars in names.
111+ "onevar" : false , // Allow only one `var` statement per function.
112+ "passfail" : false , // Stop on first error.
113+ "white" : false , // Check against strict whitespace and indentation rules.
114+
115+ // == Undocumented Options ============================================
116+ //
117+ // While Michael have found these options in [example1][2] and [example2][3] (already gone 404)
118+ // they are not described in the [JSHint Options documentation][4].
119+
120+ "predef" : [ // Extra globals.
121+ // "exampleVar",
122+ // "anotherCoolGlobal",
123+ // "iLoveDouglas"
124+ " Java" , " JavaFX" , " $ARG" // no effect
125+ ]
126+ // , "indent" : 2 // Specify indentation spacing
127+ }
0 commit comments