newyork-anthonyng/react-highlight-hooks

View on GitHub

Showing 1 of 1 total issue

Function useHighlighter has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function useHighlighter(props) {
  const [activeIndex, setActiveIndex] = React.useState(0);
  const [searchTerms, setSearchTerms] = React.useState(props.searchTerms || "");
  const [textToSearch, setTextToSearch] = React.useState(props.textToSearch);

Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language