Fix linting errors
This commit is contained in:
		@ -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's largest and fastest cloud network platforms.{' '}
 | 
			
		||||
          {hasStats && (
 | 
			
		||||
            <span>
 | 
			
		||||
              In the past month, Cloudflare served over{' '}
 | 
			
		||||
 | 
			
		||||
@ -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 = {};
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user