Skip to content

Commit

Permalink
[eslint] lint the whole repo, rely on ignores for file selection
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed May 14, 2018
1 parent 4156fec commit ee09e1e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
src/_*
src/bower_es_js
src/lib/apis
docs
bower_components
1 change: 1 addition & 0 deletions grunt/config/aws_s3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var config = {};
try {
// eslint-disable-next-line
config = require('../../.aws-config.json');
} catch (e) {}

Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
"mapping",
"REST"
],
"scripts": {
"test": "grunt test",
"generate": "node scripts/generate",
"grunt": "grunt",
"lint": "eslint ."
},
"browser": {
"./src/lib/connectors/index.js": "./src/lib/connectors/browser_index.js",
"./src/lib/loggers/index.js": "./src/lib/loggers/browser_index.js",
Expand Down Expand Up @@ -114,12 +120,6 @@
"type": "git",
"url": "http://github.com/elastic/elasticsearch-js.git"
},
"scripts": {
"test": "grunt test",
"generate": "node scripts/generate",
"grunt": "grunt",
"eslint": "eslint src scripts test grunt Gruntfile.js"
},
"engines": {
"node": ">=0.8"
}
Expand Down

0 comments on commit ee09e1e

Please sign in to comment.