Showing 63 of 333 total issues
File Select.tsx
has 645 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-unused-expressions, react/no-unused-state */
import React from 'react'
import PropTypes from 'prop-types'
import helper from 'immutability-helper'
import SearchIcon from '../Icon/Icons/Search'
File Select.test.tsx
has 412 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable react/jsx-filename-extension */
import React from 'react'
// @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'enzy... Remove this comment to see the full error message
import Enzyme, { shallow, mount } from 'enzyme'
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'
File webpack.config.prod.js
has 364 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict'
const fs = require('fs')
const path = require('path')
const webpack = require('webpack')
File NavBar.tsx
has 335 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import {
Cross,
Function render
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
// @ts-expect-error TS(2339) FIXME: Property 'products' does not exist on type 'Readon... Remove this comment to see the full error message
products,
// @ts-expect-error TS(2339) FIXME: Property 'activeProduct' does not exist on type 'R... Remove this comment to see the full error message
Select
has 29 functions (exceeds 20 allowed). Consider refactoring. Open
Open
export default class Select extends React.Component {
// @ts-expect-error TS(7006) FIXME: Parameter 'itemsA' implicitly has an 'any' type.
static sameItems = (itemsA, itemsB) =>
itemsA.length === itemsB.length &&
itemsA.every(
File generateIconComponents.js
has 302 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-console */
require('dotenv').config()
const fs = require('fs')
Function ModalTest
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ModalTest() {
const [modalOpen, openModal] = useState(false)
return (
<div style={{ width: '100%', height: '400px', position: 'relative' }}>
<Button
File style.ts
has 284 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* eslint-disable no-confusing-arrow */
import style, { css } from 'styled-components'
import {
grayDarker,
blue,
Function main
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function main() {
let spinner
try {
spinner = ora(`Loading BDS Icons Figma file: ${figmaIconFileUrl}`).start()
const figmaFile = await getFigmaFile(figmaIconFileId)
Function render
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { left, currentSlideIndex } = this.state
// @ts-expect-error TS(2339) FIXME: Property 'width' does not exist on type 'Readonly<... Remove this comment to see the full error message
const { children, width, rightNavigation, withIndicators } = this.props
Function ExampleSimpleModal
has 66 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ExampleSimpleModal() {
const [modalOpen, openModal] = useState(false)
const [changed, setChanged] = useState(false)
const [showingModal, setShowingModal] = useState(false)
Function render
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
children,
// @ts-expect-error TS(2339) FIXME: Property 'background' does not exist on type 'Read... Remove this comment to see the full error message
background,
File webpack.config.dev.js
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict'
const fs = require('fs')
const path = require('path')
const resolve = require('resolve')
Function render
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
// @ts-expect-error TS(2339) FIXME: Property 'disabled' does not exist on type 'Readon... Remove this comment to see the full error message
disabled,
// @ts-expect-error TS(2339) FIXME: Property 'hasError' does not exist on type 'Readon... Remove this comment to see the full error message
Function ExampleSimpleModal
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ExampleSimpleModal() {
const [changed, setChanged] = useState(false)
useEffect(() => {
setTimeout(() => {
Function ExampleSimpleModal
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ExampleSimpleModal() {
const [changed, setChanged] = useState(false)
useEffect(() => {
setTimeout(() => {
Function createPackageFile
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function createPackageFile() {
return new Promise((resolve) => {
// read from package.json
fse.readFile(
path.resolve(__dirname, '../package.json'),
Function build
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function build(previousFileSizes) {
console.info('Creating an optimized production build...')
const compiler = webpack(config)
return new Promise((resolve, reject) => {
Function ExampleOnOpn
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function ExampleOnOpn() {
return (
<Select
onSelectClick={() => console.info('Main select clicked')}
label="Click Me"