Commit ac46402e by Johannes Edmeier

Fix eslint errors

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