Added lint script

This commit is contained in:
murgatroid99 2015-02-19 13:46:30 -08:00
parent 3e23167b01
commit c16a9bdcee
2 changed files with 30 additions and 0 deletions

28
.jshintrc Normal file
View File

@ -0,0 +1,28 @@
{
"bitwise": true,
"curly": true,
"eqeqeq": true,
"esnext": true,
"freeze": true,
"immed": true,
"indent": 2,
"latedef": "nofunc",
"maxlen": 100,
"newcap": true,
"node": true,
"noarg": true,
"quotmark": "single",
"strict": true,
"trailing": true,
"undef": true,
"unused": true,
"globals": {
/* Mocha-provided globals */
"describe": false,
"it": false,
"before": false,
"beforeEach": false,
"after": false,
"afterEach": false
}
}

View File

@ -3,10 +3,12 @@
"version": "0.2.0",
"description": "gRPC Library for Node",
"scripts": {
"lint": "jshint src test examples interop index.js",
"test": "./node_modules/mocha/bin/mocha"
},
"dependencies": {
"bindings": "^1.2.1",
"jshint": "^2.5.5",
"nan": "~1.3.0",
"protobufjs": "murgatroid99/ProtoBuf.js",
"underscore": "^1.7.0",