Showing 4 of 4 total issues
File mahjong.jsx
has 549 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { Component } from "react";
import Helmet from "react-helmet";
import { Line } from "react-chartjs-2";
import Dropdown from "react-dropdown";
import palette from "google-palette";
Function componentDidMount
has 276 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
componentDidMount() {
this.updateWindowDimensions();
window.addEventListener("resize", this.updateWindowDimensions);
console.log("componentDidMount");
File index.jsx
has 270 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import Helmet from "react-helmet";
import { graphql } from "gatsby";
import Layout from "../layout";
import PostListing from "../components/PostListing/PostListing";
Function createGraphDataset
has 158 lines of code (exceeds 150 allowed). Consider refactoring. Open
Open
createGraphDataset(activeSeason, activeRoom, activeType) {
console.log(`${activeSeason} ${activeRoom} ${activeType}`);
const graphData = {
labels: this.state.data.players.James.house.three.overall.data.map(
p => (p.t ? p.t : 0)