Есть задача:
Returns the angle (in radians) between the hands of an analog clock for the specified Greenwich time.
Примеры:
* angleBetweenClockHands(Date.UTC(2016, 3, 5, 0, 0)) => 0
* angleBetweenClockHands(Date.UTC(2016, 3, 5, 3, 0)) => Math.PI/2
* angleBetweenClockHands(Date.UTC(2016, 3, 5, 15, 0))=> Math.PI / 2
* angleBetweenClockHands(Date.UTC(2016, 3, 5, 18, 0)) => Math.PI
решение:
function angleBetweenClockHands(date) {
return Math.PI / 180 * (((date.getUTCHours() % 12 || 12) * 30) - (date.getUTCMinutes() * 6));
}
Но ESLint ругается:
Подскажите как решить проблему