Fix linting, update codestyle file

pull/34/head
HardiReady 2018-04-27 09:29:30 +02:00
parent 216c19dccd
commit 2cd7541ca6
2 changed files with 16 additions and 14 deletions

View File

@ -1,6 +1,7 @@
<code_scheme name="OPT-CC" version="173">
<option name="FORMATTER_TAGS_ENABLED" value="true" />
<JSCodeStyleSettings>
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="USE_CHAINED_CALLS_GROUP_INDENTS" value="true" />
</JSCodeStyleSettings>
<TypeScriptCodeStyleSettings>
@ -10,6 +11,7 @@
<option name="RIGHT_MARGIN" value="120" />
<option name="KEEP_FIRST_COLUMN_COMMENT" value="false" />
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
<option name="SPACE_WITHIN_BRACKETS" value="true" />
<option name="CALL_PARAMETERS_WRAP" value="1" />
<option name="METHOD_PARAMETERS_WRAP" value="1" />
<option name="EXTENDS_KEYWORD_WRAP" value="1" />

View File

@ -84,7 +84,7 @@ export class CampaignPlayerDetailComponent implements OnInit {
// we can not directly push to target array, since only full reference changes trigger the refresh of data
const tmpSumData = [];
this.graphData.forEach(dataSet => {
tmpSumData.push({name: dataSet.label, value: dataSet.total})
tmpSumData.push({ name: dataSet.label, value: dataSet.total });
});
this.sumData = tmpSumData;
});
@ -110,9 +110,9 @@ export class CampaignPlayerDetailComponent implements OnInit {
}
dataSet.data = [killObj];
dataSet.refLine = [{value: total / playerLength, name: this.avgLabel}]
dataSet.refLine = [{ value: total / playerLength, name: this.avgLabel }];
dataSet.total = total;
})
});
}
navigateBack() {