mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:11:57 +00:00
[SG-33302] Upgrade all client packages to use the latest version of the JSX transform (#34287)
Co-authored-by: gitstart-sourcegraph <gitstart@users.noreply.github.com>
This commit is contained in:
parent
ba62261f2c
commit
44082f5b73
@ -140,6 +140,9 @@ See https://handbook.sourcegraph.com/community/faq#is-all-of-sourcegraph-open-so
|
||||
'Consider using useTemporarySetting instead of useLocalStorage so settings are synced when users log in elsewhere. More info at https://docs.sourcegraph.com/dev/background-information/web/temporary_settings',
|
||||
},
|
||||
],
|
||||
// https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint
|
||||
'react/jsx-uses-react': 'off',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
|
||||
@ -48,7 +48,12 @@ module.exports = api => {
|
||||
},
|
||||
],
|
||||
'@babel/preset-typescript',
|
||||
'@babel/preset-react',
|
||||
[
|
||||
'@babel/preset-react',
|
||||
{
|
||||
runtime: 'automatic',
|
||||
},
|
||||
],
|
||||
],
|
||||
plugins: [['@babel/plugin-transform-typescript', { isTSX: true }], 'babel-plugin-lodash'],
|
||||
// Required for d3-array v1.2 (dependency of recharts). See https://github.com/babel/babel/issues/11038
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { boolean } from '@storybook/addon-knobs'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { LoaderInput } from './LoaderInput'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { ErrorAlert } from './alerts'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
import { noop } from 'lodash'
|
||||
import { EMPTY, of } from 'rxjs'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { cleanup, fireEvent } from '@testing-library/react'
|
||||
|
||||
import { renderWithBrandedContext } from '@sourcegraph/shared/src/testing'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
import * as H from 'history'
|
||||
import { of } from 'rxjs'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import { noop } from 'lodash'
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
// documentation of all the Bootstrap classes we have available in our app, please see refer to the Bootstrap
|
||||
// documentation for that. Its primary purpose is to show what Bootstrap's componenents look like with our styling
|
||||
// customizations.
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { number } from '@storybook/addon-knobs'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"module": "esnext",
|
||||
"sourceRoot": "src",
|
||||
"baseUrl": ".",
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useMemo, useState } from 'react'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
|
||||
import { ThemeProps } from '@sourcegraph/shared/src/theme'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import classNames from 'classnames'
|
||||
import { trimStart } from 'lodash'
|
||||
import { render } from 'react-dom'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import { noop } from 'lodash'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import classNames from 'classnames'
|
||||
import * as H from 'history'
|
||||
import { isEqual } from 'lodash'
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"paths": {
|
||||
"*": ["src/types/*", "../shared/src/types/*", "../common/src/types/*", "*"],
|
||||
},
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"resolveJsonModule": true,
|
||||
"rootDir": ".",
|
||||
"outDir": "out",
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"extends": "../../tsconfig.json",
|
||||
"references": [{ "path": "../common" }],
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"module": "commonjs",
|
||||
"sourceRoot": "src",
|
||||
"rootDir": ".",
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { SyntaxHighlightedSearchQuery } from './SyntaxHighlightedSearchQuery'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import { noop } from 'lodash'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen, waitFor } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import { act } from 'react-dom/test-utils'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import { Observable, of } from 'rxjs'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import { act } from 'react-dom/test-utils'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import { noop } from 'lodash'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { screen } from '@testing-library/react'
|
||||
|
||||
import { SearchPatternType } from '@sourcegraph/shared/src/schema'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import sinon from 'sinon'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { Progress } from '@sourcegraph/shared/src/search/stream'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { screen, waitFor } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { screen, within } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { QuickLink } from '@sourcegraph/shared/src/schema/settings.schema'
|
||||
import { renderWithBrandedContext } from '@sourcegraph/shared/src/testing'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
// We need to import `create` to make a mock store just for this story.
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "./out",
|
||||
"baseUrl": "./src",
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
},
|
||||
"include": ["./src/**/*", "./*.ts"],
|
||||
"exclude": ["../../node_modules", "./node_modules", "./out"],
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "./out",
|
||||
"baseUrl": "./src",
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
},
|
||||
"include": ["./src/**/*", "./*.ts"],
|
||||
"exclude": ["../../node_modules", "./node_modules", "./out"],
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
import * as H from 'history'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, screen, waitFor } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import * as H from 'history'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, act, RenderResult } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import { of, NEVER } from 'rxjs'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { cleanup, getAllByTestId, getByTestId } from '@testing-library/react'
|
||||
import { createBrowserHistory } from 'history'
|
||||
import FileIcon from 'mdi-react/FileIcon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { cleanup } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import _VisibilitySensor from 'react-visibility-sensor'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { fuzzyMatches, HighlightedMatches, Span } from './HighlightedMatches'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { LinkOrSpan } from './LinkOrSpan'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { Markdown } from './Markdown'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { Path } from './Path'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { renderWithBrandedContext } from '../testing'
|
||||
|
||||
import { RepoFileLink } from './RepoFileLink'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { RepoLink } from './RepoLink'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { cleanup, fireEvent, getByTestId, getByText } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import FileIcon from 'mdi-react/FileIcon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { renderWithBrandedContext } from '../../testing'
|
||||
|
||||
import { ActivationChecklist } from './ActivationChecklist'
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
import assert from 'assert'
|
||||
|
||||
import React from 'react'
|
||||
|
||||
import { createMemoryHistory } from 'history'
|
||||
import ReactDOM from 'react-dom'
|
||||
import * as sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import bitbucketStyles from '@atlassian/aui/dist/aui/css/aui.css'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
import classNames from 'classnames'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import { NEVER } from 'rxjs'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { ShortcutProvider } from '@slimsag/react-shortcuts'
|
||||
import { fireEvent, waitFor, screen } from '@testing-library/react'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { number, select, text } from '@storybook/addon-knobs'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { useEffect } from 'react'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
import { gql } from '@apollo/client'
|
||||
import { createMockClient } from '@apollo/client/testing'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { ReactNode } from 'react'
|
||||
import { ReactNode } from 'react'
|
||||
|
||||
import { RenderResult, render } from '@testing-library/react'
|
||||
import { MemoryHistory, createMemoryHistory } from 'history'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"module": "esnext",
|
||||
"sourceRoot": "src",
|
||||
"baseUrl": ".",
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"rootDir": ".",
|
||||
"outDir": "./out",
|
||||
"baseUrl": "./src",
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
},
|
||||
"references": [{ "path": "../shared" }, { "path": "../build-config" }, { "path": "../http-client" }],
|
||||
"include": ["./src/**/*", "./*.ts"],
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
"strict": true,
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../shared" },
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { cleanup, render } from '@testing-library/react'
|
||||
import { MemoryRouter } from 'react-router-dom'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import { createBrowserHistory } from 'history'
|
||||
import { BrowserRouter } from 'react-router-dom'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import sinon from 'sinon'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { Card } from '@sourcegraph/wildcard'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { createMemoryHistory, createLocation } from 'history'
|
||||
import { MemoryRouter } from 'react-router'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { createMemoryHistory, createLocation } from 'history'
|
||||
import { MemoryRouter } from 'react-router'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
|
||||
import { BrandedStory } from '@sourcegraph/branded/src/components/BrandedStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render, RenderResult, cleanup } from '@testing-library/react'
|
||||
import sinon from 'sinon'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { WebStory } from '../components/WebStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { MockedProvider } from '@apollo/client/testing'
|
||||
import { fireEvent, render } from '@testing-library/react'
|
||||
import * as sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { number } from '@storybook/addon-knobs'
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import { of } from 'rxjs'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { FC, useMemo } from 'react'
|
||||
import { FC, useMemo } from 'react'
|
||||
|
||||
import { encodeURIPathComponent } from '@sourcegraph/common'
|
||||
import { Badge, useObservable, Button, Link, Icon } from '@sourcegraph/wildcard'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
import { ParentSize } from '@visx/responsive'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { ReactElement, useMemo, useState, SVGProps } from 'react'
|
||||
import { ReactElement, useMemo, useState, SVGProps } from 'react'
|
||||
|
||||
import { curveLinear } from '@visx/curve'
|
||||
import { Group } from '@visx/group'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { forwardRef, memo } from 'react'
|
||||
import { forwardRef, memo } from 'react'
|
||||
|
||||
import { AxisLeft as VisxAxisLeft, AxisBottom as VisxAsixBottom } from '@visx/axis'
|
||||
import { AxisScale } from '@visx/axis/lib/types'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
|
||||
import { WebStory } from '../../../../../components/WebStory'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { ReactElement, useMemo } from 'react'
|
||||
import { ReactElement, useMemo } from 'react'
|
||||
|
||||
import { isDefined } from '@sourcegraph/common'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
|
||||
import { WebStory } from '../../../components/WebStory'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { ReactElement, SVGProps, useMemo, useState } from 'react'
|
||||
import { ReactElement, SVGProps, useMemo, useState } from 'react'
|
||||
|
||||
import { Group } from '@visx/group'
|
||||
import Pie, { PieArcDatum } from '@visx/shape/lib/shapes/Pie'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import React, { PointerEventHandler, ReactElement } from 'react'
|
||||
import { PointerEventHandler, ReactElement } from 'react'
|
||||
|
||||
import { Annotation, HtmlLabel, Connector } from '@visx/annotation'
|
||||
import { Group } from '@visx/group'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { WebStory } from '../components/WebStory'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import { subDays } from 'date-fns'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import { lazyComponent } from '@sourcegraph/shared/src/util/lazyComponent'
|
||||
|
||||
import { LayoutRouteProps } from '../routes'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { action } from '@storybook/addon-actions'
|
||||
import { boolean } from '@storybook/addon-knobs'
|
||||
import { DecoratorFn, Meta, Story } from '@storybook/react'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { render } from '@testing-library/react'
|
||||
import * as H from 'history'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { Link } from '@sourcegraph/wildcard'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { Link } from '@sourcegraph/wildcard'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react'
|
||||
import { createLocation } from 'history'
|
||||
import sinon from 'sinon'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { MockedResponse } from '@apollo/client/testing'
|
||||
import { fireEvent } from '@testing-library/react'
|
||||
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import classNames from 'classnames'
|
||||
|
||||
import { pluralize } from '@sourcegraph/common'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { storiesOf } from '@storybook/react'
|
||||
|
||||
import { LoaderButton } from './LoaderButton'
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
import { renderWithBrandedContext } from '@sourcegraph/shared/src/testing'
|
||||
|
||||
import { LoaderButton } from './LoaderButton'
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user