wuct/react-dom-utils

View on GitHub

Showing 4 of 8 total issues

Function mapPropsOnScroll has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const mapPropsOnScroll = (propsMapper, throttle) => BaseComponent => {
  class MapPropsOnScroll extends React.Component {
    scroll = {};

    componentDidMount = () => {
Severity: Minor
Found in src/mapPropsOnScroll.js - About 1 hr to fix

    Function mapPropsOnEvent has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    ) => BaseComponent => {
      class MapPropsOnEvent extends React.Component {
        state = {};
    
        componentDidMount = () => {
    Severity: Minor
    Found in src/mapPropsOnEvent.js - About 1 hr to fix

      Function withMousePosition has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const withMousePosition = throttle => BaseComponent => {
        class WithMousePosition extends React.Component {
          state = defaultState;
      
          componentDidMount = () => {
      Severity: Minor
      Found in src/withMousePosition.js - About 1 hr to fix

        Function withSize has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const withSize = throttle => BaseComponent => {
          class WithSize extends React.Component {
            state = {};
        
            /*
        Severity: Minor
        Found in src/withSize.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language