src/index.js
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;
propType "height" is not required, but has no corresponding defaultProp declaration. Open
Open
height: React.PropTypes.number,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
propType "dir" is not required, but has no corresponding defaultProp declaration. Open
Open
dir: React.PropTypes.string,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
propType "className" is not required, but has no corresponding defaultProp declaration. Open
Open
className: React.PropTypes.string,
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/
Do not use Array index in keys Open
Open
key={index}
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/