Skip to content

Commit 221f36b

Browse files
committed
added node dependencies
1 parent b1ca651 commit 221f36b

File tree

3 files changed

+140
-0
lines changed

3 files changed

+140
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.tern-project
2+
.settings
3+
.project
4+
15
# Logs
26
logs
37
*.log

.jshintrc

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{
2+
// --------------------------------------------------------------------
3+
// JSHint Nodeclipse Configuration v0.15.1
4+
// Strict Edition with some relaxations and switch to Node.js, no `use strict`
5+
// by Ory Band, Michael Haschke, Paul Verest
6+
// https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/templates/common-templates/.jshintrc
7+
// JSHint Documentation is at http://www.jshint.com/docs/options/
8+
// JSHint Integration v0.9.9 comes with JSHInt 2.1.10 , see https://github.com/eclipsesource/jshint-eclipse
9+
// Known issues:
10+
// newer JSHint can't be used https://github.com/eclipsesource/jshint-eclipse/issues/75 that depends on JSHint issues.
11+
// --------------------------------------------------------------------
12+
// from https://gist.github.com/haschek/2595796
13+
//
14+
// @author http://michael.haschke.biz/
15+
// @license http://unlicense.org/
16+
//
17+
// This is a options template for [JSHint][1], using [JSHint example][2]
18+
// and [Ory Band's example][3] as basis and setting config values to
19+
// be most strict:
20+
//
21+
// * set all enforcing options to true
22+
// * set all relaxing options to false
23+
// * set all environment options to false, except the node value
24+
// * set all JSLint legacy options to false
25+
//
26+
// [1]: http://www.jshint.com/
27+
// [2]: https://github.com/jshint/node-jshint/blob/master/example/config.json //404
28+
// [3]: https://github.com/oryband/dotfiles/blob/master/jshintrc //404
29+
// [4]: http://www.jshint.com/options/
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+
"moz" : false, // This options tells JSHint that your code uses Mozilla JavaScript extensions. Unless you develop specifically for the Firefox web browser you don't need this option.
76+
"multistr" : false, // Tolerate multi-line strings.
77+
"onecase" : false, // Tolerate switches with just one case.
78+
"proto" : false, // Tolerate __proto__ property. This property is deprecated.
79+
"regexdash" : false, // Tolerate unescaped last dash i.e. `[-...]`.
80+
"scripturl" : false, // Tolerate script-targeted URLs.
81+
"smarttabs" : false, // Tolerate mixed tabs and spaces when the latter are used for alignmnent only.
82+
"shadow" : false, // Allows re-define variables later in code e.g. `var x=1; x=2;`.
83+
"sub" : false, // Tolerate all forms of subscript notation besides dot notation e.g. `dict['key']` instead of `dict.key`.
84+
"supernew" : false, // Tolerate `new function () { ... };` and `new Object;`.
85+
"validthis" : false, // Tolerate strict violations when the code is running in strict mode and you use this in a non-constructor function.
86+
87+
// == Environments ====================================================
88+
//
89+
// These options pre-define global variables that are exposed by
90+
// popular JavaScript libraries and runtime environments—such as
91+
// browser or node.js. TODO JSHint Documentation has more, but it is not clear since what JSHint version they appeared
92+
"browser" : false, // Standard browser globals e.g. `window`, `document`.
93+
"couch" : false, // Enable globals exposed by CouchDB.
94+
"devel" : false, // Allow development statements e.g. `console.log();`.
95+
"dojo" : false, // Enable globals exposed by Dojo Toolkit.
96+
"jquery" : false, // Enable globals exposed by jQuery JavaScript library.
97+
"mootools" : false, // Enable globals exposed by MooTools JavaScript framework.
98+
"node" : true, // Enable globals available when code is running inside of the NodeJS runtime environment.
99+
"nonstandard" : false, // Define non-standard but widely adopted globals such as escape and unescape.
100+
"phantom" : false, //?since version? This option defines globals available when your core is running inside of the PhantomJS runtime environment.
101+
"prototypejs" : false, // Enable globals exposed by Prototype JavaScript framework.
102+
"rhino" : false, // Enable globals available when your code is running inside of the Rhino runtime environment.
103+
"worker" : false, //?since version? This option defines globals available when your code is running inside of a Web Worker.
104+
"wsh" : false, // Enable globals available when your code is running as a script for the Windows Script Host.
105+
"yui" : false, //?since version? This option defines globals exposed by the YUI JavaScript framework.
106+
107+
// == JSLint Legacy ===================================================
108+
//
109+
// These options are legacy from JSLint. Aside from bug fixes they will
110+
// not be improved in any way and might be removed at any point.
111+
"nomen" : false, // Prohibit use of initial or trailing underbars in names.
112+
"onevar" : false, // Allow only one `var` statement per function.
113+
"passfail" : false, // Stop on first error.
114+
"white" : false, // Check against strict whitespace and indentation rules.
115+
116+
// == Undocumented Options ============================================
117+
//
118+
// While Michael have found these options in [example1][2] and [example2][3] (already gone 404)
119+
// they are not described in the [JSHint Options documentation][4].
120+
121+
"predef" : [ // Extra globals.
122+
//"exampleVar",
123+
//"anotherCoolGlobal",
124+
//"iLoveDouglas"
125+
"Java", "JavaFX", "$ARG" //no effect
126+
]
127+
//, "indent" : 2 // Specify indentation spacing
128+
}

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
"url": "https://github.com/codeine-cd/codeineNodePeer/issues"
1414
},
1515
"homepage": "https://github.com/codeine-cd/codeineNodePeer",
16+
"devDependencies": {
17+
"grunt": "~0.4.4",
18+
"grunt-cli": "^0.1.13",
19+
"grunt-contrib-jshint": "~0.10.0",
20+
"grunt-contrib-watch": "~0.6.1",
21+
"grunt-exec": "~0.4.2",
22+
"load-grunt-tasks": "~0.6.0"
23+
},
1624
"scripts": {
1725
"test": "grunt test"
1826
},

0 commit comments

Comments
 (0)