Fix eslint errors

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-12-07 20:32:35 +01:00
committed by Julius Härtl
parent 9fa88cac6b
commit d386ab80d4
4 changed files with 23 additions and 21 deletions

View File

@@ -31,4 +31,7 @@ rules:
no-unused-vars: warn no-unused-vars: warn
no-use-before-define: error no-use-before-define: error
semi: ["error", "always"] semi: ["error", "always"]
indent: ["error", "tab"] indent:
- error
- tab
- SwitchCase: 1

View File

@@ -45,7 +45,6 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
return $state.params; return $state.params;
}, function (params) { }, function (params) {
$scope.params = params; $scope.params = params;
console.log(params);
}, true); }, true);
$scope.params = $state; $scope.params = $state;
@@ -87,7 +86,7 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St
$scope.stacksData = StackService; $scope.stacksData = StackService;
$scope.stacks = []; $scope.stacks = [];
$scope.$watch('stacksData', function (value) { $scope.$watch('stacksData', function () {
$scope.refreshData(); $scope.refreshData();
}, true); }, true);
$scope.refreshData = function () { $scope.refreshData = function () {