DEV: Fix lint. (#7824)

This commit is contained in:
Bianca Nenciu 2019-06-28 21:24:09 +03:00 committed by Régis Hanol
parent aa9b9e1930
commit 4f97f85178
3 changed files with 11 additions and 8 deletions

View File

@ -69,7 +69,8 @@ const Post = RestModel.extend({
return postNumber === 1 ? `${baseUrl}/1` : baseUrl;
},
@computed("username") usernameUrl: userPath,
@computed("username")
usernameUrl: userPath,
topicOwner: propertyEqual("topic.details.created_by.id", "user_id"),

View File

@ -205,13 +205,17 @@ const User = RestModel.extend({
return suspendedTill && moment(suspendedTill).isAfter();
},
@computed("suspended_till") suspendedForever: isForever,
@computed("suspended_till")
suspendedForever: isForever,
@computed("silenced_till") silencedForever: isForever,
@computed("silenced_till")
silencedForever: isForever,
@computed("suspended_till") suspendedTillDate: longDate,
@computed("suspended_till")
suspendedTillDate: longDate,
@computed("silenced_till") silencedTillDate: longDate,
@computed("silenced_till")
silencedTillDate: longDate,
changeUsername(new_username) {
return ajax(userPath(`${this.username_lower}/preferences/username`), {

View File

@ -191,9 +191,7 @@ class Compiler {
const attrString = `{${attributes.join(", ")}}`;
instructions.push(
`${parentAcc}.push(virtualDom.h('${
node.tag
}', ${attrString}, ${innerAcc}));`
`${parentAcc}.push(virtualDom.h('${node.tag}', ${attrString}, ${innerAcc}));`
);
} else {
instructions.push(