Fix linting errors

This commit is contained in:
Michael Jackson 2019-01-15 14:57:09 -08:00
parent 3fd7ef86f3
commit 7800180d3b
2 changed files with 10 additions and 10 deletions

View File

@ -313,7 +313,7 @@ export default class App extends React.Component {
<p>
The unpkg CDN is powered by{' '}
<a href="https://www.cloudflare.com">Cloudflare</a>, one of the
world's largest and fastest cloud network platforms.{' '}
world&apos;s largest and fastest cloud network platforms.{' '}
{hasStats && (
<span>
In the past month, Cloudflare served over{' '}

View File

@ -1,17 +1,17 @@
// import data from './data';
import * as cloudflare from './cloudflare';
// export function createDayKey(date) {
// return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`;
// }
export function createDayKey(date) {
return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`;
}
// export function createHourKey(date) {
// return `${createDayKey(date)}-${date.getUTCHours()}`;
// }
export function createHourKey(date) {
return `${createDayKey(date)}-${date.getUTCHours()}`;
}
// export function createMinuteKey(date) {
// return `${createHourKey(date)}-${date.getUTCMinutes()}`;
// }
export function createMinuteKey(date) {
return `${createHourKey(date)}-${date.getUTCMinutes()}`;
}
// function createScoresMap(array) {
// const map = {};