diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..b512c09d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/.jshintingore b/.jshintingore new file mode 100644 index 000000000..8f9d79913 --- /dev/null +++ b/.jshintingore @@ -0,0 +1,2 @@ +node_modules/* +dist/* \ No newline at end of file diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000000000..9218b998f --- /dev/null +++ b/.jshintrc @@ -0,0 +1,32 @@ +{ + "browser": true, + + "bitwise":false, + "curly": true, + "eqnull": true, + "globalstrict": true, + "devel": true, + "eqeqeq": true, + "forin": false, + "immed": true, + "supernew": true, + "expr": true, + "indent": 2, + "latedef": true, + "newcap": true, + "noarg": true, + "noempty": true, + "undef": true, + "boss": true, + "trailing": false, + "laxbreak": true, + "laxcomma": true, + "sub": true, + + "maxlen": 140, + + "globals": { + "define": true, + "require": true + } +} \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 7c74cdd66..9c62e54df 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,3 +1,4 @@ +/* jshint node:true */ 'use strict'; module.exports = function (grunt) { @@ -32,7 +33,7 @@ module.exports = function (grunt) { src: pre.concat(['src/transport/elasticsearch-node.js'],post), dest: 'dist/elasticsearch-node.js' } - }, + }, nodeunit: { files: ['test/**/*.js'] },