Revert "eslint --fix: 'expression ? true : false' => '!!expression'"

This reverts commit c0759980cc and also disables linting for the cases involved.
This commit is contained in:
Baptiste Grob
2020-02-04 16:35:38 +01:00
parent 94f5888961
commit 449169e9e0
2 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,8 @@ function stringIsUuid(text) {
const matches = text.match( const matches = text.match(
/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/ /\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b/
); );
return !!matches; // eslint-disable-next-line no-unneeded-ternary
return matches ? true : false;
} }
export function sortNotes({ export function sortNotes({

View File

@@ -193,7 +193,8 @@ class ComponentViewCtrl {
const avoidFlickerTimeout = 7; const avoidFlickerTimeout = 7;
this.$timeout(() => { this.$timeout(() => {
this.loading = false; this.loading = false;
this.issueLoading = !!desktopError; // eslint-disable-next-line no-unneeded-ternary
this.issueLoading = desktopError ? true : false;
this.onLoad && this.onLoad(this.component); this.onLoad && this.onLoad(this.component);
}, avoidFlickerTimeout); }, avoidFlickerTimeout);
} }