{"action":"created","comment":{"url":"https://api.github.com/repos/okonet/lint-staged/pulls/comments/118274084","pull_request_review_id":40049636,"id":118274084,"diff_hunk":"@@ -1,33 +1,70 @@\n 'use strict'\n \n-const findBin = require('./findBin')\n+const chunk = require('lodash.chunk')\n const execa = require('execa')\n+const pMap = require('p-map')\n+\n+const calcChunkSize = require('./calcChunkSize')\n+const findBin = require('./findBin')\n+const readConfigOption = require('./readConfigOption')\n \n module.exports = function runScript(commands, pathsToLint, packageJson, options) {\n+    const config = readConfigOption(options, 'config', {})\n+\n+    const concurrency = readConfigOption(config, 'subTaskConcurrency', 2)\n+    const chunkSize = calcChunkSize(\n+        pathsToLint,\n+        readConfigOption(config, 'chunkSize', Number.MAX_SAFE_INTEGER)\n+    )\n+\n+    const filePathChunks = chunk(pathsToLint, chunkSize)\n+\n     const lintersArray = Array.isArray(commands) ? commands : [commands]\n+\n     return lintersArray.map(linter => ({\n         title: linter,\n         task: () => {\n             try {\n-                const res = findBin(linter, pathsToLint, packageJson, options)\n+                const res = findBin(linter, packageJson, options)\n+\n                 // Only use gitDir as CWD if we are using the git binary\n                 // e.g `npm` should run tasks in the actual CWD\n                 const execaOptions =\n-                    res.bin.endsWith('git') && options && options.gitDir ? { cwd: options.gitDir } : {}\n-                return new Promise((resolve, reject) => {\n-                    execa(res.bin, res.args, execaOptions)\n-                        .then(() => {\n-                            resolve(`✅ ${ linter } passed!`)\n-                        })\n+                    res.bin.endsWith('git') && options && options.gitDir\n+                    ? { cwd: options.gitDir } : {}\n+\n+                const errors = []\n+                const mapper = (pathsChunk) => {\n+                    const args = res.args.concat(['--'], pathsChunk)\n+\n+                    return execa(res.bin, args, Object.assign({}, execaOptions))\n+                        /* If we don't catch, pMap will terminate on first rejection */\n+                        /* We want error information of all chunks */\n                         .catch((err) => {\n-                            reject(new Error(`🚫 ${ linter } found some errors. Please fix them and try committing again.\n-${ err.stderr }\n-${ err.stdout }`))\n+                            errors.push(err)\n                         })\n-                })\n+                }\n+\n+                return pMap(filePathChunks, mapper, { concurrency })\n+                    .catch((err) => {","path":"src/runScript.js","position":61,"original_position":61,"commit_id":"c22f6f5c0db0773ebbd449b58ca769d5d065a289","original_commit_id":"c22f6f5c0db0773ebbd449b58ca769d5d065a289","user":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars1.githubusercontent.com/u/22251956?v=3","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"body":"I'd have to add a mock right?","created_at":"2017-05-24T14:49:46Z","updated_at":"2017-05-24T14:49:47Z","html_url":"https://github.com/okonet/lint-staged/pull/149#discussion_r118274084","pull_request_url":"https://api.github.com/repos/okonet/lint-staged/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/comments/118274084"},"html":{"href":"https://github.com/okonet/lint-staged/pull/149#discussion_r118274084"},"pull_request":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/okonet/lint-staged/pulls/149","id":117399142,"html_url":"https://github.com/okonet/lint-staged/pull/149","diff_url":"https://github.com/okonet/lint-staged/pull/149.diff","patch_url":"https://github.com/okonet/lint-staged/pull/149.patch","issue_url":"https://api.github.com/repos/okonet/lint-staged/issues/149","number":149,"state":"open","locked":false,"title":"Run linters with configurable concurrency","user":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars1.githubusercontent.com/u/22251956?v=3","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"body":"### Changelog\r\n  - package.json - Add lodash.chunk, p-map dependency\r\n  - Add file `callChunkSize.js` for bullet proof chunk size calculation\r\n  - Update `findBin` to use `calcChunkSize.js` and return array of runnables\r\n  - `index.js`\r\n    - Add helper method for reading config option\r\n    - Add config options `subTaskConcurrency` and `chunkSize` to be passed to `runScript`\r\n  - `runScript`\r\n    - Use p-map to run runnables returned from findBin with configured concurrency\r\n    - Catch all errors, if any, combine and throw back to caller\r\n  - Add `calcChunkSize.spec.js` for tests\r\n  - Update `findBin.spec.js`\r\n    - Always pass files as an array to `findBin`\r\n    - Expect array of `{ bin, args }` as returned value\r\n  - Update `runScript.spec.js` to always pass files as an array to `runScript`\r\n\r\n### Why p-map\r\nAlthough Listr supports a `concurrency` option, it is just a switch. We cannot control the _number_ of concurrent things we want to run at a time. So I have used [p-map](/sindresorhus/p-map) for this. Avoids having to include an entire Promise library implementation.\r\n\r\n### TODO\r\n  - [x] Fix failing tests\r\n  - [x] Improve tests. Need to add new tests for chunked execution\r\n  - [ ] Add documentation for `subTaskConcurrency` and `chunkSize`\r\n  - [x] Edge case handling is present for `subTaskConcurrency` in both `index.js` as well as `runScript.js`. \r\n    Similarly for `chunkSize` in `index.js` and `calcChunkSize.js`. Is there a better way?\r\n  - [x] Figure out reasonable defaults for `chunkSize` and `subTaskConcurrency`\r\n  - [x] Fix babel config for `regeneratorRuntime` on node 4\r\n\r\n### Notes\r\nThe `pathsToLint` which is passed to `runScript` and subsequently to `findBin` should always be an array and the tests have been updated for this. I tested locally when only 1 file was staged and even in that case, it was passed as an array. Is there a situation where it will be passed as a string?\r\n\r\nDo we need to validate option `subTaskConcurrency`? It is expected to be a number greater than or equal to 1.\r\n\r\nSince we are splitting the lint task into chunks, if multiple chunks have errors, the error report will be separate. The PR already ensures that we don't terminate on first rejection. But the err report is slightly non ideal. Extreme case example(intentionally simulated):\r\n\r\n<details>\r\n<summary>Error report</summary>\r\n\r\n```\r\n> elastic-builder@0.1.8 lint-staged E:\\Projects\\repos\\elastic-builder\r\n> lint-staged\r\n\r\n > Running tasks for src/**/*.js\r\n   × eslint --fix\r\n     git add\r\n > Running tasks for test/**/*.js\r\n   × eslint --fix\r\n     git add\r\n🚫 eslint --fix found some errors. Please fix them and try committing again.\r\n\r\nE:\\Projects\\repos\\elastic-builder\\test\\core-test\\request-body-search.test.js\r\n  1:1  error  File must be at most 300 lines long. It's 316 lines long  max-lines\r\n\r\nE:\\Projects\\repos\\elastic-builder\\test\\core-test\\highlight.test.js\r\n   1:1  error  File must be at most 300 lines long. It's 317 lines long    max-lines\r\n  40:9  error  Unexpected newline between object and [ of property access  no-unexpected-multiline\r\n  50:9  error  Unexpected newline between object and [ of property access  no-unexpected-multiline\r\n  60:9  error  Unexpected newline between object and [ of property access  no-unexpected-multiline\r\n  95:9  error  Unexpected newline between object and [ of property access  no-unexpected-multiline\r\n\r\n✖ 6 problems (6 errors, 0 warnings)\r\n\r\n\r\n\r\n� eslint --fix found some errors. Please fix them and try committing again.\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\missing-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\ip-range-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\histogram-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\histogram-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\global-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\geo-hash-grid-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\geo-distance-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\filters-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\filter-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\diversified-sampler-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\date-range-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\date-histogram-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\children-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\bucket-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\n✖ 15 problems (15 errors, 0 warnings)\r\n\r\n\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\sum-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\stats-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\serial-differencing-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\pipeline-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\percentiles-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\moving-average-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\min-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\max-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\extended-stats-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\derivative-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\cumulative-sum-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\bucket-selector-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\bucket-script-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\pipeline-aggregations\\avg-bucket-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\value-count-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\top-hits-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\sum-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\stats-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\scripted-metric-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\percentiles-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\percentile-ranks-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\min-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\metrics-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\max-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\geo-centroid-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\geo-bounds-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\extended-stats-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\cardinality-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\metrics-aggregations\\avg-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\matrix-aggregations\\matrix-stats-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\matrix-aggregations\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\terms-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\terms-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\significant-terms-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\sampler-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\reverse-nested-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\range-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\range-aggregation-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\aggregations\\bucket-aggregations\\nested-aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\n✖ 42 problems (42 errors, 0 warnings)\r\n\r\n\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\wildcard-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\value-term-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\type-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\terms-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\term-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\regexp-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\range-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\prefix-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\multi-term-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\ids-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\fuzzy-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\term-level-queries\\exists-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\specialized-queries\\script-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\specialized-queries\\percolate-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\specialized-queries\\more-like-this-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\specialized-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-within-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-term-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-or-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-not-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-near-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-multi-term-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-little-big-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-first-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-field-masing-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\span-containing-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\span-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\match-none-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\match-all-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\parent-id-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\nested-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\joining-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\has-parent-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\joining-queries\\has-child-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\helper.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\geo-shape-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\geo-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\n✖ 42 problems (42 errors, 0 warnings)\r\n\r\n\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\geo-polygon-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\geo-distance-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\geo-queries\\geo-bounding-box-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\simple-query-string-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\query-string-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\query-string-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\multi-match-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\mono-field-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\match-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\match-phrase-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\match-phrase-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\match-phrase-prefix-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\full-text-query-base.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\full-text-queries\\common-terms-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\script-score-function.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\score-function.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\random-score-function.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\field-value-factor-function.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\score-functions\\decay-score-function.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\function-score-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\dis-max-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\constant-score-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\boosting-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\queries\\compound-queries\\bool-query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\index.js\r\n  4:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\util.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\sort.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\script.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\rescore.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\request-body-search.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\query.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\inner-hits.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\indexed-shape.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\index.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\highlight.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\geo-shape.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\geo-point.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\consts.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\nE:\\Projects\\repos\\elastic-builder\\src\\core\\aggregation.js\r\n  2:5  error  'unused' is defined but never used  no-unused-vars\r\n\r\n✖ 42 problems (42 errors, 0 warnings)\r\n\r\n\r\n\r\n\r\n\r\nnpm ERR! Windows_NT 6.2.9200\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"run\" \"lint-staged\"\r\nnpm ERR! node v6.10.0\r\nnpm ERR! npm  v3.10.10\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! elastic-builder@0.1.8 lint-staged: `lint-staged`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the elastic-builder@0.1.8 lint-staged script 'lint-staged'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the elastic-builder package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     lint-staged\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR!     npm bugs elastic-builder\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR!     npm owner ls elastic-builder\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     E:\\Projects\\repos\\elastic-builder\\npm-debug.log\r\n```\r\n\r\n</details>\r\n\r\nCloses #147","created_at":"2017-04-25T03:41:10Z","updated_at":"2017-05-24T14:49:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1b892173ecc0ef7ad7d3e62b83c4289aba3d664","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/okonet/lint-staged/pulls/149/commits","review_comments_url":"https://api.github.com/repos/okonet/lint-staged/pulls/149/comments","review_comment_url":"https://api.github.com/repos/okonet/lint-staged/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okonet/lint-staged/issues/149/comments","statuses_url":"https://api.github.com/repos/okonet/lint-staged/statuses/c22f6f5c0db0773ebbd449b58ca769d5d065a289","head":{"label":"sudo-suhas:concurrent-lint","ref":"concurrent-lint","sha":"c22f6f5c0db0773ebbd449b58ca769d5d065a289","user":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars1.githubusercontent.com/u/22251956?v=3","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"repo":{"id":88502509,"name":"lint-staged","full_name":"sudo-suhas/lint-staged","owner":{"login":"sudo-suhas","id":22251956,"avatar_url":"https://avatars1.githubusercontent.com/u/22251956?v=3","gravatar_id":"","url":"https://api.github.com/users/sudo-suhas","html_url":"https://github.com/sudo-suhas","followers_url":"https://api.github.com/users/sudo-suhas/followers","following_url":"https://api.github.com/users/sudo-suhas/following{/other_user}","gists_url":"https://api.github.com/users/sudo-suhas/gists{/gist_id}","starred_url":"https://api.github.com/users/sudo-suhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudo-suhas/subscriptions","organizations_url":"https://api.github.com/users/sudo-suhas/orgs","repos_url":"https://api.github.com/users/sudo-suhas/repos","events_url":"https://api.github.com/users/sudo-suhas/events{/privacy}","received_events_url":"https://api.github.com/users/sudo-suhas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudo-suhas/lint-staged","description":"🚫💩 — Run linters on git staged files","fork":true,"url":"https://api.github.com/repos/sudo-suhas/lint-staged","forks_url":"https://api.github.com/repos/sudo-suhas/lint-staged/forks","keys_url":"https://api.github.com/repos/sudo-suhas/lint-staged/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudo-suhas/lint-staged/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudo-suhas/lint-staged/teams","hooks_url":"https://api.github.com/repos/sudo-suhas/lint-staged/hooks","issue_events_url":"https://api.github.com/repos/sudo-suhas/lint-staged/issues/events{/number}","events_url":"https://api.github.com/repos/sudo-suhas/lint-staged/events","assignees_url":"https://api.github.com/repos/sudo-suhas/lint-staged/assignees{/user}","branches_url":"https://api.github.com/repos/sudo-suhas/lint-staged/branches{/branch}","tags_url":"https://api.github.com/repos/sudo-suhas/lint-staged/tags","blobs_url":"https://api.github.com/repos/sudo-suhas/lint-staged/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudo-suhas/lint-staged/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudo-suhas/lint-staged/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudo-suhas/lint-staged/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudo-suhas/lint-staged/statuses/{sha}","languages_url":"https://api.github.com/repos/sudo-suhas/lint-staged/languages","stargazers_url":"https://api.github.com/repos/sudo-suhas/lint-staged/stargazers","contributors_url":"https://api.github.com/repos/sudo-suhas/lint-staged/contributors","subscribers_url":"https://api.github.com/repos/sudo-suhas/lint-staged/subscribers","subscription_url":"https://api.github.com/repos/sudo-suhas/lint-staged/subscription","commits_url":"https://api.github.com/repos/sudo-suhas/lint-staged/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudo-suhas/lint-staged/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudo-suhas/lint-staged/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudo-suhas/lint-staged/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudo-suhas/lint-staged/contents/{+path}","compare_url":"https://api.github.com/repos/sudo-suhas/lint-staged/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudo-suhas/lint-staged/merges","archive_url":"https://api.github.com/repos/sudo-suhas/lint-staged/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudo-suhas/lint-staged/downloads","issues_url":"https://api.github.com/repos/sudo-suhas/lint-staged/issues{/number}","pulls_url":"https://api.github.com/repos/sudo-suhas/lint-staged/pulls{/number}","milestones_url":"https://api.github.com/repos/sudo-suhas/lint-staged/milestones{/number}","notifications_url":"https://api.github.com/repos/sudo-suhas/lint-staged/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudo-suhas/lint-staged/labels{/name}","releases_url":"https://api.github.com/repos/sudo-suhas/lint-staged/releases{/id}","deployments_url":"https://api.github.com/repos/sudo-suhas/lint-staged/deployments","created_at":"2017-04-17T11:39:05Z","updated_at":"2017-04-17T11:39:07Z","pushed_at":"2017-05-24T14:15:06Z","git_url":"git://github.com/sudo-suhas/lint-staged.git","ssh_url":"git@github.com:sudo-suhas/lint-staged.git","clone_url":"https://github.com/sudo-suhas/lint-staged.git","svn_url":"https://github.com/sudo-suhas/lint-staged","homepage":"","size":278,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"okonet:master","ref":"master","sha":"c7283b77c2cf3637e9f06f953b919a556ffde205","user":{"login":"okonet","id":11071,"avatar_url":"https://avatars0.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"repo":{"id":49704723,"name":"lint-staged","full_name":"okonet/lint-staged","owner":{"login":"okonet","id":11071,"avatar_url":"https://avatars0.githubusercontent.com/u/11071?v=3","gravatar_id":"","url":"https://api.github.com/users/okonet","html_url":"https://github.com/okonet","followers_url":"https://api.github.com/users/okonet/followers","following_url":"https://api.github.com/users/okonet/following{/other_user}","gists_url":"https://api.github.com/users/okonet/gists{/gist_id}","starred_url":"https://api.github.com/users/okonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okonet/subscriptions","organizations_url":"https://api.github.com/users/okonet/orgs","repos_url":"https://api.github.com/users/okonet/repos","events_url":"https://api.github.com/users/okonet/events{/privacy}","received_events_url":"https://api.github.com/users/okonet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okonet/lint-staged","description":"🚫💩 — Run linters on git staged files","fork":false,"url":"https://api.github.com/repos/okonet/lint-staged","forks_url":"https://api.github.com/repos/okonet/lint-staged/forks","keys_url":"https://api.github.com/repos/okonet/lint-staged/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okonet/lint-staged/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okonet/lint-staged/teams","hooks_url":"https://api.github.com/repos/okonet/lint-staged/hooks","issue_events_url":"https://api.github.com/repos/okonet/lint-staged/issues/events{/number}","events_url":"https://api.github.com/repos/okonet/lint-staged/events","assignees_url":"https://api.github.com/repos/okonet/lint-staged/assignees{/user}","branches_url":"https://api.github.com/repos/okonet/lint-staged/branches{/branch}","tags_url":"https://api.github.com/repos/okonet/lint-staged/tags","blobs_url":"https://api.github.com/repos/okonet/lint-staged/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okonet/lint-staged/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okonet/lint-staged/git/refs{/sha}","trees_url":"https://api.github.com/repos/okonet/lint-staged/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okonet/lint-staged/statuses/{sha}","languages_url":"https://api.github.com/repos/okonet/lint-staged/languages","stargazers_url":"https://api.github.com/repos/okonet/lint-staged/stargazers","contributors_url":"https://api.github.com/repos/okonet/lint-staged/contributors","subscribers_url":"https://api.github.com/repos/okonet/lint-staged/subscribers","subscription_url":"https://api.github.com/repos/okonet/lint-staged/subscription","commits_url":"https://api.github.com/repos/okonet/lint-staged/commits{/sha}","git_commits_url":"https://api.github.com/repos/okonet/lint-staged/git/commits{/sha}","comments_url":"https://api.github.com/repos/okonet/lint-staged/comments{/number}","issue_comment_url":"https://api.github.com/repos/okonet/lint-staged/issues/comments{/number}","contents_url":"https://api.github.com/repos/okonet/lint-staged/contents/{+path}","compare_url":"https://api.github.com/repos/okonet/lint-staged/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okonet/lint-staged/merges","archive_url":"https://api.github.com/repos/okonet/lint-staged/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okonet/lint-staged/downloads","issues_url":"https://api.github.com/repos/okonet/lint-staged/issues{/number}","pulls_url":"https://api.github.com/repos/okonet/lint-staged/pulls{/number}","milestones_url":"https://api.github.com/repos/okonet/lint-staged/milestones{/number}","notifications_url":"https://api.github.com/repos/okonet/lint-staged/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okonet/lint-staged/labels{/name}","releases_url":"https://api.github.com/repos/okonet/lint-staged/releases{/id}","deployments_url":"https://api.github.com/repos/okonet/lint-staged/deployments","created_at":"2016-01-15T07:51:21Z","updated_at":"2017-05-24T07:59:46Z","pushed_at":"2017-05-24T14:49:09Z","git_url":"git://github.com/okonet/lint-staged.git","ssh_url":"git@github.com:okonet/lint-staged.git","clone_url":"https://github.com/okonet/lint-staged.git","svn_url":"https://github.com/okonet/lint-staged","homepage":"","size":279,"stargazers_count":795,"watchers_count":795,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":23,"forks":35,"open_issues":23,"watchers":795,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/149"},"html":{"href":"https://github.com/okonet/lint-staged/pull/149"},"issue":{"href":"https://api.github.com/repos/okonet/lint-staged/issues/149"},"comments":{"href":"https://api.github.com/repos/okonet/lint-staged/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okonet/lint-staged/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/okonet/lint-staged/statuses/c22f6f5c0db0773ebbd449b58ca769d5d065a289"}}}}
{"actor":{"display_login":"sudo-suhas"}}