Commit ac46402e by Johannes Edmeier

Fix eslint errors

parent 00614527
......@@ -22,7 +22,7 @@
"no-dupe-keys": 2,
"no-else-return": 0,
"no-empty": 2,
"no-empty-class": 2,
"no-empty-character-class": 2,
"no-empty-label": 2,
"no-eq-null": 0,
"no-eval": 2,
......@@ -31,7 +31,7 @@
"no-extra-boolean-cast": 2,
"no-extra-parens": 0,
"no-extra-semi": 2,
"no-extra-strict": 2,
"strict": [2, "global"],
"no-fallthrough": 2,
"no-floating-decimal": 0,
"no-func-assign": 2,
......@@ -71,7 +71,7 @@
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-space-before-semi": 2,
"semi-spacing": 2,
"no-sparse-arrays": 2,
"no-sync": 0,
"no-ternary": 0,
......@@ -84,7 +84,6 @@
"no-use-before-define": 0,
"no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
"no-with": 2,
"no-wrap-func": 2,
"yoda": [2, "never"],
"block-scoped-var": 0,
......@@ -119,7 +118,6 @@
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-unary-word-ops": 0,
"strict": 2,
"use-isnan": 2,
"valid-jsdoc": 0,
"valid-typeof": 2,
......
......@@ -40,7 +40,7 @@ module.exports = function ($scope, application, ApplicationLogging) {
$scope.reload = function (prefix) {
for (var i in $scope.loggers) {
if (prefix == null || prefix === 'ROOT' || $scope.loggers[i].name.indexOf(
if (prefix === null || prefix === 'ROOT' || $scope.loggers[i].name.indexOf(
prefix) === 0) {
$scope.loggers[i].level = null;
}
......@@ -72,7 +72,7 @@ module.exports = function ($scope, application, ApplicationLogging) {
}
}, function (responses) {
for (var j in responses) {
if (responses[j].error != null) {
if (responses[j].error !== null) {
$scope.error = responses[j];
break;
}
......
......@@ -33,7 +33,7 @@ module.exports = function ($scope, $location, $interval, $state, $filter, Applic
app.info = {};
//find application in known applications and copy state --> less flickering
for (var j = 0; $scope.applications != null && j < $scope.applications.length; j++) {
for (var j = 0; $scope.applications && j < $scope.applications.length; j++) {
if (app.id === $scope.applications[j].id) {
app.infoShort = $scope.applications[j].infoShort;
app.infoDetails = $scope.applications[j].infoDetails;
......
......@@ -26,7 +26,7 @@ module.exports = function () {
if (lastIndex !== -1) {
dotArray.push(lastIndex);
}
} while (lastIndex !== -1)
} while (lastIndex !== -1);
// remove dots to preserve more than the last element
for (var i = 0; i < preserveLast - 1; i++) {
......
......@@ -20,7 +20,7 @@ module.exports = function () {
for (var metric in metrics) {
for (var i in regexes) {
var match = regexes[i].exec(metric);
if (match != null) {
if (match !== null) {
callbacks[i](metric, match, metrics[metric]);
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment