From 53786f6d456f175c4972af400fbc46be40bba970 Mon Sep 17 00:00:00 2001 From: Nathan Evans Date: Wed, 28 Dec 2016 10:40:03 -0800 Subject: [PATCH] (#44) - Upgrade babel-eslint - builds did't work completely due to a transitive dependency in older version of babel-eslint (https://github.com/babel/babel-eslint/issues/243) - fixed some lint issues from the debug lib removal that were masked by build issue --- client/components/MyProjects.js | 2 +- client/components/OrgProjects.js | 2 +- client/components/Skeleton.js | 2 +- client/components/UserProjects.js | 2 +- client/stores/project_store.js | 2 +- client/stores/user_store.js | 2 +- package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/components/MyProjects.js b/client/components/MyProjects.js index 629fd0f..1164344 100644 --- a/client/components/MyProjects.js +++ b/client/components/MyProjects.js @@ -22,7 +22,7 @@ const MyProjects = React.createClass({ .then((projects) => { this.setState({projects: projects, loading: false}); }) - .catch((err) => { + .catch(() => { this.setState({loading: false}); }); }, diff --git a/client/components/OrgProjects.js b/client/components/OrgProjects.js index 2934138..ac2de9b 100644 --- a/client/components/OrgProjects.js +++ b/client/components/OrgProjects.js @@ -26,7 +26,7 @@ const OrgProjects = React.createClass({ .then((projects) => { this.setState({projects: projects, loading: false}); }) - .catch((err) => { + .catch(() => { this.setState({loading: false}); }); }, diff --git a/client/components/Skeleton.js b/client/components/Skeleton.js index 0472ba1..32bad36 100644 --- a/client/components/Skeleton.js +++ b/client/components/Skeleton.js @@ -38,7 +38,7 @@ const Skeleton = React.createClass({ this.state = {projects: [], loading: true}; return this.context.stores.users.getCurrentUser() .then((user) => this.setState({user, loading: false})) - .catch((err) => { + .catch(() => { this.setState({loading: false}); }); }, diff --git a/client/components/UserProjects.js b/client/components/UserProjects.js index a6e4f00..f912186 100644 --- a/client/components/UserProjects.js +++ b/client/components/UserProjects.js @@ -26,7 +26,7 @@ const UserProjects = React.createClass({ .then((projects) => { this.setState({projects: projects, loading: false}); }) - .catch((err) => { + .catch(() => { this.setState({loading: false}); }); }, diff --git a/client/stores/project_store.js b/client/stores/project_store.js index dbbd9c9..7d1f28a 100644 --- a/client/stores/project_store.js +++ b/client/stores/project_store.js @@ -2,7 +2,7 @@ const request = require('superagent-bluebird-promise'); function getReposFromUrl(url) { return request.get(url) - .then((res) => res.body)); + .then(res => res.body); } /** diff --git a/client/stores/user_store.js b/client/stores/user_store.js index 9bad1f3..b55872b 100644 --- a/client/stores/user_store.js +++ b/client/stores/user_store.js @@ -23,7 +23,7 @@ class UserStore { this.state.currentUser = {result: res.body}; return res.body; }) - .catch((err) => { + .catch(() => { this.state.currentUser = {result: null}; return null; }); diff --git a/package.json b/package.json index ec576b6..bd7cdc8 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "keywords": [], "devDependencies": { "aliasify": "^1.8.0", - "babel-eslint": "4.0.10", + "babel-eslint": "7.1.1", "babelify": "^6.1.3", "browserify": "^11.0.0", "browserify-shim": "^3.8.10",