Showing 3 of 3 total issues
File index.stories.js
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useState, useRef } from 'react';
import jQuery from 'jquery';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
Function StoryComp
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const StoryComp = () => {
const changeButtonLabel = text(
'change button label',
'change range label'
);
Function buildOptions
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const buildOptions = () => {
const body = fs.readFileSync(
`${__dirname}/../node_modules/bootstrap-daterangepicker/website/index.html`
);
const $ = cheerio.load(body);