diff --git a/.eslintrc b/.eslintrc index 3c7dacb40..6c6c8804f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -30,7 +30,6 @@ rules: brace-style: 1 strict: 1 no-extra-parens: 1 - eqeqeq: 1 consistent-return: 1 callback-return: 1 guard-for-in: 1 diff --git a/horizon/static/framework/util/filters/filters.js b/horizon/static/framework/util/filters/filters.js index a79d4a4a2..c6b4a514d 100644 --- a/horizon/static/framework/util/filters/filters.js +++ b/horizon/static/framework/util/filters/filters.js @@ -129,7 +129,7 @@ function noValueFilter() { return function (input) { if (input === null || angular.isUndefined(input) || - (angular.isString(input) && '' == input.trim())) { + (angular.isString(input) && '' === input.trim())) { return gettext('-'); } else { return input; diff --git a/horizon/static/framework/widgets/magic-search/magic-overrides.directive.js b/horizon/static/framework/widgets/magic-search/magic-overrides.directive.js index 1523eb3ee..a21d2190b 100644 --- a/horizon/static/framework/widgets/magic-search/magic-overrides.directive.js +++ b/horizon/static/framework/widgets/magic-search/magic-overrides.directive.js @@ -139,7 +139,7 @@ angular.forEach(facets, function(facet) { var facetParts = facet.split('='); angular.forEach($scope.facetsObj, function (value) { - if (value.name == facetParts[0]) { + if (value.name === facetParts[0]) { if (angular.isUndefined(value.options)) { $scope.currentSearch.push({ 'name': facet, @@ -154,7 +154,7 @@ } else { angular.forEach(value.options, function (option) { - if (option.key == facetParts[1]) { + if (option.key === facetParts[1]) { $scope.currentSearch.push({ 'name': facet, 'label': [value.label, option.label] diff --git a/horizon/static/framework/widgets/magic-search/st-magic-search.directive.js b/horizon/static/framework/widgets/magic-search/st-magic-search.directive.js index de1ff55b6..3e4d273bc 100644 --- a/horizon/static/framework/widgets/magic-search/st-magic-search.directive.js +++ b/horizon/static/framework/widgets/magic-search/st-magic-search.directive.js @@ -100,7 +100,7 @@ if (scope.filterFacets) { var isServerFacet = scope.filterFacets.some(function checkIsServer(facet) { - return facet.name == predString && facet.isServer; + return facet.name === predString && facet.isServer; }); if (isServerFacet) {