diff options
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/.jshintrc | 28 | ||||
-rw-r--r-- | src/node/package.json | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/node/.jshintrc b/src/node/.jshintrc new file mode 100644 index 0000000000..1d930c34ca --- /dev/null +++ b/src/node/.jshintrc @@ -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 + } +}
\ No newline at end of file diff --git a/src/node/package.json b/src/node/package.json index 821641ce19..1d4c3f6e6a 100644 --- a/src/node/package.json +++ b/src/node/package.json @@ -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", |