Merge pull request #358 from standardnotes/lint-task
Revert "eslint --fix: 'expression ? true : false' => '!!expression'"
This commit is contained in:
@@ -102,7 +102,8 @@ function stringIsUuid(text) {
|
||||
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/
|
||||
);
|
||||
return !!matches;
|
||||
// eslint-disable-next-line no-unneeded-ternary
|
||||
return matches ? true : false;
|
||||
}
|
||||
|
||||
export function sortNotes({
|
||||
|
||||
@@ -193,7 +193,8 @@ class ComponentViewCtrl {
|
||||
const avoidFlickerTimeout = 7;
|
||||
this.$timeout(() => {
|
||||
this.loading = false;
|
||||
this.issueLoading = !!desktopError;
|
||||
// eslint-disable-next-line no-unneeded-ternary
|
||||
this.issueLoading = desktopError ? true : false;
|
||||
this.onLoad && this.onLoad(this.component);
|
||||
}, avoidFlickerTimeout);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user