From d546f30a8f6b7cd57953ffeda59199524ff33893 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Wed, 13 Sep 2017 21:43:52 +0200
Subject: [PATCH] chore: fix eslint (#793)

* fix eslint configuration

* run eslint fix
---
 .eslintignore                     | 1 +
 lib/workers/package-file/index.js | 1 -
 lib/workers/repository/cleanup.js | 3 ++-
 package.json                      | 4 ++--
 4 files changed, 5 insertions(+), 4 deletions(-)
 create mode 100644 .eslintignore

diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000000..48d93364af
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1 @@
+test/_fixtures
diff --git a/lib/workers/package-file/index.js b/lib/workers/package-file/index.js
index 50fe84629b..33bc37f64c 100644
--- a/lib/workers/package-file/index.js
+++ b/lib/workers/package-file/index.js
@@ -1,6 +1,5 @@
 const configParser = require('../../config');
 const depTypeWorker = require('../dep-type');
-const packageWorker = require('../package');
 const npmApi = require('../../api/npm');
 
 let logger = require('../../logger');
diff --git a/lib/workers/repository/cleanup.js b/lib/workers/repository/cleanup.js
index f41b7d07d9..f219a5de0b 100644
--- a/lib/workers/repository/cleanup.js
+++ b/lib/workers/repository/cleanup.js
@@ -15,7 +15,8 @@ async function pruneStaleBranches(config, branchList) {
   );
   logger.debug(`renovateBranches=${renovateBranches}`);
   if (
-    renovateBranches.indexOf(`${config.branchPrefix}lock-file-maintenance`) !== -1
+    renovateBranches.indexOf(`${config.branchPrefix}lock-file-maintenance`) !==
+    -1
   ) {
     logger.debug('Checking lock file branch');
     const pr = await config.api.getBranchPr(
diff --git a/package.json b/package.json
index 8c817f9a41..109fe28af9 100644
--- a/package.json
+++ b/package.json
@@ -8,8 +8,8 @@
     "heroku-push": "git push heroku master",
     "heroku-scheduler": "heroku addons:open scheduler",
     "jest": "NODE_ENV=test LOG_LEVEL=fatal jest",
-    "lint-fix": "eslint --fix lib/**/*.js test/**/*.js",
-    "lint": "eslint lib/**/*.js test/**/*.js",
+    "lint-fix": "eslint --fix lib test",
+    "lint": "eslint lib test",
     "prepublishOnly": "npm run build",
     "start": "node dist/renovate",
     "start-babel": "babel-node lib/renovate",
-- 
GitLab