Merge branch 'no-multi-space' into 'master'
Adds linter rule for no multi spaces See merge request bloodyhealth/drip!263
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
"ignoreComments": true,
|
"ignoreComments": true,
|
||||||
"ignoreTemplateLiterals": true
|
"ignoreTemplateLiterals": true
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"no-multi-spaces": 2,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-1
@@ -67,7 +67,9 @@ export default function config(opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getCycleForCycleStartDay(startDay, todayDate) {
|
function getCycleForCycleStartDay(startDay, todayDate) {
|
||||||
const todayAsLocalDate = todayDate ? LocalDate.parse(todayDate) : LocalDate.now()
|
const todayAsLocalDate = todayDate
|
||||||
|
? LocalDate.parse(todayDate)
|
||||||
|
: LocalDate.now()
|
||||||
const cycleStartIndex = cycleDaysSortedByDate.indexOf(startDay)
|
const cycleStartIndex = cycleDaysSortedByDate.indexOf(startDay)
|
||||||
const i = cycleStartsSortedByDate.indexOf(startDay)
|
const i = cycleStartsSortedByDate.indexOf(startDay)
|
||||||
const startLocalDate = LocalDate.parse(startDay.date)
|
const startLocalDate = LocalDate.parse(startDay.date)
|
||||||
|
|||||||
Reference in New Issue
Block a user