Fix Prettier using correct version (1.19.1)

This commit is contained in:
Penar Musaraj
2019-11-15 10:34:26 -05:00
parent 655e610357
commit cc8baa1a7c
26 changed files with 102 additions and 41 deletions

View File

@@ -34,7 +34,10 @@ export default MultiSelectComponent.extend({
},
mutateValues(values) {
this.set("categories", values.map(v => Category.findById(v)));
this.set(
"categories",
values.map(v => Category.findById(v))
);
},
filterComputedContent(computedContent, computedValues, filter) {

View File

@@ -132,7 +132,7 @@ export default DropdownSelectBoxComponent.extend({
(action !== REPLY && _topicSnapshot) ||
(action === REPLY &&
_topicSnapshot &&
(options.userAvatar && options.userLink && options.topicLink))
options.userAvatar && options.userLink && options.topicLink)
) {
items.push({
name: I18n.t("composer.composer_actions.reply_to_topic.label"),

View File

@@ -54,7 +54,10 @@ export default MultiSelectComponent.extend(TagsMixin, {
},
mutateValues(values) {
this.set("tags", values.filter(v => v));
this.set(
"tags",
values.filter(v => v)
);
},
@discourseComputed("tags")

View File

@@ -27,7 +27,10 @@ export default MultiSelectComponent.extend(TagsMixin, {
},
mutateValues(values) {
this.set("tagGroups", values.filter(v => v));
this.set(
"tagGroups",
values.filter(v => v)
);
},
@discourseComputed("tagGroups")

View File

@@ -187,7 +187,7 @@ export default Mixin.create({
const offsetBottom = this.element.getBoundingClientRect().bottom;
const windowWidth = $(window).width();
if (this.fullWidthOnMobile && (this.site && this.site.isMobileDevice)) {
if (this.fullWidthOnMobile && this.site && this.site.isMobileDevice) {
const margin = 10;
const relativeLeft =
$(this.element).offset().left - $(window).scrollLeft();