You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2017/01/11 06:53:36 UTC

[1/2] fauxton commit: updated refs/heads/master to 14b0901

Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a766d3466 -> 14b0901df


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/mango/tests/mango.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/mango/tests/mango.componentsSpec.react.jsx b/app/addons/documents/mango/tests/mango.componentsSpec.react.jsx
index bf2baad..9577ab3 100644
--- a/app/addons/documents/mango/tests/mango.componentsSpec.react.jsx
+++ b/app/addons/documents/mango/tests/mango.componentsSpec.react.jsx
@@ -12,7 +12,6 @@
 
 import FauxtonAPI from "../../../../core/api";
 import Views from "../mango.components.react";
-import Stores from "../mango.stores";
 import MangoActions from "../mango.actions";
 import ActionTypes from "../mango.actiontypes";
 import Resources from "../../resources";
@@ -21,7 +20,6 @@ import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 var assert = utils.assert;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/mango/tests/mango.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/mango/tests/mango.storesSpec.js b/app/addons/documents/mango/tests/mango.storesSpec.js
index 34a843c..941794c 100644
--- a/app/addons/documents/mango/tests/mango.storesSpec.js
+++ b/app/addons/documents/mango/tests/mango.storesSpec.js
@@ -12,7 +12,6 @@
 
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../mango.stores";
-import ActionTypes from "../mango.actiontypes";
 import Resources from "../../resources";
 import testUtils from "../../../../../test/mocha/testUtils";
 var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/mangolayout.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/mangolayout.js b/app/addons/documents/mangolayout.js
index 87aeecf..09c226d 100644
--- a/app/addons/documents/mangolayout.js
+++ b/app/addons/documents/mangolayout.js
@@ -12,7 +12,6 @@
 
 import React from 'react';
 import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import ReactPagination from "./pagination/pagination.react";
 import ReactHeader from "./header/header.react";
 import {Breadcrumbs} from '../components/header-breadcrumbs';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/pagination/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/pagination/actions.js b/app/addons/documents/pagination/actions.js
index 02735de..3827465 100644
--- a/app/addons/documents/pagination/actions.js
+++ b/app/addons/documents/pagination/actions.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 import IndexResultsActions from "../index-results/actions";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/pagination/pagination.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/pagination/pagination.react.jsx b/app/addons/documents/pagination/pagination.react.jsx
index 2b8e5de..883bc3f 100644
--- a/app/addons/documents/pagination/pagination.react.jsx
+++ b/app/addons/documents/pagination/pagination.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import FauxtonAPI from "../../../core/api";
 import React from "react";
 import Actions from "./actions";
 import IndexResultsStore from "../index-results/stores";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/queryoptions/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/actions.js b/app/addons/documents/queryoptions/actions.js
index e89f6e5..c06da84 100644
--- a/app/addons/documents/queryoptions/actions.js
+++ b/app/addons/documents/queryoptions/actions.js
@@ -13,8 +13,6 @@
 import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
-import Stores from "./stores";
-const store = Stores.queryOptionsStore;
 
 export default {
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/queryoptions/queryoptions.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/queryoptions.react.jsx b/app/addons/documents/queryoptions/queryoptions.react.jsx
index f0a1987..553373a 100644
--- a/app/addons/documents/queryoptions/queryoptions.react.jsx
+++ b/app/addons/documents/queryoptions/queryoptions.react.jsx
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from '../../../app';
-
 import FauxtonAPI from '../../../core/api';
 import React from 'react';
 import ReactDOM from 'react-dom';
@@ -173,8 +171,7 @@ var KeySearchFields = React.createClass({
             <div className="controls controls-row">
               <label htmlFor="keys-input" className="drop-down">A key, or an array of keys.</label>
               <textarea value={this.props.byKeys} onChange={this.updateByKeys} id="keys-input" className="input-xxlarge" rows="5" type="text"
-                placeholder='Enter either a single key ["123"] or an array of keys ["123", "456"].
-A key value is the first parameter emitted in a map function. For example emit("123", 1) the key is "123".'></textarea>
+                placeholder='Enter either a single key ["123"] or an array of keys ["123", "456"]. A key value is the first parameter emitted in a map function. For example emit("123", 1) the key is "123".'></textarea>
               <div id="keys-error" className="inline-block js-keys-error"></div>
             </div>
           </div>
@@ -267,7 +264,7 @@ var QueryButtons = React.createClass({
     onCancel: React.PropTypes.func.isRequired
   },
 
-  hideTray: function (e) {
+  hideTray: function () {
     this.props.onCancel();
   },
 
@@ -370,7 +367,7 @@ var QueryTray = React.createClass({
     Actions.toggleQueryBarVisibility(false);
   },
 
-  toggleIncludeDocs: function (e) {
+  toggleIncludeDocs: function () {
     Actions.toggleIncludeDocs();
   },
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/queryoptions/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/stores.js b/app/addons/documents/queryoptions/stores.js
index 3246f3f..e56d058 100644
--- a/app/addons/documents/queryoptions/stores.js
+++ b/app/addons/documents/queryoptions/stores.js
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from '../../../app';
-
 import FauxtonAPI from '../../../core/api';
 import ActionTypes from './actiontypes';
 const Stores = {};

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/queryoptions/tests/queryoptions.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/tests/queryoptions.componentsSpec.react.jsx b/app/addons/documents/queryoptions/tests/queryoptions.componentsSpec.react.jsx
index 8860fab..e0e8b3b 100644
--- a/app/addons/documents/queryoptions/tests/queryoptions.componentsSpec.react.jsx
+++ b/app/addons/documents/queryoptions/tests/queryoptions.componentsSpec.react.jsx
@@ -11,9 +11,6 @@
 // the License.
 import FauxtonAPI from "../../../../core/api";
 import Views from "../queryoptions.react";
-import Stores from "../stores";
-import Actions from "../actions";
-import Documents from "../../resources";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
@@ -25,7 +22,7 @@ var assert = utils.assert;
 var restore = utils.restore;
 
 describe('Query Options', function () {
-  var container, El;
+  var container;
 
   beforeEach(function () {
     container = document.createElement('div');

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/queryoptions/tests/queryoptions.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/queryoptions/tests/queryoptions.storesSpec.js b/app/addons/documents/queryoptions/tests/queryoptions.storesSpec.js
index 47c4401..cb9de3c 100644
--- a/app/addons/documents/queryoptions/tests/queryoptions.storesSpec.js
+++ b/app/addons/documents/queryoptions/tests/queryoptions.storesSpec.js
@@ -12,12 +12,10 @@
 
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../stores";
-import ActionTypes from "../actiontypes";
 import testUtils from "../../../../../test/mocha/testUtils";
 var assert = testUtils.assert;
 var dispatchToken;
 var store;
-var opts;
 
 describe('QueryOptions Store', () => {
   beforeEach(() => {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/resources.js b/app/addons/documents/resources.js
index 1714915..eeb3a15 100644
--- a/app/addons/documents/resources.js
+++ b/app/addons/documents/resources.js
@@ -152,7 +152,7 @@ Documents.MangoIndexCollection = PagingCollection.extend({
     return res.indexes;
   },
 
-  urlRef: function (context, params) {
+  urlRef: function (context) {
     var database = this.database.safeID(),
         query = '';
 
@@ -223,9 +223,7 @@ Documents.MangoDocumentCollection = PagingCollection.extend({
     }
   },
 
-  _iterate: function (offset, opts) {
-    var options = _.defaults((opts || {}), {fetch: true});
-
+  _iterate: function (offset) {
     this.paging.params = this.calculateParams(this.paging.params, offset, this.paging.pageSize);
 
     return this.fetch();
@@ -414,12 +412,7 @@ Documents.BulkDeleteDocCollection = FauxtonAPI.Collection.extend({
   },
 
   removeDocuments: function (ids) {
-    var reloadDesignDocs = false;
     _.each(ids, function (id) {
-      if (/_design/.test(id)) {
-        reloadDesignDocs = true;
-      }
-
       this.remove(this.get(id));
     }, this);
 
@@ -540,8 +533,7 @@ Documents.IndexCollection = PagingCollection.extend({
     });
   },
 
-  parse: function (resp) {
-    var rows = resp.rows;
+  parse: function () {
     this.endTime = new Date().getTime();
     this.requestDuration = (this.endTime - this.startTime);
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/rev-browser/rev-browser.actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/rev-browser/rev-browser.actions.js b/app/addons/documents/rev-browser/rev-browser.actions.js
index 794fa7b..5e31dd7 100644
--- a/app/addons/documents/rev-browser/rev-browser.actions.js
+++ b/app/addons/documents/rev-browser/rev-browser.actions.js
@@ -12,7 +12,6 @@
 
 /* global FormData */
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./rev-browser.actiontypes";
 import getTree from "visualizeRevTree/lib/getTree";
@@ -128,7 +127,7 @@ function selectRevAsWinner (databaseName, docId, paths, revToWin) {
       showConfirmModal(false, null);
       FauxtonAPI.navigate(FauxtonAPI.urls('allDocs', 'app', databaseName, ''));
     },
-    error: (resp) => {
+    error: () => {
       FauxtonAPI.addNotification({
         msg: 'Failed to delete clean up conflicts!',
         type: 'error',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/rev-browser/rev-browser.components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/rev-browser/rev-browser.components.react.jsx b/app/addons/documents/rev-browser/rev-browser.components.react.jsx
index d49a6cc..7913b44 100644
--- a/app/addons/documents/rev-browser/rev-browser.components.react.jsx
+++ b/app/addons/documents/rev-browser/rev-browser.components.react.jsx
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-
-import FauxtonAPI from "../../../core/api";
 import app from "../../../app";
 import React from "react";
 import ReactDOM from "react-dom";
@@ -78,7 +76,7 @@ class DiffyController extends React.Component {
   }
 
   render () {
-    const {tree, ours, theirs, dropdownData, conflictingRevs, isDiffViewEnabled} = this.state;
+    const {tree, ours, theirs, conflictingRevs, isDiffViewEnabled} = this.state;
 
     if (!tree) {
       return null;
@@ -276,7 +274,7 @@ class RevisionBrowserControls extends React.Component {
   }
 
   render () {
-    const {tree, conflictingRevs} = this.props;
+    const {tree} = this.props;
     const cellStyle = {paddingRight: '30px'};
 
     return (
@@ -414,7 +412,7 @@ ConfirmModal.propTypes = {
   onConfirm: React.PropTypes.func.isRequired,
 };
 
-const BackForwardControls = ({onClick, forward, backward}) => {
+const BackForwardControls = ({onClick, forward}) => {
   const icon = forward ? 'fonticon-right-open' : 'fonticon-left-open';
   const style = {height: '20px', width: '11px', marginTop: '7px'};
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/rev-browser/tests/rev-browser.actionsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/rev-browser/tests/rev-browser.actionsSpec.js b/app/addons/documents/rev-browser/tests/rev-browser.actionsSpec.js
index b0678ce..6cec10b 100644
--- a/app/addons/documents/rev-browser/tests/rev-browser.actionsSpec.js
+++ b/app/addons/documents/rev-browser/tests/rev-browser.actionsSpec.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import FauxtonAPI from "../../../../core/api";
 import RevActions from "../rev-browser.actions";
 import fixtures from "./fixtures";
 import utils from "../../../../../test/mocha/testUtils";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/routes-doc-editor.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-doc-editor.js b/app/addons/documents/routes-doc-editor.js
index 5ecf605..01d9df8 100644
--- a/app/addons/documents/routes-doc-editor.js
+++ b/app/addons/documents/routes-doc-editor.js
@@ -11,9 +11,7 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
-import Helpers from "./helpers";
 import Documents from "./resources";
 import Databases from "../databases/base";
 import Actions from "./doc-editor/actions";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/routes-documents.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-documents.js b/app/addons/documents/routes-documents.js
index d8cb677..583cfda 100644
--- a/app/addons/documents/routes-documents.js
+++ b/app/addons/documents/routes-documents.js
@@ -20,7 +20,6 @@ import Databases from '../databases/base';
 import Resources from './resources';
 import IndexResultStores from './index-results/stores';
 import IndexResultsActions from './index-results/actions';
-import ReactActions from './header/header.actions';
 import SidebarActions from './sidebar/actions';
 import DesignDocInfoActions from './designdocinfo/actions';
 import ComponentsActions from '../components/actions';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/routes-index-editor.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-index-editor.js b/app/addons/documents/routes-index-editor.js
index 9ef44bb..d204bb5 100644
--- a/app/addons/documents/routes-index-editor.js
+++ b/app/addons/documents/routes-index-editor.js
@@ -11,16 +11,13 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
-import Helpers from "./helpers";
 import BaseRoute from "./shared-routes";
 import Documents from "./resources";
 import ActionsIndexEditor from "./index-editor/actions";
 import Databases from "../databases/base";
 import IndexResultsStores from "./index-results/stores";
 import IndexResultsActions from "./index-results/actions";
-import ReactHeaderActions from "./header/header.actions";
 import SidebarActions from "./sidebar/actions";
 import {DocsTabsSidebarLayout, ViewsTabsSidebarLayout} from './layouts';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/routes-mango.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/routes-mango.js b/app/addons/documents/routes-mango.js
index 15642c8..16b8db6 100644
--- a/app/addons/documents/routes-mango.js
+++ b/app/addons/documents/routes-mango.js
@@ -13,17 +13,12 @@
 import React from 'react';
 import app from "../../app";
 import FauxtonAPI from "../../core/api";
-import Helpers from "./helpers";
-import BaseRoute from "./shared-routes";
 import Databases from "../databases/resources";
 import Resources from "./resources";
 import IndexResultsActions from "./index-results/actions";
 import IndexResultStores from "./index-results/stores";
-import ReactHeader from "./header/header.react";
 import Documents from "./shared-resources";
-import ReactActions from "./header/header.actions";
 import MangoActions from "./mango/mango.actions";
-import MangoStores from "./mango/mango.stores";
 import SidebarActions from "./sidebar/actions";
 import {MangoLayout} from './mangolayout';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/shared-resources.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/shared-resources.js b/app/addons/documents/shared-resources.js
index ebd0176..9bc1465 100644
--- a/app/addons/documents/shared-resources.js
+++ b/app/addons/documents/shared-resources.js
@@ -58,7 +58,7 @@ Documents.Doc = FauxtonAPI.Model.extend({
     return this.database ? this.database : this.collection.database;
   },
 
-  validate: function (attrs, options) {
+  validate: function (attrs) {
     if (this.id && this.id !== attrs._id && this.get('_rev')) {
       return "Cannot change a documents id.";
     }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/shared-routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/shared-routes.js b/app/addons/documents/shared-routes.js
index 956d502..01e3500 100644
--- a/app/addons/documents/shared-routes.js
+++ b/app/addons/documents/shared-routes.js
@@ -13,13 +13,10 @@
 import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Documents from "./shared-resources";
-import Databases from "../databases/base";
 import PaginationActions from "./pagination/actions";
 import IndexResultStores from "./index-results/stores";
 import SidebarActions from "./sidebar/actions";
 import QueryActions from './queryoptions/actions';
-import HeaderDocsLeft from './components/header-docs-left';
-
 
 // The Documents section is built up a lot of different route object which share code. This contains
 // base functionality that can be used across routes / addons
@@ -46,7 +43,7 @@ var BaseRoute = FauxtonAPI.RouteObject.extend({
     var promise = this.designDocs.fetch({reset: true}),
         hasReduceFunction;
 
-    promise.then((resp) => {
+    promise.then(() => {
       var design = _.findWhere(this.designDocs.models, {id: '_design/' + ddoc});
       !_.isUndefined(hasReduceFunction = design.attributes.doc.views[viewName].reduce);
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/sidebar/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/actions.js b/app/addons/documents/sidebar/actions.js
index 573c807..f865129 100644
--- a/app/addons/documents/sidebar/actions.js
+++ b/app/addons/documents/sidebar/actions.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 import Stores from "./stores.react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx b/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
index 5d1617b..68f6ade 100644
--- a/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
+++ b/app/addons/documents/sidebar/tests/sidebar.componentsSpec.react.jsx
@@ -9,13 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
 import utils from "../../../../../test/mocha/testUtils";
 import Components from "../sidebar.react";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 var assert = utils.assert;
 var DesignDoc = Components.DesignDoc;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/sidebar/tests/sidebar.storesSpec.js b/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
index 8edb848..e55eade 100644
--- a/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
+++ b/app/addons/documents/sidebar/tests/sidebar.storesSpec.js
@@ -12,7 +12,6 @@
 
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../stores.react";
-import ActionTypes from "../actiontypes";
 import testUtils from "../../../../../test/mocha/testUtils";
 var assert = testUtils.assert;
 var dispatchToken;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/document-test-helper.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/document-test-helper.js b/app/addons/documents/tests/document-test-helper.js
index 6822639..bb03781 100644
--- a/app/addons/documents/tests/document-test-helper.js
+++ b/app/addons/documents/tests/document-test-helper.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import Documents from "../resources";
 
 var opts = {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/helpersSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/helpersSpec.js b/app/addons/documents/tests/helpersSpec.js
index bbb6952..6c1d11f 100644
--- a/app/addons/documents/tests/helpersSpec.js
+++ b/app/addons/documents/tests/helpersSpec.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import Helpers from "../helpers";
 import testUtils from "../../../../test/mocha/testUtils";
 var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js b/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
index 4f0bfd9..88ac793 100644
--- a/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
+++ b/app/addons/documents/tests/nightwatch/createsDocumentWithoutId.js
@@ -17,7 +17,6 @@ module.exports = {
     /*jshint multistr: true */
     var waitTime = client.globals.maxWaitTime,
         newDatabaseName = client.globals.testDatabaseName,
-        newDocumentName = 'create_doc_document',
         baseUrl = client.globals.test_settings.launch_url;
 
     client

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js b/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
index 17a2488..e986306 100644
--- a/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
+++ b/app/addons/documents/tests/nightwatch/deleteDatabaseModal.js
@@ -17,14 +17,14 @@ module.exports = {
 
   before: function (client, done) {
     var nano = helpers.getNanoInstance(client.globals.test_settings.db_url);
-    nano.db.create('_replicator', function (err, body, header) {
+    nano.db.create('_replicator', function () {
       done();
     });
   },
 
   after: function (client, done) {
     var nano = helpers.getNanoInstance(client.globals.test_settings.db_url);
-    nano.db.destroy('_replicator', function (err, body, header) {
+    nano.db.destroy('_replicator', function () {
       done();
     });
   },

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/fixRegressionTableView.js b/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
index b697b20..8c3e4ce 100644
--- a/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
+++ b/app/addons/documents/tests/nightwatch/fixRegressionTableView.js
@@ -15,8 +15,7 @@
 module.exports = {
 
   'Does not crash the table view': function (client) {
-    var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = client.globals.testDatabaseName,
+    var newDatabaseName = client.globals.testDatabaseName,
         newDocumentName1 = 'bulktest1',
         newDocumentName2 = 'bulktest2',
         baseUrl = client.globals.test_settings.launch_url;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/nightwatch/viewCreate.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewCreate.js b/app/addons/documents/tests/nightwatch/viewCreate.js
index c142d99..2597b5d 100644
--- a/app/addons/documents/tests/nightwatch/viewCreate.js
+++ b/app/addons/documents/tests/nightwatch/viewCreate.js
@@ -16,7 +16,6 @@ module.exports = {
 
   'creates design docs with js hint errors': function (client) {
     const waitTime = client.globals.maxWaitTime;
-    const baseUrl = client.globals.test_settings.launch_url;
 
     /*jshint multistr: true */
     openDifferentDropdownsAndClick(client)
@@ -40,7 +39,6 @@ module.exports = {
 
   'Creates a Design Doc using the dropdown at "all documents"': function (client) {
     var waitTime = client.globals.maxWaitTime;
-    var baseUrl = client.globals.test_settings.launch_url;
 
     /*jshint multistr: true */
     openDifferentDropdownsAndClick(client)
@@ -64,7 +62,6 @@ module.exports = {
 
   'Creates a Design Doc and does not crash after navigating': function (client) {
     var waitTime = client.globals.maxWaitTime;
-    var baseUrl = client.globals.test_settings.launch_url;
 
     /*jshint multistr: true */
     openDifferentDropdownsAndClick(client)
@@ -90,7 +87,6 @@ module.exports = {
 
   'Creates a Design Doc using the dropdown at "the upper dropdown in the header"': function (client) {
     var waitTime = client.globals.maxWaitTime;
-    var baseUrl = client.globals.test_settings.launch_url;
 
     /*jshint multistr: true */
     openDifferentDropdownsAndClick(client)

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/nightwatch/viewCreateBadView.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/viewCreateBadView.js b/app/addons/documents/tests/nightwatch/viewCreateBadView.js
index 3057c6d..0cc2a6b 100644
--- a/app/addons/documents/tests/nightwatch/viewCreateBadView.js
+++ b/app/addons/documents/tests/nightwatch/viewCreateBadView.js
@@ -45,8 +45,7 @@ module.exports = {
   },
 
   'Visit url of broken view displays error': function (client) {
-    var waitTime = client.globals.maxWaitTime,
-        newDatabaseName = client.globals.testDatabaseName,
+    var newDatabaseName = client.globals.testDatabaseName,
         baseUrl = client.globals.test_settings.launch_url;
 
     client

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/resourcesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/resourcesSpec.js b/app/addons/documents/tests/resourcesSpec.js
index 524a760..48db6f8 100644
--- a/app/addons/documents/tests/resourcesSpec.js
+++ b/app/addons/documents/tests/resourcesSpec.js
@@ -280,8 +280,7 @@ describe('QueryParams', function () {
         key:'[\"a\",\"b\"]'
       };
       var clone = _.clone(params);
-      var result = Models.QueryParams.parse(params);
-
+      Models.QueryParams.parse(params);
       assert.deepEqual(params, clone);
     });
   });
@@ -318,7 +317,7 @@ describe('QueryParams', function () {
     it('does not modify input', function () {
       var params = {'key': ['a', 'b']};
       var clone = _.clone(params);
-      var result = Models.QueryParams.stringify(params);
+      Models.QueryParams.stringify(params);
 
       assert.deepEqual(params, clone);
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/tests/routeSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/routeSpec.js b/app/addons/documents/tests/routeSpec.js
deleted file mode 100644
index 57bf9aa..0000000
--- a/app/addons/documents/tests/routeSpec.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// Licensed under the Apache License, Version 2.0 (the "License"); you may not
-// use this file except in compliance with the License. You may obtain a copy of
-// the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-// License for the specific language governing permissions and limitations under
-// the License.
-
-import FauxtonAPI from "../../../core/api";
-import Base from "../base";
-import Documents from "../routes";
-import HeaderActions from "../header/header.actions";
-import IndexResultsActions from "../index-results/actions";
-import testUtils from "../../../../test/mocha/testUtils";
-var assert = testUtils.assert;
-var DocumentRoute = Documents.RouteObjects[2];
-
-//commenting out for now. This test adds little value and is breaking the routeObjectSpecs
-describe('Documents Route', function () {
-
-  /*it('the all-documents-list has a right header', function () {
-     var routeObj = new DocumentRoute(null, null, ['test']);
-
-     routeObj.allDocs('newdatabase', null);
-    assert.equal(typeof routeObj.rightHeader, 'object');
-
-  });*/
-
-});
-
-//    until there is consensus on how to encode json responses
-//    https://issues.apache.org/jira/browse/COUCHDB-2748
-//    taking out this test for https://github.com/apache/couchdb-fauxton/pull/489
-
-//describe('Fauxton Urls', function () {
-// it('document app encodes document id', function () {
-//   var id = "\foo";
-//   var url = FauxtonAPI.urls('document', 'app', 'fake-db', id);
-//   assert.deepEqual("/database/fake-db/%0Coo", url);
-// });
-//});

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/appwrapper.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/appwrapper.js b/app/addons/fauxton/appwrapper.js
index b2cd9fc..124c5e9 100644
--- a/app/addons/fauxton/appwrapper.js
+++ b/app/addons/fauxton/appwrapper.js
@@ -11,8 +11,6 @@
 // the License.
 
 import React from 'react';
-import FauxtonAPI from '../../core/api';
-import ComponentActions from '../components/actions';
 import {NotificationController} from "./notifications/notifications.react";
 import {NavBar} from './navigation/components.react';
 import NavbarActions from './navigation/actions';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/base.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/base.js b/app/addons/fauxton/base.js
index 0509717..fa83b97 100644
--- a/app/addons/fauxton/base.js
+++ b/app/addons/fauxton/base.js
@@ -12,14 +12,7 @@
 
 import app from "../../app";
 import FauxtonAPI from "../../core/api";
-import React from "react";
-import NotificationComponents from "./notifications/notifications.react";
-import Actions from "./notifications/actions";
-import NavbarReactComponents from "./navigation/components.react";
 import NavigationActions from "./navigation/actions";
-import ReactComponents from "../components/react-components.react";
-import ComponentActions from "../components/actions";
-import {Breadcrumbs} from '../components/header-breadcrumbs';
 
 import "./assets/less/fauxton.less";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/components.react.jsx b/app/addons/fauxton/components.react.jsx
index dc85481..8bc71c9 100644
--- a/app/addons/fauxton/components.react.jsx
+++ b/app/addons/fauxton/components.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/navigation/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/navigation/actions.js b/app/addons/fauxton/navigation/actions.js
index 4870d1d..3548157 100644
--- a/app/addons/fauxton/navigation/actions.js
+++ b/app/addons/fauxton/navigation/actions.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/navigation/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/navigation/components.react.jsx b/app/addons/fauxton/navigation/components.react.jsx
index 6e61015..e734568 100644
--- a/app/addons/fauxton/navigation/components.react.jsx
+++ b/app/addons/fauxton/navigation/components.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/navigation/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/navigation/tests/componentsSpec.react.jsx b/app/addons/fauxton/navigation/tests/componentsSpec.react.jsx
index fc8d349..ba37364 100644
--- a/app/addons/fauxton/navigation/tests/componentsSpec.react.jsx
+++ b/app/addons/fauxton/navigation/tests/componentsSpec.react.jsx
@@ -11,13 +11,11 @@
 // the License.
 import FauxtonAPI from "../../../../core/api";
 import Views from "../components.react";
-import Actions from "../actions";
 import Auth from "../../../../core/auth";
 import BaseAuth from "../../../auth/base";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
-import TestUtils from "react-addons-test-utils";
 import sinon from "sinon";
 import {mount} from 'enzyme';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/notifications/notifications.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/notifications/notifications.react.jsx b/app/addons/fauxton/notifications/notifications.react.jsx
index 37f5848..adb20c2 100644
--- a/app/addons/fauxton/notifications/notifications.react.jsx
+++ b/app/addons/fauxton/notifications/notifications.react.jsx
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
-import FauxtonAPI from "../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
 import Actions from "./actions";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/notifications/tests/actionsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/notifications/tests/actionsSpec.js b/app/addons/fauxton/notifications/tests/actionsSpec.js
index 8d61628..3f9540c 100644
--- a/app/addons/fauxton/notifications/tests/actionsSpec.js
+++ b/app/addons/fauxton/notifications/tests/actionsSpec.js
@@ -9,14 +9,12 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../../core/api";
 import Views from "../notifications.react";
 import Stores from "../stores";
 import Actions from "../actions";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
-import moment from "moment";
 import TestUtils from "react-addons-test-utils";
 import "sinon";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/notifications/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/notifications/tests/componentsSpec.react.jsx b/app/addons/fauxton/notifications/tests/componentsSpec.react.jsx
index 13d5c40..9db2a92 100644
--- a/app/addons/fauxton/notifications/tests/componentsSpec.react.jsx
+++ b/app/addons/fauxton/notifications/tests/componentsSpec.react.jsx
@@ -12,7 +12,6 @@
 import FauxtonAPI from "../../../../core/api";
 import Views from "../notifications.react";
 import Stores from "../stores";
-import Actions from "../actions";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/notifications/tests/storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/notifications/tests/storesSpec.js b/app/addons/fauxton/notifications/tests/storesSpec.js
index 57d4afc..47d35de 100644
--- a/app/addons/fauxton/notifications/tests/storesSpec.js
+++ b/app/addons/fauxton/notifications/tests/storesSpec.js
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../../app";
-import FauxtonAPI from "../../../../core/api";
 import utils from "../../../../../test/mocha/testUtils";
 import Stores from "../stores";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/fauxton/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/fauxton/tests/componentsSpec.react.jsx b/app/addons/fauxton/tests/componentsSpec.react.jsx
index c33555d..6f23e38 100644
--- a/app/addons/fauxton/tests/componentsSpec.react.jsx
+++ b/app/addons/fauxton/tests/componentsSpec.react.jsx
@@ -9,14 +9,12 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import Views from "../components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
 import sinon from "sinon";
-import { mount } from 'enzyme';
 var assert = utils.assert;
 
 describe('Pagination', function () {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/actions.js b/app/addons/permissions/actions.js
index 0a49cc0..8da6a4b 100644
--- a/app/addons/permissions/actions.js
+++ b/app/addons/permissions/actions.js
@@ -11,8 +11,6 @@
 // the License.
 
 import FauxtonAPI from "../../core/api";
-import ActionTypes from "./actiontypes";
-import Promise from 'bluebird';
 import 'whatwg-fetch';
 import { isValueAlreadySet, addValueToPermissions } from './helpers';
 
@@ -29,7 +27,6 @@ export const receivedPermissions = json => {
   };
 };
 
-
 export const fetchPermissions = url => dispatch => {
   return fetch(url, { headers: { 'Accept': 'application/json' }})
     .then(res => res.json())
@@ -59,7 +56,7 @@ export const deletePermissionFromObject = (p, section, type, value) => {
 };
 
 export const updatePermission = (url, permissions, section, type, value) => dispatch => {
-  const res = setPermissionOnObject(permissions, section, type, value);
+  setPermissionOnObject(permissions, section, type, value);
 
   updatePermissionUnsafe(url, permissions, dispatch)
     .catch((err) => {
@@ -71,7 +68,7 @@ export const updatePermission = (url, permissions, section, type, value) => disp
 };
 
 export const deletePermission = (url, permissions, section, type, value) => dispatch => {
-  const res = deletePermissionFromObject(permissions, section, type, value);
+  deletePermissionFromObject(permissions, section, type, value);
 
   updatePermissionUnsafe(url, permissions, dispatch)
     .catch((err) => {
@@ -99,7 +96,7 @@ export const updatePermissionUnsafe = (url, p, dispatch) => {
     }
     return json;
   })
-  .then((json) => {
+  .then(() => {
     FauxtonAPI.addNotification({
       msg: 'Database permissions has been updated.'
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/base.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/base.js b/app/addons/permissions/base.js
index 5123112..0efe12b 100644
--- a/app/addons/permissions/base.js
+++ b/app/addons/permissions/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Permissions from "./routes";
 import reducer from './reducers';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/components/PermissionsItem.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/components/PermissionsItem.js b/app/addons/permissions/components/PermissionsItem.js
index 6c03456..c723219 100644
--- a/app/addons/permissions/components/PermissionsItem.js
+++ b/app/addons/permissions/components/PermissionsItem.js
@@ -10,7 +10,7 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import React, { Component, PropTypes } from 'react';
+import React, { PropTypes } from 'react';
 
 const PermissionsItem = ({removeItem, section, type, value}) =>�{
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/components/PermissionsScreen.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/components/PermissionsScreen.js b/app/addons/permissions/components/PermissionsScreen.js
index 12bf0ad..82ff1b5 100644
--- a/app/addons/permissions/components/PermissionsScreen.js
+++ b/app/addons/permissions/components/PermissionsScreen.js
@@ -11,7 +11,7 @@
 // the License.
 
 import FauxtonAPI from '../../../core/api';
-import React, { Component, PropTypes } from 'react';
+import React, { Component } from 'react';
 
 import PermissionsSection from './PermissionsSection';
 import { updatePermission, deletePermission } from '../actions';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/components/PermissionsSection.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/components/PermissionsSection.js b/app/addons/permissions/components/PermissionsSection.js
index 95eb9bf..3813f5a 100644
--- a/app/addons/permissions/components/PermissionsSection.js
+++ b/app/addons/permissions/components/PermissionsSection.js
@@ -10,7 +10,7 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import React, { Component, PropTypes } from 'react';
+import React from 'react';
 
 import FauxtonAPI from '../../../core/api';
 import app from '../../../app';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/layout.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/layout.js b/app/addons/permissions/layout.js
index 84bd27c..ed0c3a9 100644
--- a/app/addons/permissions/layout.js
+++ b/app/addons/permissions/layout.js
@@ -11,7 +11,6 @@
 // the License.
 
 import React from 'react';
-import FauxtonAPI from "../../core/api";
 import {TabsSidebarHeader} from '../documents/layouts';
 import PermissionsContainer from './container/PermissionsContainer';
 import SidebarComponents from "../documents/sidebar/sidebar.react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/permissions/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/routes.js b/app/addons/permissions/routes.js
index 5025daa..404a16f 100644
--- a/app/addons/permissions/routes.js
+++ b/app/addons/permissions/routes.js
@@ -14,7 +14,6 @@ import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Databases from "../databases/base";
 
-import Actions from "./actions";
 import BaseRoute from "../documents/shared-routes";
 import Layout from './layout';
 import React from 'react';
@@ -26,7 +25,7 @@ const PermissionsRouteObject = BaseRoute.extend({
     'database/:database/permissions': 'permissions'
   },
 
-  initialize: function (route, options) {
+  initialize: function () {
     const docOptions = app.getParams();
 
     docOptions.include_docs = true;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/actions.js b/app/addons/replication/actions.js
index b40dabb..cdf5bfb 100644
--- a/app/addons/replication/actions.js
+++ b/app/addons/replication/actions.js
@@ -231,16 +231,6 @@ const hideConflictModal = () => {
   });
 };
 
-const updateUsernameAndPassword = (username, password) => {
-  FauxtonAPI.dispatch({
-    type: ActionTypes.REPLICATION_USERNAME_PASSWORD,
-    options: {
-      username,
-      password
-    }
-  });
-};
-
 const changeActivitySort = (sort) => {
   FauxtonAPI.dispatch({
     type: ActionTypes.REPLICATION_CHANGE_ACTIVITY_SORT,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/api.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/api.js b/app/addons/replication/api.js
index 26dd4fd..4e969cb 100644
--- a/app/addons/replication/api.js
+++ b/app/addons/replication/api.js
@@ -203,7 +203,7 @@ export const checkReplicationDocID = (docId) => {
     url: `/_replicator/${docId}`,
     contentType: 'application/json; charset=utf-8',
     dataType: 'json',
-  }).then((res) => {
+  }).then(() => {
     promise.resolve(true);
   }, function (xhr) {
     if (xhr.statusText === "Object Not Found") {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/base.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/base.js b/app/addons/replication/base.js
index cdb5b6b..d9ad42a 100644
--- a/app/addons/replication/base.js
+++ b/app/addons/replication/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from '../../app';
 import FauxtonAPI from '../../core/api';
 import replication from './route';
 import './assets/less/replication.less';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/activity.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/activity.js b/app/addons/replication/components/activity.js
index be8fe24..e50f1b8 100644
--- a/app/addons/replication/components/activity.js
+++ b/app/addons/replication/components/activity.js
@@ -12,7 +12,6 @@
 import React from 'react';
 import {Table} from "react-bootstrap";
 import moment from 'moment';
-import app from '../../../app';
 import {DeleteModal, ErrorModal} from './modals';
 
 const formatUrl = (url) => {
@@ -257,7 +256,7 @@ class ReplicationTable extends React.Component {
   }
 
   onSort (column) {
-    return (e) => {
+    return () => {
       this.props.changeSort({
         descending: column === this.props.column ? !this.props.descending : true,
         column

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/modals.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/modals.js b/app/addons/replication/components/modals.js
index c02f31b..b51616e 100644
--- a/app/addons/replication/components/modals.js
+++ b/app/addons/replication/components/modals.js
@@ -66,7 +66,7 @@ DeleteModal.propTypes = {
   multipleDocs: React.PropTypes.number.isRequired
 };
 
-export const ErrorModal = ({visible, onClose, errorMsg, onClick}) => {
+export const ErrorModal = ({visible, onClose, errorMsg}) => {
 
   if (!visible) {
     return null;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/newreplication.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/newreplication.js b/app/addons/replication/components/newreplication.js
index e274fa7..1ad7680 100644
--- a/app/addons/replication/components/newreplication.js
+++ b/app/addons/replication/components/newreplication.js
@@ -86,7 +86,6 @@ export default class NewReplicationController extends React.Component {
       remoteTarget,
       remoteSource,
       replicationTarget,
-      replicationSource,
       localTarget,
       localSource,
       databases

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/options.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/options.js b/app/addons/replication/components/options.js
index acb2501..2eaabcb 100644
--- a/app/addons/replication/components/options.js
+++ b/app/addons/replication/components/options.js
@@ -12,7 +12,6 @@
 import React from 'react';
 import Constants from '../constants';
 import Components from '../../components/react-components.react';
-import ReactSelect from 'react-select';
 
 const { StyledSelect } = Components;
 
@@ -52,7 +51,7 @@ const ReplicationDoc = ({value, onChange}) =>
   </div>
   <div className="replication__doc-name">
     <span className="fonticon fonticon-cancel replication__doc-name-icon" title="Clear field"
-      onClick={(e) => onChange('')} />
+      onClick={() => onChange('')} />
     <input
       type="text"
       className="replication__doc-name-input"

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/source.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/source.js b/app/addons/replication/components/source.js
index e73f75d..24d0d3c 100644
--- a/app/addons/replication/components/source.js
+++ b/app/addons/replication/components/source.js
@@ -146,8 +146,7 @@ export class ReplicationSource extends React.Component {
   }
 
   render () {
-    const {replicationSource, onSourceSelect, localSource, remoteSource, databases} = this.props;
-    const Actions = {};
+    const {replicationSource, onSourceSelect} = this.props;
     return (
       <div>
         <ReplicationSourceSelect

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/components/submit.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/components/submit.js b/app/addons/replication/components/submit.js
index 3c9281c..cc921b3 100644
--- a/app/addons/replication/components/submit.js
+++ b/app/addons/replication/components/submit.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 import React from 'react';
-import Constants from '../constants';
 import Components from '../../components/react-components.react';
 
 const {ConfirmButton} = Components;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/controller.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/controller.js b/app/addons/replication/controller.js
index 90e59da..30b248d 100644
--- a/app/addons/replication/controller.js
+++ b/app/addons/replication/controller.js
@@ -10,20 +10,16 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 import React from 'react';
-import app from '../../app';
-import FauxtonAPI from '../../core/api';
 import Stores from './stores';
 import Actions from './actions';
 import AuthActions from '../auth/actions';
-import Constants from './constants';
-import base64 from 'base-64';
 import Components from '../components/react-components.react';
 import NewReplication from './components/newreplication';
 import Activity from './components/activity';
 import {checkReplicationDocID} from './api';
 import {OnePane, OnePaneHeader, OnePaneContent} from '../components/layouts';
 
-const {LoadLines, ConfirmButton, Polling, RefreshBtn} = Components;
+const {LoadLines, Polling, RefreshBtn} = Components;
 
 const store = Stores.replicationStore;
 
@@ -92,7 +88,7 @@ export default class ReplicationController extends React.Component {
     const {
       replicationSource, replicationTarget, replicationType, replicationDocName,
       passwordModalVisible, databases, localSource, remoteSource, remoteTarget,
-      localTarget, selectedTab, statusDocs, statusFilter, loading, allDocsSelected,
+      localTarget, statusDocs, statusFilter, loading, allDocsSelected,
       someDocsSelected, showConflictModal, localSourceKnown, localTargetKnown,
       username, password, authenticated, activityLoading, submittedNoChange, activitySort
     } = this.state;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/route.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/route.js b/app/addons/replication/route.js
index 5c0b16c..70b66a4 100644
--- a/app/addons/replication/route.js
+++ b/app/addons/replication/route.js
@@ -13,7 +13,6 @@
 import React from 'react';
 import FauxtonAPI from '../../core/api';
 import ReplicationController from './controller';
-import ComponentActions from '../components/actions';
 
 const ReplicationRouteObject = FauxtonAPI.RouteObject.extend({
   routes: {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/tests/apiSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/tests/apiSpec.js b/app/addons/replication/tests/apiSpec.js
index ef8bc39..eb13c57 100644
--- a/app/addons/replication/tests/apiSpec.js
+++ b/app/addons/replication/tests/apiSpec.js
@@ -151,8 +151,6 @@ describe('Replication API', () => {
     });
 
     it('does not add doc id if it does not exists', () => {
-      const docId = 'docId';
-
       assert.deepEqual(
         addDocIdAndRev(null, null, {}), {});
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/tests/newreplicationSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/tests/newreplicationSpec.js b/app/addons/replication/tests/newreplicationSpec.js
index 81246b9..fe3cf9e 100644
--- a/app/addons/replication/tests/newreplicationSpec.js
+++ b/app/addons/replication/tests/newreplicationSpec.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 import React from "react";
-import TestUtils from "react-addons-test-utils";
 import utils from "../../../../test/mocha/testUtils";
 import FauxtonAPI from '../../../core/api';
 import { mount } from 'enzyme';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/tests/nightwatch/replication.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/tests/nightwatch/replication.js b/app/addons/replication/tests/nightwatch/replication.js
index 33f58e1..ba852d5 100644
--- a/app/addons/replication/tests/nightwatch/replication.js
+++ b/app/addons/replication/tests/nightwatch/replication.js
@@ -24,7 +24,7 @@ const destroyDBsAndCreateReplicator = (client, done) => {
   nano.db.destroy(newDatabaseName1, () => {
     nano.db.destroy(newDatabaseName2, () => {
       nano.db.destroy(replicatedDBName, () => {
-        nano.db.create('_replicator', function (err, body, header) {
+        nano.db.create('_replicator', function () {
           done();
         });
       });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/replication/tests/nightwatch/replicationactivity.js
----------------------------------------------------------------------
diff --git a/app/addons/replication/tests/nightwatch/replicationactivity.js b/app/addons/replication/tests/nightwatch/replicationactivity.js
index 22bfbee..1c85479 100644
--- a/app/addons/replication/tests/nightwatch/replicationactivity.js
+++ b/app/addons/replication/tests/nightwatch/replicationactivity.js
@@ -16,7 +16,6 @@ module.exports = {
   'Can view doc': client => {
     const waitTime = client.globals.maxWaitTime;
     const baseUrl = client.globals.test_settings.launch_url;
-    const password = client.globals.test_settings.password;
 
     const replicatorDoc = {
       _id: 'existing-doc-id-view-doc',
@@ -41,7 +40,6 @@ module.exports = {
   'Can edit doc': client => {
     const waitTime = client.globals.maxWaitTime;
     const baseUrl = client.globals.test_settings.launch_url;
-    const password = client.globals.test_settings.password;
 
     const replicatorDoc = {
       _id: 'existing-doc-id-edit-doc',
@@ -66,7 +64,6 @@ module.exports = {
   'Can filter docs': client => {
     const waitTime = client.globals.maxWaitTime;
     const baseUrl = client.globals.test_settings.launch_url;
-    const password = client.globals.test_settings.password;
 
     const replicatorDoc1 = {
       _id: 'existing-doc-id-filter1',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/setup/base.js
----------------------------------------------------------------------
diff --git a/app/addons/setup/base.js b/app/addons/setup/base.js
index 918532a..789e52b 100644
--- a/app/addons/setup/base.js
+++ b/app/addons/setup/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Setup from "./route";
 import "./assets/less/setup.less";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/setup/setup.actions.js
----------------------------------------------------------------------
diff --git a/app/addons/setup/setup.actions.js b/app/addons/setup/setup.actions.js
index bdafc32..79d9ef9 100644
--- a/app/addons/setup/setup.actions.js
+++ b/app/addons/setup/setup.actions.js
@@ -10,12 +10,9 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 import FauxtonAPI from "../../core/api";
-import ConfigResources from "../config/resources";
 import SetupResources from "./resources";
 import ActionTypes from "./setup.actiontypes";
-import ClusterStores from "../cluster/cluster.stores";
 import SetupStores from "./setup.stores";
-var nodesStore = ClusterStores.nodesStore;
 var setupStore = SetupStores.setupStore;
 
 export default {
@@ -44,7 +41,7 @@ export default {
         action: 'finish_cluster'
       })
     })
-    .success(function (res) {
+    .success(function () {
       FauxtonAPI.addNotification({
         msg: message,
         type: 'success',
@@ -65,8 +62,6 @@ export default {
   },
 
   setupSingleNode: function () {
-    var nodes = nodesStore.getNodes();
-    var isAdminParty = setupStore.getIsAdminParty();
     var username = setupStore.getUsername();
     var password = setupStore.getPassword();
 
@@ -140,15 +135,6 @@ export default {
       delete additionalNodeData.remote_current_password;
     }
 
-    function dontGiveUp (f, u, p) {
-      return f(u, p).then(
-        undefined,
-        function (err) {
-          return dontGiveUp(f, u, p);
-        }
-      );
-    }
-
     var additionalNode = new SetupResources.Model(additionalNodeData);
 
     additionalNode.on('invalid', function (model, error) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/setup/tests/setupSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/setup/tests/setupSpec.js b/app/addons/setup/tests/setupSpec.js
index 522e67d..0e0b2d1 100644
--- a/app/addons/setup/tests/setupSpec.js
+++ b/app/addons/setup/tests/setupSpec.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import Resources from "../resources";
 import testUtils from "../../../../test/mocha/testUtils";
 var assert = testUtils.assert,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/actions.js b/app/addons/verifyinstall/actions.js
index 7cf5228..c8acc55 100644
--- a/app/addons/verifyinstall/actions.js
+++ b/app/addons/verifyinstall/actions.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Constants from "./constants";
 import VerifyInstall from "./resources";
@@ -27,7 +26,7 @@ var testPassed = function (test) {
 };
 
 var testFailed = function (test) {
-  return function (xhr, error) {
+  return function (xhr) {
     if (!xhr) { return; }
 
     FauxtonAPI.dispatch({

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/base.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/base.js b/app/addons/verifyinstall/base.js
index b9d9aac..1949575 100644
--- a/app/addons/verifyinstall/base.js
+++ b/app/addons/verifyinstall/base.js
@@ -10,10 +10,10 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import VerifyInstall from "./routes";
 import "./assets/less/verifyinstall.less";
+
 VerifyInstall.initialize = function () {
   FauxtonAPI.addHeaderLink({
     title: 'Verify',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/components.react.jsx b/app/addons/verifyinstall/components.react.jsx
index 2b6bd54..366a6df 100644
--- a/app/addons/verifyinstall/components.react.jsx
+++ b/app/addons/verifyinstall/components.react.jsx
@@ -10,18 +10,14 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import React from "react";
 import Constants from "./constants";
-import VerifyInstall from "./resources";
 import Actions from "./actions";
 import Stores from "./stores";
 
-var store = Stores.verifyInstallStore;
+const store = Stores.verifyInstallStore;
 
-
-var VerifyInstallController = React.createClass({
+const VerifyInstallController = React.createClass({
   getInitialState: function () {
     return this.getStoreState();
   },

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/resources.js b/app/addons/verifyinstall/resources.js
index 8a432c1..2025245 100644
--- a/app/addons/verifyinstall/resources.js
+++ b/app/addons/verifyinstall/resources.js
@@ -55,7 +55,7 @@ Verifyinstall.testProcess = {
     db.fetch()
     .then(function () {
       return db.destroy();
-    }, function (xhr) {
+    }, function () {
       deferred.resolve();
     })
     .then(function () {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/routes.js b/app/addons/verifyinstall/routes.js
index 73bfae2..8c8c703 100644
--- a/app/addons/verifyinstall/routes.js
+++ b/app/addons/verifyinstall/routes.js
@@ -11,7 +11,6 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import VerifyInstall from "./resources";
 import Actions from "./actions";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/tests/actionsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/tests/actionsSpec.js b/app/addons/verifyinstall/tests/actionsSpec.js
index 5560d78..22da53e 100644
--- a/app/addons/verifyinstall/tests/actionsSpec.js
+++ b/app/addons/verifyinstall/tests/actionsSpec.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import testUtils from "../../../../test/mocha/testUtils";
 import Stores from "../stores";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/tests/componentsSpec.react.jsx b/app/addons/verifyinstall/tests/componentsSpec.react.jsx
index 4067bd4..b38e7cc 100644
--- a/app/addons/verifyinstall/tests/componentsSpec.react.jsx
+++ b/app/addons/verifyinstall/tests/componentsSpec.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/verifyinstall/tests/verifyinstall.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/verifyinstall/tests/verifyinstall.storesSpec.js b/app/addons/verifyinstall/tests/verifyinstall.storesSpec.js
index eeddf7d..23e29f6 100644
--- a/app/addons/verifyinstall/tests/verifyinstall.storesSpec.js
+++ b/app/addons/verifyinstall/tests/verifyinstall.storesSpec.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import testUtils from "../../../../test/mocha/testUtils";
 import Stores from "../stores";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/app.js
----------------------------------------------------------------------
diff --git a/app/app.js b/app/app.js
index 939418c..5b594eb 100644
--- a/app/app.js
+++ b/app/app.js
@@ -9,12 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-
 import app from "./initialize";
 import $ from "jquery";
+window.$ = $;
 import _ from "lodash";
-import Backbone from "backbone";
-import Bootstrap from "bootstrap";
+import "bootstrap";
 import Helpers from "./helpers";
 import Utils from "./core/utils";
 import FauxtonAPI from "./core/api";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/core/auth.js
----------------------------------------------------------------------
diff --git a/app/core/auth.js b/app/core/auth.js
index 5af442b..e296c39 100644
--- a/app/core/auth.js
+++ b/app/core/auth.js
@@ -27,10 +27,9 @@ _.extend(Auth.prototype, Backbone.Events, {
   authDeniedCb: function () {},
 
   initialize: function () {
-    var that = this;
   },
 
-  authHandlerCb : function (roles) {
+  authHandlerCb : function () {
     var deferred = $.Deferred();
     deferred.resolve();
     return deferred;
@@ -52,7 +51,7 @@ _.extend(Auth.prototype, Backbone.Events, {
       throw new Error("Fauxton.session is not configured.");
     }
 
-    return FauxtonAPI.session.fetchUser().then(function (user) {
+    return FauxtonAPI.session.fetchUser().then(function () {
       return FauxtonAPI.when(that.authHandlerCb(FauxtonAPI.session, requiredRoles));
     });
   }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/core/routeObject.js
----------------------------------------------------------------------
diff --git a/app/core/routeObject.js b/app/core/routeObject.js
index 59f0670..96382df 100644
--- a/app/core/routeObject.js
+++ b/app/core/routeObject.js
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import FauxtonAPI from "./base";
-import React from "react";
 import ReactDOM from "react-dom";
 import Backbone from "backbone";
 import _ from "lodash";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/core/tests/couchdbSessionSpec.js
----------------------------------------------------------------------
diff --git a/app/core/tests/couchdbSessionSpec.js b/app/core/tests/couchdbSessionSpec.js
index 7155037..7203b36 100644
--- a/app/core/tests/couchdbSessionSpec.js
+++ b/app/core/tests/couchdbSessionSpec.js
@@ -9,11 +9,9 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import app from "../../app";
 import FauxtonAPI from "../api";
 import testUtils from "../../../test/mocha/testUtils";
 import sinon from "sinon";
-var assert = testUtils.assert;
 
 describe('CouchDBSession', function () {
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/core/tests/utilsSpec.js
----------------------------------------------------------------------
diff --git a/app/core/tests/utilsSpec.js b/app/core/tests/utilsSpec.js
index 326e8ab..ddc6b46 100644
--- a/app/core/tests/utilsSpec.js
+++ b/app/core/tests/utilsSpec.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../api";
 import testUtils from "../../../test/mocha/testUtils";
 import utils from "../utils";
 var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/core/utils.js
----------------------------------------------------------------------
diff --git a/app/core/utils.js b/app/core/utils.js
index 014e233..584444f 100644
--- a/app/core/utils.js
+++ b/app/core/utils.js
@@ -21,9 +21,7 @@
 import $ from "jquery";
 import _ from "lodash";
 
-var onWindowResize = {};
-
-var utils = {
+const utils = {
 
   // Thanks to: http://stackoverflow.com/a/2880929
   getParams: function (queryString) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/helpers.js
----------------------------------------------------------------------
diff --git a/app/helpers.js b/app/helpers.js
index 9310ffc..2991bcf 100644
--- a/app/helpers.js
+++ b/app/helpers.js
@@ -19,7 +19,6 @@
 
 import constants from "./constants";
 import utils from "./core/utils";
-import d3 from "d3";
 import moment from "moment";
 import _ from 'lodash';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/bin/remove-test-dbs.js
----------------------------------------------------------------------
diff --git a/bin/remove-test-dbs.js b/bin/remove-test-dbs.js
index 92a7491..ac7a8dc 100755
--- a/bin/remove-test-dbs.js
+++ b/bin/remove-test-dbs.js
@@ -31,7 +31,7 @@ nano.db.list((err, body) => {
   }).map(db => {
     return (cb) => {
       console.log('removing', db);
-      nano.db.destroy(db, (err, resp) => {
+      nano.db.destroy(db, (err) => {
         if (err) {
           cb(err);
           return;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/couchapp.js
----------------------------------------------------------------------
diff --git a/couchapp.js b/couchapp.js
index 22ecc96..7aad7e1 100644
--- a/couchapp.js
+++ b/couchapp.js
@@ -27,7 +27,7 @@ ddoc = {
   views: {},
   shows: {},
   lists: {},
-  validate_doc_update: function (newDoc, oldDoc, userCtx) {
+  validate_doc_update: function () {
     /*if (newDoc._deleted === true && userCtx.roles.indexOf('_admin') === -1) {
       throw "Only admin can delete documents on this database.";
     }*/

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/devserver.js
----------------------------------------------------------------------
diff --git a/devserver.js b/devserver.js
index 96f3ebd..4e2f881 100644
--- a/devserver.js
+++ b/devserver.js
@@ -1,7 +1,5 @@
 var spawn = require('child_process').spawn;
-var path = require("path");
 var fs = require("fs");
-var _ = require('lodash');
 var webpack = require('webpack');
 var WebpackDev = require('webpack-dev-server');
 var config = require('./webpack.config.dev.js');
@@ -66,12 +64,6 @@ function getCspHeaders () {
 };
 
 var runWebpackServer = function () {
-  var fileTypes = ['.js', '.css', '.png', '.swf', '.eot', '.woff', '.svg', '.ttf', '.swf'];
-  function isFile (url) {
-    return _.contains(fileTypes, path.extname(url));
-  }
-
-
   var options = {
     contentBase: __dirname + '/dist/debug',
     publicPath: '/',
@@ -96,17 +88,17 @@ var runWebpackServer = function () {
     target: settings.proxy.target
   });
 
-  proxy.on('proxyRes', function (proxyRes, req, res) {
+  proxy.on('proxyRes', function (proxyRes) {
     if (proxyRes.headers['set-cookie']) {
       proxyRes.headers['set-cookie'][0] = proxyRes.headers["set-cookie"][0].replace('Secure', '');
     }
   });
 
-  proxy.on('error', function (e) {
+  proxy.on('error', function () {
     // don't explode on cancelled requests
   });
 
-  server.app.all('*', function (req, res, next) {
+  server.app.all('*', function (req, res) {
     proxy.web(req, res);
   });
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/index.js
----------------------------------------------------------------------
diff --git a/index.js b/index.js
index 5ad25fe..c50506f 100644
--- a/index.js
+++ b/index.js
@@ -69,13 +69,13 @@ module.exports = function (options) {
     proxy.web(req, res);
   }).listen(port, '0.0.0.0');
 
-  proxy.on('error', function (e) {
+  proxy.on('error', () => {
     // don't explode on cancelled requests
   });
 
   //Remove Secure on the cookie if the proxy is communicating to a CouchDB instance
   // via https.
-  proxy.on('proxyRes', function (proxyRes, req, res) {
+  proxy.on('proxyRes', function (proxyRes) {
     if (proxyRes.headers['set-cookie']) {
       proxyRes.headers['set-cookie'][0] = proxyRes.headers["set-cookie"][0].replace('Secure', '');
     }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/jest-setup.js
----------------------------------------------------------------------
diff --git a/jest-setup.js b/jest-setup.js
index 0eca991..6d567f6 100644
--- a/jest-setup.js
+++ b/jest-setup.js
@@ -10,7 +10,7 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-const jest = require('jest');
+require('jest');
 
 window.$ = window.jQuery = require('jquery');
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/tasks/fauxton.js
----------------------------------------------------------------------
diff --git a/tasks/fauxton.js b/tasks/fauxton.js
index abfaf9d..d929e89 100644
--- a/tasks/fauxton.js
+++ b/tasks/fauxton.js
@@ -23,7 +23,7 @@ module.exports = function (grunt) {
     grunt.file.write(data.dest, tmpl(data.variables));
   });
 
-  grunt.registerMultiTask('get_deps', 'Fetch external dependencies', function (version) {
+  grunt.registerMultiTask('get_deps', 'Fetch external dependencies', function () {
 
     grunt.log.writeln('Fetching external dependencies');
     var done = this.async(),
@@ -58,7 +58,7 @@ module.exports = function (grunt) {
 
     var localDeps = _.filter(settings.deps, function (dep) { return !! dep.path; });
     grunt.log.writeln(localDeps.length + ' local dependencies');
-    var local = fetch(localDeps, function (dep, destination) {
+    fetch(localDeps, function (dep, destination) {
       // TODO: Windows
       var command = 'cp -r ' + dep.path + '/ ' + destination + '/';
       grunt.log.writeln(command);
@@ -112,7 +112,6 @@ module.exports = function (grunt) {
 
   grunt.registerMultiTask('mochaSetup', 'Generate a config.js and runner.html for tests', function () {
     var data = this.data,
-        configInfo,
         _ = grunt.util._,
         configTemplateSrc = data.template;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/tasks/helper.js
----------------------------------------------------------------------
diff --git a/tasks/helper.js b/tasks/helper.js
index 696e1c0..70d4e12 100644
--- a/tasks/helper.js
+++ b/tasks/helper.js
@@ -17,8 +17,7 @@ exports.devServerPort = 8000;
 exports.couch = 'http://couch:5984/';
 
 exports.init = function (grunt) {
-  var _ = grunt.util._,
-      platform = process.platform;
+  var _ = grunt.util._;
 
   return {
     readSettingsFile: function () {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/test/dev.js
----------------------------------------------------------------------
diff --git a/test/dev.js b/test/dev.js
index 1ed718b..8fdf4c5 100644
--- a/test/dev.js
+++ b/test/dev.js
@@ -13,7 +13,7 @@
 
 // This will search for files ending in .test.js and require them
 // so that they are added to the webpack bundle
-var context = require.context('../app/addons/warehouse/tests', true, /warehouse.edit.component[Ss]pec/);
+var context = require.context('../app/addons/documents/index-results/tests', true, /index-results.stores[Ss]pec/);
 console.log('Testing files', context.keys());
 context.keys().forEach(context);
 module.exports = context;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/webpack.config.dev.js
----------------------------------------------------------------------
diff --git a/webpack.config.dev.js b/webpack.config.dev.js
index 05f7b92..ac734db 100644
--- a/webpack.config.dev.js
+++ b/webpack.config.dev.js
@@ -9,8 +9,7 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-var webpack = require('webpack');
-var path = require('path');
+const webpack = require('webpack');
 
 module.exports = {
   entry: [

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/webpack.config.test-dev.js
----------------------------------------------------------------------
diff --git a/webpack.config.test-dev.js b/webpack.config.test-dev.js
index c49102b..e24fbd1 100644
--- a/webpack.config.test-dev.js
+++ b/webpack.config.test-dev.js
@@ -9,8 +9,7 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-var webpack = require('webpack');
-var path = require('path');
+const webpack = require('webpack');
 
 module.exports = {
   entry: [

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/webpack.config.test.js
----------------------------------------------------------------------
diff --git a/webpack.config.test.js b/webpack.config.test.js
index 5a96b8c..54a60bb 100644
--- a/webpack.config.test.js
+++ b/webpack.config.test.js
@@ -9,8 +9,7 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-var webpack = require('webpack');
-var path = require('path');
+const webpack = require('webpack');
 
 module.exports = {
   entry: [


[2/2] fauxton commit: updated refs/heads/master to 14b0901

Posted by ga...@apache.org.
remove all unused variables and imports


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/14b0901d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/14b0901d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/14b0901d

Branch: refs/heads/master
Commit: 14b0901df88a909513d8441fcc499023da3524a8
Parents: a766d34
Author: Garren Smith <ga...@gmail.com>
Authored: Tue Jan 10 14:23:33 2017 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Wed Jan 11 08:52:50 2017 +0200

----------------------------------------------------------------------
 .eslintrc                                       |  5 ++-
 Gruntfile.js                                    | 18 +-------
 app/addons/activetasks/base.js                  |  1 -
 app/addons/activetasks/components.react.jsx     |  7 +--
 app/addons/activetasks/resources.js             |  1 -
 app/addons/activetasks/routes.js                |  3 --
 app/addons/activetasks/stores.js                |  3 +-
 .../tests/activetasks.componentsSpec.react.jsx  |  4 +-
 .../activetasks/tests/activetasks.storesSpec.js | 14 +-----
 app/addons/auth/layout.js                       |  3 +-
 app/addons/auth/resources.js                    |  2 +-
 app/addons/auth/stores.js                       |  2 -
 app/addons/cluster/base.js                      |  2 -
 app/addons/cluster/cluster.react.jsx            |  2 -
 app/addons/cluster/routes.js                    |  1 -
 app/addons/cluster/tests/clusterSpec.react.jsx  |  1 -
 app/addons/cluster/tests/resourcesSpec.js       |  1 -
 app/addons/components/__tests__/polling.test.js |  4 +-
 app/addons/components/components/codeeditor.js  |  2 +-
 .../components/components/codeeditorpanel.js    |  1 -
 app/addons/components/components/copy.js        |  2 +-
 app/addons/components/components/polling.js     |  1 -
 app/addons/components/components/tray.js        |  2 +-
 .../tests/apiBarControllerSpec.react.jsx        |  5 +--
 .../components/tests/badgesSpec.react.jsx       |  1 -
 .../components/tests/beautifySpec.react.jsx     |  2 -
 .../tests/codeEditorPanelSpec.react.jsx         |  2 -
 .../components/tests/codeEditorSpec.react.jsx   |  1 -
 .../tests/confirmButtonSpec.react.jsx           |  1 -
 .../tests/deleteDatabaseModalSpec.react.jsx     | 10 ++---
 app/addons/components/tests/docSpec.react.jsx   |  1 -
 .../tests/headerBreadcrumbsSpec.react.jsx       |  1 -
 .../tests/headerTogglebuttonSpec.react.jsx      |  1 -
 .../tests/paddedBorderedBoxSpec.react.jsx       |  2 -
 .../tests/stringEditModalSpec.react.jsx         |  6 +--
 .../components/tests/styledSelectSpec.react.jsx |  1 -
 .../components/tests/zenModeSpec.react.jsx      |  1 -
 app/addons/config/base.js                       |  1 -
 app/addons/config/layout.js                     |  2 -
 app/addons/config/resources.js                  |  2 +-
 app/addons/config/routes.js                     |  3 --
 app/addons/config/tests/actionsSpec.js          |  1 -
 app/addons/cors/base.js                         |  1 -
 app/addons/cors/resources.js                    |  2 +-
 app/addons/cors/tests/actionsSpecs.js           |  1 -
 app/addons/cors/tests/componentsSpec.react.jsx  |  4 +-
 app/addons/cors/tests/resourcesSpec.js          |  1 -
 app/addons/cors/tests/storesSpec.js             |  2 -
 app/addons/databases/actions.js                 |  6 +--
 app/addons/databases/base.js                    |  2 +-
 app/addons/databases/components.react.jsx       |  4 +-
 app/addons/databases/routes.js                  |  2 -
 app/addons/databases/stores.js                  |  1 -
 .../databases/tests/componentsSpec.react.jsx    |  2 -
 .../tests/nightwatch/checkDatabaseTooltip.js    |  3 +-
 .../tests/nightwatch/createsDatabase.js         |  4 +-
 .../tests/nightwatch/permissionsDbTable.js      |  4 --
 app/addons/databases/tests/storesSpec.js        |  2 -
 app/addons/documentation/base.js                |  1 -
 app/addons/documentation/components.react.jsx   |  2 -
 app/addons/documentation/routes.js              |  1 -
 .../tests/nightwatch/checksDocsPage.js          |  3 +-
 .../documents/changes/components.react.jsx      |  1 -
 .../tests/changes.componentsSpec.react.jsx      |  2 -
 .../changes/tests/changes.storesSpec.js         |  1 -
 .../documents/components/header-docs-left.jsx   | 12 +-----
 .../documents/components/header-docs-right.jsx  |  8 ----
 app/addons/documents/designdocinfo/actions.js   |  1 -
 app/addons/documents/doc-editor/actions.js      |  6 +--
 .../documents/doc-editor/components.react.jsx   |  2 +-
 .../tests/doc-editor.componentsSpec.react.jsx   |  7 +--
 .../doc-editor/tests/doc-editor.storesSpec.js   |  1 -
 app/addons/documents/header/header.react.jsx    |  5 ---
 app/addons/documents/index-editor/actions.js    |  2 -
 .../documents/index-editor/tests/actionsSpec.js |  3 --
 .../tests/viewIndex.componentsSpec.react.jsx    |  2 -
 app/addons/documents/index-results/actions.js   |  4 +-
 .../index-results.components.react.jsx          |  5 +--
 app/addons/documents/index-results/stores.js    |  7 +--
 .../index-results.componentsSpec.react.jsx      |  9 ----
 .../tests/index-results.storesSpec.js           |  7 ++-
 app/addons/documents/layouts.js                 |  6 +--
 app/addons/documents/mango/mango.actions.js     |  5 +--
 .../documents/mango/mango.components.react.jsx  |  1 -
 .../mango/tests/mango.componentsSpec.react.jsx  |  2 -
 .../documents/mango/tests/mango.storesSpec.js   |  1 -
 app/addons/documents/mangolayout.js             |  1 -
 app/addons/documents/pagination/actions.js      |  1 -
 .../documents/pagination/pagination.react.jsx   |  1 -
 app/addons/documents/queryoptions/actions.js    |  2 -
 .../queryoptions/queryoptions.react.jsx         |  9 ++--
 app/addons/documents/queryoptions/stores.js     |  2 -
 .../tests/queryoptions.componentsSpec.react.jsx |  5 +--
 .../tests/queryoptions.storesSpec.js            |  2 -
 app/addons/documents/resources.js               | 14 ++----
 .../rev-browser/rev-browser.actions.js          |  3 +-
 .../rev-browser.components.react.jsx            |  8 ++--
 .../tests/rev-browser.actionsSpec.js            |  1 -
 app/addons/documents/routes-doc-editor.js       |  2 -
 app/addons/documents/routes-documents.js        |  1 -
 app/addons/documents/routes-index-editor.js     |  3 --
 app/addons/documents/routes-mango.js            |  5 ---
 app/addons/documents/shared-resources.js        |  2 +-
 app/addons/documents/shared-routes.js           |  5 +--
 app/addons/documents/sidebar/actions.js         |  1 -
 .../tests/sidebar.componentsSpec.react.jsx      |  2 -
 .../sidebar/tests/sidebar.storesSpec.js         |  1 -
 .../documents/tests/document-test-helper.js     |  1 -
 app/addons/documents/tests/helpersSpec.js       |  1 -
 .../nightwatch/createsDocumentWithoutId.js      |  1 -
 .../tests/nightwatch/deleteDatabaseModal.js     |  4 +-
 .../tests/nightwatch/fixRegressionTableView.js  |  3 +-
 .../documents/tests/nightwatch/viewCreate.js    |  4 --
 .../tests/nightwatch/viewCreateBadView.js       |  3 +-
 app/addons/documents/tests/resourcesSpec.js     |  5 +--
 app/addons/documents/tests/routeSpec.js         | 45 --------------------
 app/addons/fauxton/appwrapper.js                |  2 -
 app/addons/fauxton/base.js                      |  7 ---
 app/addons/fauxton/components.react.jsx         |  1 -
 app/addons/fauxton/navigation/actions.js        |  1 -
 .../fauxton/navigation/components.react.jsx     |  1 -
 .../navigation/tests/componentsSpec.react.jsx   |  2 -
 .../notifications/notifications.react.jsx       |  2 -
 .../fauxton/notifications/tests/actionsSpec.js  |  2 -
 .../tests/componentsSpec.react.jsx              |  1 -
 .../fauxton/notifications/tests/storesSpec.js   |  2 -
 .../fauxton/tests/componentsSpec.react.jsx      |  2 -
 app/addons/permissions/actions.js               |  9 ++--
 app/addons/permissions/base.js                  |  1 -
 .../permissions/components/PermissionsItem.js   |  2 +-
 .../permissions/components/PermissionsScreen.js |  2 +-
 .../components/PermissionsSection.js            |  2 +-
 app/addons/permissions/layout.js                |  1 -
 app/addons/permissions/routes.js                |  3 +-
 app/addons/replication/actions.js               | 10 -----
 app/addons/replication/api.js                   |  2 +-
 app/addons/replication/base.js                  |  1 -
 app/addons/replication/components/activity.js   |  3 +-
 app/addons/replication/components/modals.js     |  2 +-
 .../replication/components/newreplication.js    |  1 -
 app/addons/replication/components/options.js    |  3 +-
 app/addons/replication/components/source.js     |  3 +-
 app/addons/replication/components/submit.js     |  1 -
 app/addons/replication/controller.js            |  8 +---
 app/addons/replication/route.js                 |  1 -
 app/addons/replication/tests/apiSpec.js         |  2 -
 .../replication/tests/newreplicationSpec.js     |  1 -
 .../replication/tests/nightwatch/replication.js |  2 +-
 .../tests/nightwatch/replicationactivity.js     |  3 --
 app/addons/setup/base.js                        |  1 -
 app/addons/setup/setup.actions.js               | 16 +------
 app/addons/setup/tests/setupSpec.js             |  1 -
 app/addons/verifyinstall/actions.js             |  3 +-
 app/addons/verifyinstall/base.js                |  2 +-
 app/addons/verifyinstall/components.react.jsx   |  8 +---
 app/addons/verifyinstall/resources.js           |  2 +-
 app/addons/verifyinstall/routes.js              |  1 -
 app/addons/verifyinstall/tests/actionsSpec.js   |  1 -
 .../tests/componentsSpec.react.jsx              |  1 -
 .../tests/verifyinstall.storesSpec.js           |  1 -
 app/app.js                                      |  5 +--
 app/core/auth.js                                |  5 +--
 app/core/routeObject.js                         |  2 -
 app/core/tests/couchdbSessionSpec.js            |  2 -
 app/core/tests/utilsSpec.js                     |  1 -
 app/core/utils.js                               |  4 +-
 app/helpers.js                                  |  1 -
 bin/remove-test-dbs.js                          |  2 +-
 couchapp.js                                     |  2 +-
 devserver.js                                    | 14 ++----
 index.js                                        |  4 +-
 jest-setup.js                                   |  2 +-
 tasks/fauxton.js                                |  5 +--
 tasks/helper.js                                 |  3 +-
 test/dev.js                                     |  2 +-
 webpack.config.dev.js                           |  3 +-
 webpack.config.test-dev.js                      |  3 +-
 webpack.config.test.js                          |  3 +-
 178 files changed, 114 insertions(+), 484 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/.eslintrc
----------------------------------------------------------------------
diff --git a/.eslintrc b/.eslintrc
index c642ec6..0ff1456 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -26,7 +26,10 @@
     "no-trailing-spaces": 2,
     "semi-spacing": [2, {"before": false, "after": true}],
     "no-empty": 2,
-    "space-in-parens": [2, "never"]
+    "space-in-parens": [2, "never"],
+    "no-unused-vars": [2, {"varsIgnorePattern": "ReactDOM"}],
+    "react/jsx-uses-vars": 2,
+    "react/jsx-uses-react": 2
   },
 
   "parserOptions": {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/Gruntfile.js
----------------------------------------------------------------------
diff --git a/Gruntfile.js b/Gruntfile.js
index 639e81e..25b1157 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -19,13 +19,11 @@
 "use strict";
 
 const path = require('path');
-var webpackConfig = require("./webpack.config.dev.js");
 
 module.exports = function (grunt) {
   var helper = require('./tasks/helper.js'),
       initHelper = helper.init(grunt),
-      _ = grunt.util._,
-      fs = require('fs');
+      _ = grunt.util._;
 
   var couch_config = function () {
     var default_couch_config = {
@@ -77,20 +75,6 @@ module.exports = function (grunt) {
     return settings.template;
   })();
 
-  var couchserver_config  = function () {
-    // add a "couchserver" key to settings.json with JSON that matches the
-    // keys and values below (plus your customizations) to have Fauxton work
-    // against a remote CouchDB-compatible server.
-    var defaults = {
-      port: helper.devServerPort,
-      proxy: {
-        target: helper.couch
-      }
-    };
-
-    return initHelper.readSettingsFile().couchserver || defaults;
-  }();
-
   var config = {
 
     // The clean task ensures all files are removed from the dist/ directory so

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/base.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/base.js b/app/addons/activetasks/base.js
index 6c99fb0..62a2728 100644
--- a/app/addons/activetasks/base.js
+++ b/app/addons/activetasks/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Activetasks from "./routes";
 import "./assets/less/activetasks.less";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/components.react.jsx b/app/addons/activetasks/components.react.jsx
index 33c6c4c..8e2bf69 100644
--- a/app/addons/activetasks/components.react.jsx
+++ b/app/addons/activetasks/components.react.jsx
@@ -11,17 +11,14 @@
 // the License.
 
 import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
 import Stores from "./stores";
 import Resources from "./resources";
 import Actions from "./actions";
 import Components from "../components/react-components.react";
-import ComponentsReact from "../fauxton/components.react";
-import ReactCSSTransitionGroup from "react-addons-css-transition-group";
 
-const {TabElement, TabElementWrapper, Polling, TrayContents} = Components;
+const {TabElement, TabElementWrapper, Polling} = Components;
 
 const activeTasksStore = Stores.activeTasksStore;
 
@@ -274,7 +271,7 @@ var ActiveTasksTableBody = React.createClass({
     return this.getStoreState();
   },
 
-  componentWillReceiveProps (nextProps) {
+  componentWillReceiveProps () {
     this.setState({
       filteredTable: activeTasksStore.getFilteredTable(this.props.collection)
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/resources.js b/app/addons/activetasks/resources.js
index 55967f8..7b88677 100644
--- a/app/addons/activetasks/resources.js
+++ b/app/addons/activetasks/resources.js
@@ -11,7 +11,6 @@
 // the License.
 
 import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import Actions from "./actions";
 var Active = {};
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/routes.js b/app/addons/activetasks/routes.js
index 2e427cf..e45cc9b 100644
--- a/app/addons/activetasks/routes.js
+++ b/app/addons/activetasks/routes.js
@@ -11,11 +11,8 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import ActiveTasksResources from "./resources";
-import ActiveTasksComponents from "./components.react";
-import Actions from "./actions";
 import Layout from './layout';
 
 var ActiveTasksRouteObject = FauxtonAPI.RouteObject.extend({

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/stores.js b/app/addons/activetasks/stores.js
index 51b31ed..7453e48 100644
--- a/app/addons/activetasks/stores.js
+++ b/app/addons/activetasks/stores.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import ActionTypes from "./actiontypes";
 
@@ -124,7 +123,7 @@ var ActiveTasksStore = FauxtonAPI.Store.extend({
     this._collection = sorted;
   },
 
-  getFilteredTable (collection) {
+  getFilteredTable () {
     var table = [];
 
     //sort the table here

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx b/app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx
index d22be2f..6377cb7 100644
--- a/app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx
+++ b/app/addons/activetasks/tests/activetasks.componentsSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ActiveTasks from "../resources";
 import Components from "../components.react";
 import Stores from "../stores";
@@ -20,7 +19,6 @@ import Actions from "../actions";
 import utils from "../../../../test/mocha/testUtils";
 import TestUtils from "react-addons-test-utils";
 import sinon from "sinon";
-import { mount } from 'enzyme';
 var assert = utils.assert;
 var restore = utils.restore;
 var activeTasksStore = Stores.activeTasksStore;
@@ -30,7 +28,7 @@ activeTasksCollection.parse(fakedResponse);
 describe('Active Tasks -- Components', function () {
 
   describe('Active Tasks Table (Components)', function () {
-    var table, tableDiv, spy, filterTab;
+    var table, tableDiv, spy;
 
     beforeEach(function () {
       tableDiv = document.createElement('div');

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/activetasks/tests/activetasks.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/activetasks/tests/activetasks.storesSpec.js b/app/addons/activetasks/tests/activetasks.storesSpec.js
index 1ffa698..5ba7632 100644
--- a/app/addons/activetasks/tests/activetasks.storesSpec.js
+++ b/app/addons/activetasks/tests/activetasks.storesSpec.js
@@ -9,16 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ActiveTasks from "../resources";
 import Stores from "../stores";
 import fakedResponse from "./fakeActiveTaskResponse";
-import React from "react";
 import utils from "../../../../test/mocha/testUtils";
-import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 var assert = utils.assert;
-var restore = utils.restore;
 
 var activeTasksStore = Stores.activeTasksStore;
 var activeTasksCollection = new ActiveTasks.AllTasks();
@@ -30,13 +25,7 @@ describe('Active Tasks -- Stores', function () {
   });
 
   describe('Active Task Stores - Filter Tab Tray', function () {
-    var fakeFilteredTable, storeFilteredtable;
-    function sort (a, b, sortBy) {  //sorts array by objects with key 'sortBy', with default started_on
-      if (_.isUndefined(sortBy)) {
-        sortBy = 'started-on';
-      }
-      return b[sortBy] - a[sortBy];
-    }
+    var fakeFilteredTable;
 
     afterEach(function () {
       fakeFilteredTable = [];
@@ -65,7 +54,6 @@ describe('Active Tasks -- Stores', function () {
       var searchTerm = 'base';
       activeTasksStore.setSearchTerm(searchTerm);
       var storeGeneratedTable = activeTasksStore.getFilteredTable(activeTasksStore._collection);
-      var regEx = new RegExp(searchTerm);
 
       fakeFilteredTable = [
         { user: 'information'},

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/auth/layout.js
----------------------------------------------------------------------
diff --git a/app/addons/auth/layout.js b/app/addons/auth/layout.js
index 648502e..3597e70 100644
--- a/app/addons/auth/layout.js
+++ b/app/addons/auth/layout.js
@@ -11,7 +11,6 @@
 // the License.
 
 import React from 'react';
-import FauxtonAPI from "../../core/api";
 import {OnePane, OnePaneContent} from '../components/layouts';
 import {Breadcrumbs} from '../components/header-breadcrumbs';
 import Components from "./components.react";
@@ -44,7 +43,7 @@ export const AuthLayout = ({crumbs, component}) => {
   );
 };
 
-export const AdminLayout = ({crumbs, changePassword, component}) => {
+export const AdminLayout = ({crumbs, changePassword}) => {
   let content = changePassword ? <ChangePasswordForm /> : <CreateAdminForm loginAfter={false} />;
   return (
     <div id="dashboard" className="template-with-sidebar flex-layout flex-col">

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/auth/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/auth/resources.js b/app/addons/auth/resources.js
index 91f4456..5c4a921 100644
--- a/app/addons/auth/resources.js
+++ b/app/addons/auth/resources.js
@@ -33,7 +33,7 @@ var Admin = Backbone.Model.extend({
 
   isNew: function () { return false; },
 
-  sync: function (method, model, options) {
+  sync: function (method, model) {
     var params = {
       url: model.url(),
       contentType: 'application/json',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/auth/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/auth/stores.js b/app/addons/auth/stores.js
index 25ef23a..ce43e4a 100644
--- a/app/addons/auth/stores.js
+++ b/app/addons/auth/stores.js
@@ -10,11 +10,9 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import ActionTypes from "./actiontypes";
 
-
 // Not thrilled with this. The sole purpose of these next two stores is because the Create Admin + Change Password
 // forms need to clear after a successful post. Since those events occur in actions.js, we need a way to tell the
 // component to update + clear the fields. That's why all this code exists.

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cluster/base.js
----------------------------------------------------------------------
diff --git a/app/addons/cluster/base.js b/app/addons/cluster/base.js
index ec264ab..338334d 100644
--- a/app/addons/cluster/base.js
+++ b/app/addons/cluster/base.js
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import Cluster from "./routes";
 
 Cluster.initialize = function () {};

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cluster/cluster.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/cluster/cluster.react.jsx b/app/addons/cluster/cluster.react.jsx
index 97f6ea1..609e866 100644
--- a/app/addons/cluster/cluster.react.jsx
+++ b/app/addons/cluster/cluster.react.jsx
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import React from "react";
 import ClusterStore from "./cluster.stores";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cluster/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/cluster/routes.js b/app/addons/cluster/routes.js
index 99ac615..591541f 100644
--- a/app/addons/cluster/routes.js
+++ b/app/addons/cluster/routes.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import React from 'react';
 import FauxtonAPI from "../../core/api";
 import Cluster from "./resources";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cluster/tests/clusterSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/cluster/tests/clusterSpec.react.jsx b/app/addons/cluster/tests/clusterSpec.react.jsx
index fae04be..a76b36d 100644
--- a/app/addons/cluster/tests/clusterSpec.react.jsx
+++ b/app/addons/cluster/tests/clusterSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ClusterComponent from "../cluster.react";
 import ClusterActions from "../cluster.actions";
 import ClusterStores from "../cluster.stores";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cluster/tests/resourcesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/cluster/tests/resourcesSpec.js b/app/addons/cluster/tests/resourcesSpec.js
index 7443d6d..b5ee911 100644
--- a/app/addons/cluster/tests/resourcesSpec.js
+++ b/app/addons/cluster/tests/resourcesSpec.js
@@ -11,7 +11,6 @@
 // the License.
 
 import testUtils from "../../../../test/mocha/testUtils";
-import FauxtonAPI from "../../../core/api";
 import Resources from "../resources";
 var assert = testUtils.assert;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/__tests__/polling.test.js
----------------------------------------------------------------------
diff --git a/app/addons/components/__tests__/polling.test.js b/app/addons/components/__tests__/polling.test.js
index c6a206a..ca6f83a 100644
--- a/app/addons/components/__tests__/polling.test.js
+++ b/app/addons/components/__tests__/polling.test.js
@@ -92,13 +92,13 @@ describe("Polling", () => {
         assert.ok(pollCalled);
         done();
       };
-      const wrapper = mount(<Polling
+      mount(<Polling
         startValue={1}
         min={1}
         max={20}
         stepSize={1}
         onPoll={onPoll}
-                        />);
+      />);
 
       clock.tick(1010);
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/components/codeeditor.js
----------------------------------------------------------------------
diff --git a/app/addons/components/components/codeeditor.js b/app/addons/components/components/codeeditor.js
index 9a89618..8a0680e 100644
--- a/app/addons/components/components/codeeditor.js
+++ b/app/addons/components/components/codeeditor.js
@@ -212,7 +212,7 @@ export const CodeEditor = React.createClass({
     }.bind(this));
   },
 
-  showHideEditStringGutterIcon (e) {
+  showHideEditStringGutterIcon () {
     if (this.hasErrors() || !this.parseLineForStringMatch()) {
       this.setState({ stringEditIconVisible: false });
       return false;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/components/codeeditorpanel.js
----------------------------------------------------------------------
diff --git a/app/addons/components/components/codeeditorpanel.js b/app/addons/components/components/codeeditorpanel.js
index 92e3693..dc7910d 100644
--- a/app/addons/components/components/codeeditorpanel.js
+++ b/app/addons/components/components/codeeditorpanel.js
@@ -12,7 +12,6 @@
 import React from "react";
 import ReactDOM from "react-dom";
 import {CodeEditor} from './codeeditor';
-import {StringEditModal} from './stringeditmodal';
 import {Beautify} from './beautify';
 import {ZenModeOverlay} from './zenmodeoverlay';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/components/copy.js
----------------------------------------------------------------------
diff --git a/app/addons/components/components/copy.js b/app/addons/components/components/copy.js
index 2c00793..1bf3519 100644
--- a/app/addons/components/components/copy.js
+++ b/app/addons/components/components/copy.js
@@ -20,7 +20,7 @@ let clipboard;
 // sets the callback on 'success' (usually a Fauxton notification).
 export const initializeClipboard = (uniqueKey, cb) => {
   clipboard = new Clipboard('#copy-' + uniqueKey);
-  clipboard.on('success', function(e) {
+  clipboard.on('success', function() {
     cb();
   });
 };

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/components/polling.js
----------------------------------------------------------------------
diff --git a/app/addons/components/components/polling.js b/app/addons/components/components/polling.js
index af9ced1..b6b8d37 100644
--- a/app/addons/components/components/polling.js
+++ b/app/addons/components/components/polling.js
@@ -83,7 +83,6 @@ export class Polling extends React.Component {
 
   render () {
     const {
-      pollingFreqOptions,
       stepSize,
       min,
       max,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/components/tray.js
----------------------------------------------------------------------
diff --git a/app/addons/components/components/tray.js b/app/addons/components/components/tray.js
index 8b92967..8602837 100644
--- a/app/addons/components/components/tray.js
+++ b/app/addons/components/components/tray.js
@@ -117,7 +117,7 @@ export const TrayWrapper = React.createClass({
   },
 
   renderChildren () {
-    return React.Children.map(this.props.children, function (child, key) {
+    return React.Children.map(this.props.children, function (child) {
 
       const props = {};
       Object.keys(this.props).filter((k) => {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/apiBarControllerSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/apiBarControllerSpec.react.jsx b/app/addons/components/tests/apiBarControllerSpec.react.jsx
index 543e1d5..028f742 100644
--- a/app/addons/components/tests/apiBarControllerSpec.react.jsx
+++ b/app/addons/components/tests/apiBarControllerSpec.react.jsx
@@ -9,15 +9,12 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import Actions from "../actions";
 import Stores from "../stores";
 import utils from "../../../../test/mocha/testUtils";
-import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 import React from "react";
 import ReactDOM from "react-dom";
-import {APIBar, ApiBarController} from '../components/apibar';
+import {ApiBarController} from '../components/apibar';
 import {mount} from 'enzyme';
 
 const assert = utils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/badgesSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/badgesSpec.react.jsx b/app/addons/components/tests/badgesSpec.react.jsx
index 23cf3ef..3014c24 100644
--- a/app/addons/components/tests/badgesSpec.react.jsx
+++ b/app/addons/components/tests/badgesSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/beautifySpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/beautifySpec.react.jsx b/app/addons/components/tests/beautifySpec.react.jsx
index 7306b96..2d0d1c6 100644
--- a/app/addons/components/tests/beautifySpec.react.jsx
+++ b/app/addons/components/tests/beautifySpec.react.jsx
@@ -9,13 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 var assert = utils.assert;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/codeEditorPanelSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/codeEditorPanelSpec.react.jsx b/app/addons/components/tests/codeEditorPanelSpec.react.jsx
index 1b62151..703e695 100644
--- a/app/addons/components/tests/codeEditorPanelSpec.react.jsx
+++ b/app/addons/components/tests/codeEditorPanelSpec.react.jsx
@@ -9,13 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 var assert = utils.assert;
 var codeNoNewlines = 'function (doc) {emit(doc._id, 1);}';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/codeEditorSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/codeEditorSpec.react.jsx b/app/addons/components/tests/codeEditorSpec.react.jsx
index 7f45057..6d4469b 100644
--- a/app/addons/components/tests/codeEditorSpec.react.jsx
+++ b/app/addons/components/tests/codeEditorSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/confirmButtonSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/confirmButtonSpec.react.jsx b/app/addons/components/tests/confirmButtonSpec.react.jsx
index cc44b7c..71157bd 100644
--- a/app/addons/components/tests/confirmButtonSpec.react.jsx
+++ b/app/addons/components/tests/confirmButtonSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/deleteDatabaseModalSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/deleteDatabaseModalSpec.react.jsx b/app/addons/components/tests/deleteDatabaseModalSpec.react.jsx
index 32e6a52..f0231c4 100644
--- a/app/addons/components/tests/deleteDatabaseModalSpec.react.jsx
+++ b/app/addons/components/tests/deleteDatabaseModalSpec.react.jsx
@@ -9,10 +9,8 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
-import { Modal } from "react-bootstrap";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
@@ -22,7 +20,7 @@ var assert = utils.assert;
 function noop () {}
 
 describe('DeleteDatabaseModal', function () {
-  var container, instance;
+  var container;
   beforeEach(function () {
     container = document.createElement('div');
   });
@@ -32,7 +30,7 @@ describe('DeleteDatabaseModal', function () {
   });
 
   it('submitting is disabled when initially rendered', function () {
-    instance = TestUtils.renderIntoDocument(
+    TestUtils.renderIntoDocument(
       <ReactComponents.DeleteDatabaseModal
         showHide={noop}
         modalProps={{isSystemDatabase: false, showDeleteModal: true, dbId: 'fooo'}} />,
@@ -43,7 +41,7 @@ describe('DeleteDatabaseModal', function () {
   });
 
   it('submitting is disabled when garbage entered', function () {
-    instance = TestUtils.renderIntoDocument(
+    TestUtils.renderIntoDocument(
       <ReactComponents.DeleteDatabaseModal
         showHide={noop}
         modalProps={{isSystemDatabase: false, showDeleteModal: true, dbId: 'fooo'}} />,
@@ -57,7 +55,7 @@ describe('DeleteDatabaseModal', function () {
   });
 
   it('submitting is enabled when same db name entered', function () {
-    instance = TestUtils.renderIntoDocument(
+    TestUtils.renderIntoDocument(
       <ReactComponents.DeleteDatabaseModal
         showHide={noop}
         modalProps={{isSystemDatabase: false, showDeleteModal: true, dbId: 'fooo'}} />,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/docSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/docSpec.react.jsx b/app/addons/components/tests/docSpec.react.jsx
index dd12277..f4ae867 100644
--- a/app/addons/components/tests/docSpec.react.jsx
+++ b/app/addons/components/tests/docSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/headerBreadcrumbsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/headerBreadcrumbsSpec.react.jsx b/app/addons/components/tests/headerBreadcrumbsSpec.react.jsx
index 2c40683..20a3976 100644
--- a/app/addons/components/tests/headerBreadcrumbsSpec.react.jsx
+++ b/app/addons/components/tests/headerBreadcrumbsSpec.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import FauxtonAPI from '../../../core/api';
 import utils from '../../../../test/mocha/testUtils';
 import React from 'react';
 import ReactDOM from 'react-dom';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/headerTogglebuttonSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/headerTogglebuttonSpec.react.jsx b/app/addons/components/tests/headerTogglebuttonSpec.react.jsx
index f87a6e2..7aa0b47 100644
--- a/app/addons/components/tests/headerTogglebuttonSpec.react.jsx
+++ b/app/addons/components/tests/headerTogglebuttonSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx b/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx
index 5223eac..69c7c52 100644
--- a/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx
+++ b/app/addons/components/tests/paddedBorderedBoxSpec.react.jsx
@@ -9,13 +9,11 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 var assert = utils.assert;
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/stringEditModalSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/stringEditModalSpec.react.jsx b/app/addons/components/tests/stringEditModalSpec.react.jsx
index fbd25d8..f606dc5 100644
--- a/app/addons/components/tests/stringEditModalSpec.react.jsx
+++ b/app/addons/components/tests/stringEditModalSpec.react.jsx
@@ -9,9 +9,7 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
-import { Modal } from "react-bootstrap";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
@@ -21,7 +19,7 @@ import sinon from "sinon";
 var assert = utils.assert;
 
 describe('String Edit Modal', function () {
-  var container, el;
+  var container;
   var stub = function () { };
 
   beforeEach(function () {
@@ -36,7 +34,7 @@ describe('String Edit Modal', function () {
     it('ensures same content returns on saving', function () {
       var string = "a string!";
       var spy = sinon.spy();
-      el = TestUtils.renderIntoDocument(
+      TestUtils.renderIntoDocument(
         <ReactComponents.StringEditModal visible={true} onClose={stub} onSave={spy} value={string} />,
         container
       );

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/styledSelectSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/styledSelectSpec.react.jsx b/app/addons/components/tests/styledSelectSpec.react.jsx
index 85f304b..8ae3fc4 100644
--- a/app/addons/components/tests/styledSelectSpec.react.jsx
+++ b/app/addons/components/tests/styledSelectSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/components/tests/zenModeSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/components/tests/zenModeSpec.react.jsx b/app/addons/components/tests/zenModeSpec.react.jsx
index 861b24f..4fc8ef2 100644
--- a/app/addons/components/tests/zenModeSpec.react.jsx
+++ b/app/addons/components/tests/zenModeSpec.react.jsx
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import FauxtonAPI from "../../../core/api";
 import ReactComponents from "../react-components.react";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/config/base.js
----------------------------------------------------------------------
diff --git a/app/addons/config/base.js b/app/addons/config/base.js
index 8913ecf..2360ed7 100644
--- a/app/addons/config/base.js
+++ b/app/addons/config/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Config from "./routes";
 import "./assets/less/config.less";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/config/layout.js
----------------------------------------------------------------------
diff --git a/app/addons/config/layout.js b/app/addons/config/layout.js
index 342551a..1d03d48 100644
--- a/app/addons/config/layout.js
+++ b/app/addons/config/layout.js
@@ -11,8 +11,6 @@
 // the License.
 
 import React from 'react';
-import FauxtonAPI from "../../core/api";
-import {TabsSidebarHeader} from '../documents/layouts';
 import ConfigComponents from "./components.react";
 import CORSComponents from "../cors/components.react";
 import {Breadcrumbs} from '../components/header-breadcrumbs';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/config/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/config/resources.js b/app/addons/config/resources.js
index f010c0d..5e5c134 100644
--- a/app/addons/config/resources.js
+++ b/app/addons/config/resources.js
@@ -29,7 +29,7 @@ Config.OptionModel = Backbone.Model.extend({
 
   isNew () { return false; },
 
-  sync (method, model, options) {
+  sync (method, model) {
 
     var params = {
       url: model.url(),

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/config/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/config/routes.js b/app/addons/config/routes.js
index a6d1599..4b19238 100644
--- a/app/addons/config/routes.js
+++ b/app/addons/config/routes.js
@@ -10,13 +10,10 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Config from "./resources";
-import CORSComponents from "../cors/components.react";
 import CORSActions from "../cors/actions";
 import ClusterActions from "../cluster/cluster.actions";
-import ConfigComponents from "./components.react";
 import ConfigActions from "./actions";
 import Layout from './layout';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/config/tests/actionsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/config/tests/actionsSpec.js b/app/addons/config/tests/actionsSpec.js
index 0d35cae..91734de 100644
--- a/app/addons/config/tests/actionsSpec.js
+++ b/app/addons/config/tests/actionsSpec.js
@@ -12,7 +12,6 @@
 import testUtils from "../../../../test/mocha/testUtils";
 import FauxtonAPI from "../../../core/api";
 import Actions from "../actions";
-import Resources from "../resources";
 import Backbone from "backbone";
 import sinon from "sinon";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/base.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/base.js b/app/addons/cors/base.js
index 6c32bd4..6f8d400 100644
--- a/app/addons/cors/base.js
+++ b/app/addons/cors/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import "./assets/less/cors.less";
 var CORS = FauxtonAPI.addon();

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/resources.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/resources.js b/app/addons/cors/resources.js
index 73a2091..6c9a1c3 100644
--- a/app/addons/cors/resources.js
+++ b/app/addons/cors/resources.js
@@ -71,7 +71,7 @@ CORS.ConfigModel = Backbone.Model.extend({
 
   isNew: function () { return false; },
 
-  sync: function (method, model, options) {
+  sync: function (method, model) {
 
     var params = {
       url: model.url(),

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/tests/actionsSpecs.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/tests/actionsSpecs.js b/app/addons/cors/tests/actionsSpecs.js
index 7391468..2188ebd 100644
--- a/app/addons/cors/tests/actionsSpecs.js
+++ b/app/addons/cors/tests/actionsSpecs.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import app from "../../../app";
 import utils from "../../../../test/mocha/testUtils";
 import FauxtonAPI from "../../../core/api";
 import Actions from "../actions";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/cors/tests/componentsSpec.react.jsx b/app/addons/cors/tests/componentsSpec.react.jsx
index 0ab9b1b..1a28e68 100644
--- a/app/addons/cors/tests/componentsSpec.react.jsx
+++ b/app/addons/cors/tests/componentsSpec.react.jsx
@@ -28,7 +28,7 @@ describe('CORS Components', function () {
 
 
   describe('CorsController', function () {
-    var container, corsEl, saveStub;
+    var container, corsEl;
 
     beforeEach(function () {
       container = document.createElement('div');
@@ -38,7 +38,7 @@ describe('CORS Components', function () {
       corsStore._configChanged = true;
       corsEl = TestUtils.renderIntoDocument(<Views.CORSController />, container);
       //stub this out so it doesn't keep trying to save cors and crash phantomjs
-      saveStub = sinon.stub(corsEl, 'save');
+      sinon.stub(corsEl, 'save');
     });
 
     afterEach(function () {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/tests/resourcesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/tests/resourcesSpec.js b/app/addons/cors/tests/resourcesSpec.js
index 9c02a7e..e75efc6 100644
--- a/app/addons/cors/tests/resourcesSpec.js
+++ b/app/addons/cors/tests/resourcesSpec.js
@@ -9,7 +9,6 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import app from "../../../app";
 import testUtils from "../../../../test/mocha/testUtils";
 import CORS from "../resources";
 var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/cors/tests/storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/cors/tests/storesSpec.js b/app/addons/cors/tests/storesSpec.js
index 556e8f0..f9ee787 100644
--- a/app/addons/cors/tests/storesSpec.js
+++ b/app/addons/cors/tests/storesSpec.js
@@ -9,9 +9,7 @@
 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 // License for the specific language governing permissions and limitations under
 // the License.
-import app from "../../../app";
 import testUtils from "../../../../test/mocha/testUtils";
-import FauxtonAPI from "../../../core/api";
 import Stores from "../stores";
 var assert = testUtils.assert;
 var store = Stores.corsStore;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/actions.js b/app/addons/databases/actions.js
index bd09672..3450e7f 100644
--- a/app/addons/databases/actions.js
+++ b/app/addons/databases/actions.js
@@ -15,7 +15,7 @@ import Stores from "./stores";
 import ActionTypes from "./actiontypes";
 import Resources from "./resources";
 
-function getDatabaseDetails (dbList, fullDbList, cb) {
+function getDatabaseDetails (dbList, fullDbList) {
   const databaseDetails = [];
   const failedDbs = [];
   let seen = 0;
@@ -27,7 +27,7 @@ function getDatabaseDetails (dbList, fullDbList, cb) {
       .then((res) => {
         databaseDetails.push(res);
       })
-      .fail((xhr) => {
+      .fail(() => {
         failedDbs.push(db);
       })
       .always(() => {
@@ -57,7 +57,7 @@ function fetch (url) {
   });
 }
 
-function getDatabaseList (limit, page) {
+function getDatabaseList () {
   const url = FauxtonAPI.urls('allDBs', 'server');
 
   return fetch(url);

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/base.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/base.js b/app/addons/databases/base.js
index 33cd69a..8264e93 100644
--- a/app/addons/databases/base.js
+++ b/app/addons/databases/base.js
@@ -55,7 +55,7 @@ FauxtonAPI.registerUrls('allDBs', {
     return '_all_dbs';
   },
 
-  apiurl: function (id, query) {
+  apiurl: function () {
     return window.location.origin + '/_all_dbs';
   }
 });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/databases/components.react.jsx b/app/addons/databases/components.react.jsx
index 47cfde4..cddc602 100644
--- a/app/addons/databases/components.react.jsx
+++ b/app/addons/databases/components.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
@@ -19,7 +18,6 @@ import ComponentsStore from "../components/stores";
 import ComponentsActions from "../components/actions";
 import FauxtonComponentsReact from "..//fauxton/components.react";
 import Stores from "./stores";
-import Resources from "./resources";
 import Actions from "./actions";
 
 import ReactSelect from "react-select";
@@ -96,7 +94,7 @@ const DatabaseTable = React.createClass({
     });
   },
 
-  showDeleteDatabaseModal (name) {
+  showDeleteDatabaseModal () {
     ComponentsActions.showDeleteDatabaseModal({
       showDeleteModal: !this.props.showDeleteDatabaseModal.showDeleteModal
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/routes.js b/app/addons/databases/routes.js
index b86ed53..6870379 100644
--- a/app/addons/databases/routes.js
+++ b/app/addons/databases/routes.js
@@ -11,10 +11,8 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Actions from "./actions";
-import Components from "./components.react";
 import Databases from "./resources";
 import Layout from './layout';
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/stores.js b/app/addons/databases/stores.js
index ff75d01..b517a61 100644
--- a/app/addons/databases/stores.js
+++ b/app/addons/databases/stores.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import ActionTypes from "./actiontypes";
 import Resources from "./resources";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/tests/componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/componentsSpec.react.jsx b/app/addons/databases/tests/componentsSpec.react.jsx
index ab6f933..f619599 100644
--- a/app/addons/databases/tests/componentsSpec.react.jsx
+++ b/app/addons/databases/tests/componentsSpec.react.jsx
@@ -12,13 +12,11 @@
 import FauxtonAPI from "../../../core/api";
 import Views from "../components.react";
 import Actions from "../actions";
-import ActionTypes from "../actiontypes";
 import Stores from "../stores";
 import utils from "../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 import { mount } from 'enzyme';
 
 var assert = utils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js b/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
index b2c24b6..d2c6606 100644
--- a/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
+++ b/app/addons/databases/tests/nightwatch/checkDatabaseTooltip.js
@@ -16,8 +16,7 @@ module.exports = {
   'Check the tooltip icon for DB with deleted items appears': function (client) {
     var waitTime = client.globals.maxWaitTime,
         newDatabaseName = client.globals.testDatabaseName,
-        newDocumentName = 'TemporaryDoc',
-        baseUrl = client.globals.test_settings.launch_url;
+        newDocumentName = 'TemporaryDoc';
 
     client
       // use nano to quickly set up a DB with a single doc

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/tests/nightwatch/createsDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/createsDatabase.js b/app/addons/databases/tests/nightwatch/createsDatabase.js
index 72ce684..b0bae61 100644
--- a/app/addons/databases/tests/nightwatch/createsDatabase.js
+++ b/app/addons/databases/tests/nightwatch/createsDatabase.js
@@ -18,14 +18,14 @@ module.exports = {
 
   before: function (client, done) {
     var nano = helpers.getNanoInstance(client.globals.test_settings.db_url);
-    nano.db.destroy(newDatabaseName, function (err, body, header) {
+    nano.db.destroy(newDatabaseName, function () {
       done();
     });
   },
 
   after: function (client, done) {
     var nano = helpers.getNanoInstance(client.globals.test_settings.db_url);
-    nano.db.destroy(newDatabaseName, function (err, body, header) {
+    nano.db.destroy(newDatabaseName, function () {
       done();
     });
   },

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/tests/nightwatch/permissionsDbTable.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/permissionsDbTable.js b/app/addons/databases/tests/nightwatch/permissionsDbTable.js
index c659aac..64711f7 100644
--- a/app/addons/databases/tests/nightwatch/permissionsDbTable.js
+++ b/app/addons/databases/tests/nightwatch/permissionsDbTable.js
@@ -10,14 +10,10 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-
-const helpers = require('../../../../../test/nightwatch_tests/helpers/helpers.js');
-
 module.exports = {
 
   'lists databases with a 401' : function (client) {
     const waitTime = client.globals.maxWaitTime;
-    const baseUrl = client.globals.test_settings.launch_url;
 
     const userDoc = {
       "_id": "org.couchdb.user:furbie",

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/databases/tests/storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/storesSpec.js b/app/addons/databases/tests/storesSpec.js
index 2adbd62..a4bda76 100644
--- a/app/addons/databases/tests/storesSpec.js
+++ b/app/addons/databases/tests/storesSpec.js
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
-import FauxtonAPI from "../../../core/api";
 import utils from "../../../../test/mocha/testUtils";
 import Stores from "../stores";
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documentation/base.js
----------------------------------------------------------------------
diff --git a/app/addons/documentation/base.js b/app/addons/documentation/base.js
index d69f8fe..28e68d6 100644
--- a/app/addons/documentation/base.js
+++ b/app/addons/documentation/base.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import Documentation from "./routes";
 import "./assets/less/documentation.less";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documentation/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documentation/components.react.jsx b/app/addons/documentation/components.react.jsx
index b082b91..da450a0 100644
--- a/app/addons/documentation/components.react.jsx
+++ b/app/addons/documentation/components.react.jsx
@@ -10,8 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../app";
-import FauxtonAPI from "../../core/api";
 import React from "react";
 
 const docLinks = [

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documentation/routes.js
----------------------------------------------------------------------
diff --git a/app/addons/documentation/routes.js b/app/addons/documentation/routes.js
index 0657be7..7c3dbca 100644
--- a/app/addons/documentation/routes.js
+++ b/app/addons/documentation/routes.js
@@ -11,7 +11,6 @@
 // the License.
 
 import React from 'react';
-import app from "../../app";
 import FauxtonAPI from "../../core/api";
 import DocumentationComponents from "./components.react";
 import {OnePaneSimpleLayout} from '../components/layouts';

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documentation/tests/nightwatch/checksDocsPage.js
----------------------------------------------------------------------
diff --git a/app/addons/documentation/tests/nightwatch/checksDocsPage.js b/app/addons/documentation/tests/nightwatch/checksDocsPage.js
index 7af6f83..aad3674 100644
--- a/app/addons/documentation/tests/nightwatch/checksDocsPage.js
+++ b/app/addons/documentation/tests/nightwatch/checksDocsPage.js
@@ -14,8 +14,7 @@
 
 module.exports = {
   'Check the documentation page exists': function (client) {
-    var waitTime = client.globals.maxWaitTime,
-        baseUrl = client.globals.test_settings.launch_url;
+    var waitTime = client.globals.maxWaitTime;
 
     client
       .loginToGUI()

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/changes/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/changes/components.react.jsx b/app/addons/documents/changes/components.react.jsx
index 1b9aefd..3262a21 100644
--- a/app/addons/documents/changes/components.react.jsx
+++ b/app/addons/documents/changes/components.react.jsx
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/changes/tests/changes.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/changes/tests/changes.componentsSpec.react.jsx b/app/addons/documents/changes/tests/changes.componentsSpec.react.jsx
index e145ff7..e138b6c 100644
--- a/app/addons/documents/changes/tests/changes.componentsSpec.react.jsx
+++ b/app/addons/documents/changes/tests/changes.componentsSpec.react.jsx
@@ -11,8 +11,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../../app";
-import FauxtonAPI from "../../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
 import Changes from "../components.react";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/changes/tests/changes.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/changes/tests/changes.storesSpec.js b/app/addons/documents/changes/tests/changes.storesSpec.js
index 20631d9..ebe4365 100644
--- a/app/addons/documents/changes/tests/changes.storesSpec.js
+++ b/app/addons/documents/changes/tests/changes.storesSpec.js
@@ -11,7 +11,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../../app";
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../stores";
 import utils from "../../../../../test/mocha/testUtils";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/components/header-docs-left.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/header-docs-left.jsx b/app/addons/documents/components/header-docs-left.jsx
index 85b893c..1d14778 100644
--- a/app/addons/documents/components/header-docs-left.jsx
+++ b/app/addons/documents/components/header-docs-left.jsx
@@ -12,17 +12,9 @@
 
 import React from "react";
 import ReactDOM from "react-dom";
-
-import ReactComponents from "../../components/react-components.react";
-
 import Helpers from "../helpers";
 import FauxtonAPI from '../../../core/api';
-
-
-import { Dropdown, MenuItem } from "react-bootstrap";
-
-const MenuDropDown = ReactComponents.MenuDropDown;
-
+import { Dropdown } from "react-bootstrap";
 
 function getModififyDbLinks (dbName) {
   return Helpers.getModifyDatabaseLinks(dbName);
@@ -38,7 +30,7 @@ function getDropdownItems (items) {
   return items.map((el, i) => {
 
     if (el.title && el.links) {
-      const items = el.links.map((subel, i2) => {
+      const items = el.links.map((subel) => {
         return <Item onClick={subel.onClick} icon={subel.icon} url={subel.url}>{subel.title}</Item>;
       });
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/components/header-docs-right.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/components/header-docs-right.jsx b/app/addons/documents/components/header-docs-right.jsx
index e269414..da14ef8 100644
--- a/app/addons/documents/components/header-docs-right.jsx
+++ b/app/addons/documents/components/header-docs-right.jsx
@@ -10,19 +10,11 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from '../../../app';
-import FauxtonAPI from '../../../core/api';
-import Documents from '../resources';
-import Databases from '../../databases/resources';
 import React from 'react';
 import QueryOptions from '../queryoptions/queryoptions.react';
-import QueryActions from '../queryoptions/actions';
 import JumpToDoc from './jumptodoc.react';
-import IndexResultStores from '../index-results/stores';
 import Actions from './actions';
 
-const { indexResultsStore } = IndexResultStores;
-
 const { QueryOptionsController } = QueryOptions;
 
 const RightAllDocsHeader = ({database}) =>

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/designdocinfo/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/designdocinfo/actions.js b/app/addons/documents/designdocinfo/actions.js
index 7e6ec4a..fec37a8 100644
--- a/app/addons/documents/designdocinfo/actions.js
+++ b/app/addons/documents/designdocinfo/actions.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 import Stores from "./stores";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/doc-editor/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/doc-editor/actions.js b/app/addons/documents/doc-editor/actions.js
index 95a0ade..e7a45ac 100644
--- a/app/addons/documents/doc-editor/actions.js
+++ b/app/addons/documents/doc-editor/actions.js
@@ -13,7 +13,7 @@
 /* global FormData */
 
 import app from "../../../app";
-import FauxtonAPI, { url } from "../../../core/api";
+import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 
 var xhr;
@@ -35,7 +35,7 @@ function initDocEditor (params) {
     if (params.onLoaded) {
       params.onLoaded();
     }
-  }, function (xhr, reason, msg) {
+  }, function (xhr) {
     if (xhr.status === 404) {
       errorNotification('The document does not exist.');
     }
@@ -97,7 +97,7 @@ function deleteDoc (doc) {
       });
       FauxtonAPI.navigate(FauxtonAPI.urls('allDocs', 'app', databaseName, ''));
     },
-    error: function (resp) {
+    error: function () {
       FauxtonAPI.addNotification({
         msg: 'Failed to delete your document!',
         type: 'error',

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/doc-editor/components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/doc-editor/components.react.jsx b/app/addons/documents/doc-editor/components.react.jsx
index 0a614fd..9c24396 100644
--- a/app/addons/documents/doc-editor/components.react.jsx
+++ b/app/addons/documents/doc-editor/components.react.jsx
@@ -102,7 +102,7 @@ var DocEditorController = React.createClass({
     Actions.saveDoc(this.state.doc, this.checkDocIsValid(), this.onSaveComplete);
   },
 
-  onSaveComplete: function (json) {
+  onSaveComplete: function () {
     this.getEditor().clearChanges();
   },
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/doc-editor/tests/doc-editor.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/doc-editor/tests/doc-editor.componentsSpec.react.jsx b/app/addons/documents/doc-editor/tests/doc-editor.componentsSpec.react.jsx
index 2a9b374..95db3da 100644
--- a/app/addons/documents/doc-editor/tests/doc-editor.componentsSpec.react.jsx
+++ b/app/addons/documents/doc-editor/tests/doc-editor.componentsSpec.react.jsx
@@ -10,19 +10,16 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../../app";
 import FauxtonAPI from "../../../../core/api";
 import React from "react";
 import ReactDOM from "react-dom";
 import Documents from "../../resources";
 import Components from "../components.react";
-import Stores from "../stores";
 import Actions from "../actions";
 import ActionTypes from "../actiontypes";
 import Databases from "../../../databases/base";
 import utils from "../../../../../test/mocha/testUtils";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 var assert = utils.assert;
 var docJSON = {
@@ -150,7 +147,7 @@ describe('DocEditorController', function () {
   });
 
   it('setting deleteDocModal=true in store shows modal', function () {
-    var el = TestUtils.renderIntoDocument(<Components.DocEditorController database={database} />, container);
+    TestUtils.renderIntoDocument(<Components.DocEditorController database={database} />, container);
     var doc = new Documents.Doc(docWithAttachmentsJSON, { database: database });
     FauxtonAPI.dispatch({
       type: ActionTypes.DOC_LOADED,
@@ -170,7 +167,7 @@ describe('DocEditorController', function () {
   });
 
   it('setting uploadDocModal=true in store shows modal', function () {
-    var el = TestUtils.renderIntoDocument(<Components.DocEditorController database={database} />, container);
+    TestUtils.renderIntoDocument(<Components.DocEditorController database={database} />, container);
     var doc = new Documents.Doc(docWithAttachmentsJSON, { database: database });
     FauxtonAPI.dispatch({
       type: ActionTypes.DOC_LOADED,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/doc-editor/tests/doc-editor.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/doc-editor/tests/doc-editor.storesSpec.js b/app/addons/documents/doc-editor/tests/doc-editor.storesSpec.js
index fb5480b..ac9c4bb 100644
--- a/app/addons/documents/doc-editor/tests/doc-editor.storesSpec.js
+++ b/app/addons/documents/doc-editor/tests/doc-editor.storesSpec.js
@@ -10,7 +10,6 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../../app";
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../stores";
 import Documents from "../../resources";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/header/header.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/header/header.react.jsx b/app/addons/documents/header/header.react.jsx
index caff6d4..342a1ef 100644
--- a/app/addons/documents/header/header.react.jsx
+++ b/app/addons/documents/header/header.react.jsx
@@ -10,16 +10,11 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from '../../../app';
-
-import FauxtonAPI from '../../../core/api';
 import React from 'react';
 import Actions from './header.actions';
 import Components from '../../components/react-components.react';
 import IndexResultStores from '../index-results/stores';
-import IndexResultsActions from '../index-results/actions';
 import QueryOptionsStore from '../queryoptions/stores';
-import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
 import { Button, ButtonGroup } from 'react-bootstrap';
 
 const { indexResultsStore } = IndexResultStores;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-editor/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-editor/actions.js b/app/addons/documents/index-editor/actions.js
index 6de2928..88f4789 100644
--- a/app/addons/documents/index-editor/actions.js
+++ b/app/addons/documents/index-editor/actions.js
@@ -14,11 +14,9 @@ import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import Documents from "../resources";
 import ActionTypes from "./actiontypes";
-import IndexResultsActions from "../index-results/actions";
 import SidebarActions from "../sidebar/actions";
 import SidebarActionTypes from "../sidebar/actiontypes";
 
-
 function selectReduceChanged (reduceOption) {
   FauxtonAPI.dispatch({
     type: ActionTypes.SELECT_REDUCE_CHANGE,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-editor/tests/actionsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-editor/tests/actionsSpec.js b/app/addons/documents/index-editor/tests/actionsSpec.js
index 797c9b6..4b09038 100644
--- a/app/addons/documents/index-editor/tests/actionsSpec.js
+++ b/app/addons/documents/index-editor/tests/actionsSpec.js
@@ -13,10 +13,7 @@
 import FauxtonAPI from "../../../../core/api";
 import Actions from "../actions";
 import Documents from "../../resources";
-import ActionTypes from "../actiontypes";
-import Stores from "../stores";
 import testUtils from "../../../../../test/mocha/testUtils";
-import IndexResultsActions from "../../index-results/actions";
 import sinon from "sinon";
 import "../../../documents/base";
 var assert = testUtils.assert;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-editor/tests/viewIndex.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-editor/tests/viewIndex.componentsSpec.react.jsx b/app/addons/documents/index-editor/tests/viewIndex.componentsSpec.react.jsx
index d36ee3a..b4ab031 100644
--- a/app/addons/documents/index-editor/tests/viewIndex.componentsSpec.react.jsx
+++ b/app/addons/documents/index-editor/tests/viewIndex.componentsSpec.react.jsx
@@ -12,9 +12,7 @@
 import FauxtonAPI from "../../../../core/api";
 import Resources from "../../resources";
 import Views from "../components.react";
-import Stores from "../stores";
 import Actions from "../actions";
-import Documents from "../../../documents/resources";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-results/actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-results/actions.js b/app/addons/documents/index-results/actions.js
index c0a4ceb..38c7765 100644
--- a/app/addons/documents/index-results/actions.js
+++ b/app/addons/documents/index-results/actions.js
@@ -10,11 +10,9 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 import Stores from "./stores";
-import Documents from "../resources";
 import SidebarActions from "../sidebar/actions";
 var indexResultsStore = Stores.indexResultsStore;
 
@@ -199,7 +197,7 @@ export default {
         errorMessage(ids);
         selectedIds = ids;
       })
-      .always(function (id) {
+      .always(function () {
         if (designDocs && hasDesignDocs) {
           SidebarActions.updateDesignDocs(designDocs);
         }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-results/index-results.components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-results/index-results.components.react.jsx b/app/addons/documents/index-results/index-results.components.react.jsx
index 0e84ff3..3b31a10 100644
--- a/app/addons/documents/index-results/index-results.components.react.jsx
+++ b/app/addons/documents/index-results/index-results.components.react.jsx
@@ -10,14 +10,11 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import React from "react";
 import Stores from "./stores";
 import Actions from "./actions";
 import Components from "../../components/react-components.react";
-import Documents from "../resources";
-import { SplitButton, MenuItem } from "react-bootstrap";
 import ReactSelect from "react-select";
 import "../../../../assets/js/plugins/prettify";
 import uuid from 'uuid';
@@ -49,7 +46,7 @@ var TableRow = React.createClass({
     data: React.PropTypes.object.isRequired
   },
 
-  onChange: function (e) {
+  onChange: function () {
     this.props.docChecked(this.props.el.id, this.props.el._rev);
   },
 

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-results/stores.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-results/stores.js b/app/addons/documents/index-results/stores.js
index 6281853..3348e79 100644
--- a/app/addons/documents/index-results/stores.js
+++ b/app/addons/documents/index-results/stores.js
@@ -15,10 +15,8 @@ import FauxtonAPI from "../../../core/api";
 import ActionTypes from "./actiontypes";
 import HeaderActionTypes from "../header/header.actiontypes";
 import PaginationActionTypes from "../pagination/actiontypes";
-import Documents from "../resources";
 import MangoHelper from "../mango/mango.helper";
 import Resources from "../resources";
-import DatabaseResources from "../../databases/resources";
 
 var Stores = {};
 
@@ -277,8 +275,7 @@ Stores.IndexResultsStore = FauxtonAPI.Store.extend({
   },
 
   getMangoDoc: function (doc, index) {
-    var selector,
-        header;
+    var header;
 
     if (doc.get('def') && doc.get('def').fields) {
 
@@ -637,7 +634,7 @@ Stores.IndexResultsStore = FauxtonAPI.Store.extend({
     return this._isLoading;
   },
 
-  selectDoc: function (doc, noReset) {
+  selectDoc: function (doc) {
 
     if (!doc._id || doc._id === '_all_docs') {
       return;

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-results/tests/index-results.componentsSpec.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-results/tests/index-results.componentsSpec.react.jsx b/app/addons/documents/index-results/tests/index-results.componentsSpec.react.jsx
index 11bf3a3..a32dc32 100644
--- a/app/addons/documents/index-results/tests/index-results.componentsSpec.react.jsx
+++ b/app/addons/documents/index-results/tests/index-results.componentsSpec.react.jsx
@@ -14,13 +14,11 @@ import Views from "../index-results.components.react";
 import IndexResultsActions from "../actions";
 import Stores from "../stores";
 import Documents from "../../resources";
-import Databases from "../../../databases/resources";
 import documentTestHelper from "../../tests/document-test-helper";
 import utils from "../../../../../test/mocha/testUtils";
 import React from "react";
 import ReactDOM from "react-dom";
 import TestUtils from "react-addons-test-utils";
-import sinon from "sinon";
 
 FauxtonAPI.router = new FauxtonAPI.Router([]);
 
@@ -80,13 +78,6 @@ describe('Index Results', function () {
   });
 
   describe('checkbox rendering', function () {
-    var opts = {
-      params: {},
-      database: {
-        safeID: function () { return '1';}
-      }
-    };
-
     beforeEach(function () {
       container = document.createElement('div');
       store.reset();

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/index-results/tests/index-results.storesSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/index-results/tests/index-results.storesSpec.js b/app/addons/documents/index-results/tests/index-results.storesSpec.js
index c84f9c9..2ac3de2 100644
--- a/app/addons/documents/index-results/tests/index-results.storesSpec.js
+++ b/app/addons/documents/index-results/tests/index-results.storesSpec.js
@@ -12,7 +12,6 @@
 
 import FauxtonAPI from "../../../../core/api";
 import Stores from "../stores";
-import ActionTypes from "../actiontypes";
 import Documents from "../../resources";
 import documentTestHelper from "../../tests/document-test-helper";
 import testUtils from "../../../../../test/mocha/testUtils";
@@ -69,8 +68,8 @@ describe('Index Results Store', function () {
       [1, 2],
       [3, 4]
     ];
-    var res = store.sortByTwoFields(a);
 
+    store.sortByTwoFields(a);
     assert.equal(a[0][0], 20);
     assert.equal(a[1][0], 3);
     assert.equal(a[2][0], 1);
@@ -82,8 +81,8 @@ describe('Index Results Store', function () {
       [1, "g"],
       [1, "a"]
     ];
-    var res = store.sortByTwoFields(a);
 
+    store.sortByTwoFields(a);
     assert.equal(a[0][1], 'a');
     assert.equal(a[1][1], 'g');
     assert.equal(a[2][1], 'z');
@@ -382,7 +381,7 @@ describe('#getMangoDoc', function () {
 
   it('supports custom header fields', function () {
     FauxtonAPI.registerExtension('mango:additionalIndexes', {
-      createHeader: function (doc) {
+      createHeader: function () {
         return ['foobar'];
       }
     });

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/layouts.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/layouts.js b/app/addons/documents/layouts.js
index ba03d72..229595f 100644
--- a/app/addons/documents/layouts.js
+++ b/app/addons/documents/layouts.js
@@ -11,13 +11,9 @@
 // the License.
 
 import React from 'react';
-import FauxtonAPI from "../../core/api";
-import {OnePane, OnePaneContent} from '../components/layouts';
 import IndexResultsComponents from './index-results/index-results.components.react';
 import ReactPagination from './pagination/pagination.react';
 import ReactHeader from './header/header.react';
-import {Breadcrumbs} from '../components/header-breadcrumbs';
-import {RightHeader} from './mangolayout';
 import {NotificationCenterButton} from '../fauxton/notifications/notifications.react';
 import {ApiBarWrapper} from '../components/layouts';
 import SidebarComponents from "./sidebar/sidebar.react";
@@ -136,7 +132,7 @@ export const ChangesSidebarLayout = ({docURL, database, endpoint, dbName, dropDo
   );
 };
 
-export const ViewsTabsSidebarLayout = ({showEditView, database, showIncludeAllDocs, docURL, endpoint, dbName, dropDownLinks}) => {
+export const ViewsTabsSidebarLayout = ({showEditView, database, docURL, endpoint, dbName, dropDownLinks}) => {
   const content = showEditView ? <IndexEditorComponents.EditorController /> : <DesignDocInfoComponents.DesignDocInfo />;
   return (
     <div id="dashboard" className="with-sidebar">

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/mango/mango.actions.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/mango/mango.actions.js b/app/addons/documents/mango/mango.actions.js
index 28cfd87..80825bc 100644
--- a/app/addons/documents/mango/mango.actions.js
+++ b/app/addons/documents/mango/mango.actions.js
@@ -10,14 +10,11 @@
 // License for the specific language governing permissions and limitations under
 // the License.
 
-import app from "../../../app";
 import FauxtonAPI from "../../../core/api";
 import Documents from "../resources";
 import ActionTypes from "./mango.actiontypes";
-import Stores from "./mango.stores";
 import IndexResultsStores from "../index-results/stores";
 import IndexResultActions from "../index-results/actions";
-var store = Stores.mangoStore;
 
 export default {
 
@@ -54,7 +51,7 @@ export default {
 
     mangoIndex
       .save()
-      .then(function (res) {
+      .then(function () {
         var url = '#' + FauxtonAPI.urls('mango', 'query-app', options.database.safeID());
 
         FauxtonAPI.dispatch({

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/14b0901d/app/addons/documents/mango/mango.components.react.jsx
----------------------------------------------------------------------
diff --git a/app/addons/documents/mango/mango.components.react.jsx b/app/addons/documents/mango/mango.components.react.jsx
index abc5ddc..dab725f 100644
--- a/app/addons/documents/mango/mango.components.react.jsx
+++ b/app/addons/documents/mango/mango.components.react.jsx
@@ -65,7 +65,6 @@ var MangoQueryEditorController = React.createClass({
   },
 
   render: function () {
-    var loadLines;
     if (this.state.isLoading) {
       return (
         <div className="mango-editor-wrapper">