From 9ebe2d96ddc532abab475b27e9504bc8f31a606e Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 10 Feb 2017 14:34:56 +1300 Subject: [PATCH] chore(jshint): update jshint library and configuration (#581) --- app/components/stats/statsController.js | 12 ++++++------ gruntfile.js | 3 ++- package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/components/stats/statsController.js b/app/components/stats/statsController.js index 475af604c..d3ce83d59 100644 --- a/app/components/stats/statsController.js +++ b/app/components/stats/statsController.js @@ -117,12 +117,6 @@ function (Pagination, $scope, Messages, $timeout, Container, ContainerTop, $stat }); $scope.networkLegend = $sce.trustAsHtml(networkChart.generateLegend()); - function setUpdateStatsTimeout() { - if(!destroyed) { - timeout = $timeout(updateStats, 5000); - } - } - function updateStats() { Container.stats({id: $stateParams.id}, function (d) { var arr = Object.keys(d).map(function (key) { @@ -206,6 +200,12 @@ function (Pagination, $scope, Messages, $timeout, Container, ContainerTop, $stat } }); + function setUpdateStatsTimeout() { + if(!destroyed) { + timeout = $timeout(updateStats, 5000); + } + } + Container.get({id: $stateParams.id}, function (d) { $scope.container = d; }, function (e) { diff --git a/gruntfile.js b/gruntfile.js index 825749762..cbd083dfc 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -338,7 +338,8 @@ module.exports = function (grunt) { curly: true, eqeqeq: true, immed: true, - latedef: true, + indent: 2, + latedef: 'nofunc', newcap: true, noarg: true, sub: true, diff --git a/package.json b/package.json index c1400d2c9..14280b817 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "grunt-contrib-concat": "~0.1.3", "grunt-contrib-copy": "~0.4.0", "grunt-contrib-cssmin": "^1.0.2", - "grunt-contrib-jshint": "~0.2.0", + "grunt-contrib-jshint": "^1.1.0", "grunt-contrib-uglify": "^0.9.2", "grunt-contrib-watch": "~0.3.1", "grunt-filerev": "^2.3.1",