Fix eslint rules (#5117)

* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
This commit is contained in:
Sergii Paryzhskyi
2016-10-25 21:34:47 +02:00
committed by Julian Lam
parent 727710fbd9
commit e515b791da
53 changed files with 132 additions and 139 deletions

View File

@@ -309,7 +309,7 @@
labels = [],
tmpDate;
for(var x = 29;x >= 0;x--) {
for(var x = 29; x >= 0; x--) {
tmpDate = new Date(currentDay - (1000 * 60 * 60 * 24 * x));
labels.push(months[tmpDate.getMonth()] + ' ' + tmpDate.getDate());
}
@@ -443,7 +443,7 @@
};
if (typeof String.prototype.startsWith != 'function') {
String.prototype.startsWith = function (prefix){
String.prototype.startsWith = function (prefix) {
if (this.length < prefix.length) {
return false;
}