Showing 3 of 7 total issues
File index.js
has 474 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { PureComponent } from 'react';
import debounce from 'lodash.debounce';
import trottle from 'lodash.throttle';
import styled from 'styled-components';
import Immutable from 'immutable';
Typeahead
has 26 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Typeahead extends PureComponent {
static defaultProps = {
value: '',
dropdownVisible: false,
Function componentWillReceiveProps
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
componentWillReceiveProps(nextProps) {
const dir = getDirection(this._inputTypeAhead._input);
const value = String(nextProps.value);
const displayKey = nextProps.displayKey;
const options = nextProps.options;