ESlint no-multi-assign

and max-nested-callbacks, no-mixed-requires, max-statements-per-line
This commit is contained in:
Peter Jaszkowiak
2017-02-18 18:06:28 -07:00
parent 4bb49a7171
commit 93f38d4f30
13 changed files with 36 additions and 20 deletions

View File

@@ -131,7 +131,9 @@ module.exports = function (Categories) {
if (teaser) {
teaser.cid = topicData[index].cid;
teaser.parentCid = parseInt(parentCids[teaser.cid], 10) || 0;
teaser.tid = teaser.uid = teaser.user.uid = undefined;
teaser.tid = undefined;
teaser.uid = undefined;
teaser.user.uid = undefined;
teaser.topic = {
slug: topicData[index].slug,
title: validator.escape(String(topicData[index].title)),