diff --git a/client/branded/src/global-styles/GlobalStylesStory/FormFieldVariants/FormFieldVariants.tsx b/client/branded/src/global-styles/GlobalStylesStory/FormFieldVariants/FormFieldVariants.tsx index f1f92f921769..c81d4e2b0ce4 100644 --- a/client/branded/src/global-styles/GlobalStylesStory/FormFieldVariants/FormFieldVariants.tsx +++ b/client/branded/src/global-styles/GlobalStylesStory/FormFieldVariants/FormFieldVariants.tsx @@ -1,4 +1,3 @@ -/* eslint-disable react/jsx-no-bind */ import classNames from 'classnames' import React from 'react' import 'storybook-addon-designs' diff --git a/client/browser/src/shared/code-hosts/shared/codeHost.tsx b/client/browser/src/shared/code-hosts/shared/codeHost.tsx index f7d8f678ddf3..f015e9d323e1 100644 --- a/client/browser/src/shared/code-hosts/shared/codeHost.tsx +++ b/client/browser/src/shared/code-hosts/shared/codeHost.tsx @@ -762,7 +762,6 @@ export function handleCodeHost({ repoExistsOrError={repoExistsOrError} showSignInButton={showSignInButton} // The bound function is constant - // eslint-disable-next-line react/jsx-no-bind onSignInClose={nextSignInClose} onConfigureSourcegraphClick={isInPage ? undefined : onConfigureSourcegraphClick} />, @@ -818,7 +817,6 @@ export function handleCodeHost({ extensionsController={extensionsController} buttonProps={codeViewEvent.toolbarButtonProps} // The bound function is constant - // eslint-disable-next-line react/jsx-no-bind onSignInClose={nextSignInClose} location={H.createLocation(window.location)} />, @@ -1155,7 +1153,6 @@ export function handleCodeHost({ location={H.createLocation(window.location)} scope={scopeEditor} // The bound function is constant - // eslint-disable-next-line react/jsx-no-bind onSignInClose={nextSignInClose} />, mount diff --git a/client/sandboxes/code-insights/src/demo.tsx b/client/sandboxes/code-insights/src/demo.tsx index 2640b168b7df..9989ae2f2be8 100644 --- a/client/sandboxes/code-insights/src/demo.tsx +++ b/client/sandboxes/code-insights/src/demo.tsx @@ -60,7 +60,6 @@ export function App(): ReactElement { } > - {/* eslint-disable react/jsx-no-bind */} {routes.map(({ render, ...route }) => ( - {/* eslint-enable react/jsx-no-bind */} diff --git a/client/shared/src/components/VirtualList.tsx b/client/shared/src/components/VirtualList.tsx index d5062ebe483e..357189192a33 100644 --- a/client/shared/src/components/VirtualList.tsx +++ b/client/shared/src/components/VirtualList.tsx @@ -55,7 +55,6 @@ export class VirtualList extends React.PureC
{this.props.items.slice(0, this.props.itemsToShow).map((item, index) => ( this.onChangeVisibility(isVisible, index)} key={this.props.itemKey(item)} containment={this.props.containment} diff --git a/client/storybook/src/redesign-toggle-toolbar/RedesignToggleStorybook.tsx b/client/storybook/src/redesign-toggle-toolbar/RedesignToggleStorybook.tsx index a172a911a2e6..c1adb5e59a97 100644 --- a/client/storybook/src/redesign-toggle-toolbar/RedesignToggleStorybook.tsx +++ b/client/storybook/src/redesign-toggle-toolbar/RedesignToggleStorybook.tsx @@ -15,7 +15,6 @@ export const RedesignToggleStorybook = (): ReactElement => { key="redesign-toolbar" active={isRedesignEnabled} title={isRedesignEnabled ? 'Disable redesign theme' : 'Enable redesign theme'} - // eslint-disable-next-line react/jsx-no-bind onClick={handleRedesignToggle} > diff --git a/client/web/src/Layout.tsx b/client/web/src/Layout.tsx index c1de3cf02c7e..e502c060dfae 100644 --- a/client/web/src/Layout.tsx +++ b/client/web/src/Layout.tsx @@ -314,7 +314,6 @@ export const Layout: React.FunctionComponent = props => { } > - {/* eslint-disable react/jsx-no-bind */} {props.routes.map( ({ render, condition = () => true, ...route }) => condition(context) && ( @@ -330,7 +329,6 @@ export const Layout: React.FunctionComponent = props => { /> ) )} - {/* eslint-enable react/jsx-no-bind */} diff --git a/client/web/src/SourcegraphWebApp.tsx b/client/web/src/SourcegraphWebApp.tsx index 80092ad3288b..5f489733eb61 100644 --- a/client/web/src/SourcegraphWebApp.tsx +++ b/client/web/src/SourcegraphWebApp.tsx @@ -467,7 +467,6 @@ class ColdSourcegraphWebApp extends React.Component - {/* eslint-disable react/jsx-no-bind */} ( @@ -529,7 +528,6 @@ class ColdSourcegraphWebApp extends React.Component )} /> - {/* eslint-enable react/jsx-no-bind */} (({ match, ...outerProps }) => ( - {/* eslint-disable react/jsx-no-bind */} } path={match.url} exact={true} /> - {/* eslint-enable react/jsx-no-bind */} )) @@ -99,7 +97,6 @@ export const NamespaceBatchChangesArea = withAuthenticatedUser< NamespaceBatchChangesAreaProps & { authenticatedUser: AuthenticatedUser } >(({ match, namespaceID, ...outerProps }) => ( - {/* eslint-disable react/jsx-no-bind */} - {/* eslint-enable react/jsx-no-bind */} )) diff --git a/client/web/src/enterprise/code-monitoring/global/GlobalCodeMonitoringArea.tsx b/client/web/src/enterprise/code-monitoring/global/GlobalCodeMonitoringArea.tsx index 9e754f125bc7..8e10966be9c1 100644 --- a/client/web/src/enterprise/code-monitoring/global/GlobalCodeMonitoringArea.tsx +++ b/client/web/src/enterprise/code-monitoring/global/GlobalCodeMonitoringArea.tsx @@ -60,7 +60,6 @@ export const AuthenticatedCodeMonitoringArea = withAuthenticatedUser - {/* eslint-disable react/jsx-no-bind */} } diff --git a/client/web/src/enterprise/extensions/registry/RegistryArea.tsx b/client/web/src/enterprise/extensions/registry/RegistryArea.tsx index d9f4e7d9cbc7..d16bb4d881a9 100644 --- a/client/web/src/enterprise/extensions/registry/RegistryArea.tsx +++ b/client/web/src/enterprise/extensions/registry/RegistryArea.tsx @@ -43,7 +43,6 @@ export const RegistryArea: React.FunctionComponent = ({ return (
- {/* eslint-disable react/jsx-no-bind */} = ({ )} /> - {/* eslint-enable react/jsx-no-bind */} +
diff --git a/client/web/src/extensions/ExtensionsArea.tsx b/client/web/src/extensions/ExtensionsArea.tsx index d985c22fdaf2..f95687f0e22f 100644 --- a/client/web/src/extensions/ExtensionsArea.tsx +++ b/client/web/src/extensions/ExtensionsArea.tsx @@ -91,7 +91,6 @@ export const ExtensionsArea: React.FunctionComponent = prop /> {props.routes.map( - /* eslint-disable react/jsx-no-bind */ ({ path, exact, condition = () => true, render }) => condition(context) && ( = prop render={routeComponentProps => render({ ...context, ...routeComponentProps })} /> ) - /* eslint-enable react/jsx-no-bind */ )} diff --git a/client/web/src/extensions/ExtensionsQueryInputToolbar.tsx b/client/web/src/extensions/ExtensionsQueryInputToolbar.tsx index 8e3fa043d7a4..465a37cf1808 100644 --- a/client/web/src/extensions/ExtensionsQueryInputToolbar.tsx +++ b/client/web/src/extensions/ExtensionsQueryInputToolbar.tsx @@ -65,22 +65,16 @@ export const ExtensionsQueryInputToolbar: React.FunctionComponent = ({ {enablementFilterToLabel[enablementFilter]} - setEnablementFilter('all')} - disabled={enablementFilter === 'all'} - > + setEnablementFilter('all')} disabled={enablementFilter === 'all'}> Show all setEnablementFilter('enabled')} disabled={enablementFilter === 'enabled'} > Show enabled extensions setEnablementFilter('disabled')} disabled={enablementFilter === 'disabled'} > diff --git a/client/web/src/extensions/components/ActionItemsBar.tsx b/client/web/src/extensions/components/ActionItemsBar.tsx index 14e9a9c08de4..097e4f3edeba 100644 --- a/client/web/src/extensions/components/ActionItemsBar.tsx +++ b/client/web/src/extensions/components/ActionItemsBar.tsx @@ -211,7 +211,6 @@ export const ActionItemsBar = React.memo(props => { return (
{/* To be clear to users that this isn't an error reported by extensions about e.g. the code they're viewing. */} - {/* eslint-disable-next-line react/jsx-no-bind */} Component error: {error.message}}> {canScrollNegative && ( diff --git a/client/web/src/extensions/components/StatusBar.tsx b/client/web/src/extensions/components/StatusBar.tsx index 1a7e340e2434..691cae49ff2c 100644 --- a/client/web/src/extensions/components/StatusBar.tsx +++ b/client/web/src/extensions/components/StatusBar.tsx @@ -81,7 +81,6 @@ export const StatusBar: React.FunctionComponent = ({ location={location} // To be clear to users that this isn't an error reported by extensions // about e.g. the code they're viewing. - // eslint-disable-next-line react/jsx-no-bind render={error => (
Status bar component error: {error.message} diff --git a/client/web/src/extensions/extension/ExtensionArea.tsx b/client/web/src/extensions/extension/ExtensionArea.tsx index 939f82bb4fae..c5ca5a069bb4 100644 --- a/client/web/src/extensions/extension/ExtensionArea.tsx +++ b/client/web/src/extensions/extension/ExtensionArea.tsx @@ -227,7 +227,6 @@ export class ExtensionArea extends React.Component { }> {this.props.routes.map( - /* eslint-disable react/jsx-no-bind */ ({ path, render, exact, condition = () => true }) => condition(context) && ( { } /> ) - /* eslint-enable react/jsx-no-bind */ )} diff --git a/client/web/src/insights/InsightsRouter.tsx b/client/web/src/insights/InsightsRouter.tsx index 51f6f009a80b..7735313e1b98 100644 --- a/client/web/src/insights/InsightsRouter.tsx +++ b/client/web/src/insights/InsightsRouter.tsx @@ -52,7 +52,6 @@ export const InsightsRouter: React.FunctionComponent = prop return ( ( )} @@ -64,13 +63,11 @@ export const InsightsRouter: React.FunctionComponent = prop <> } /> } /> diff --git a/client/web/src/insights/pages/creation/search-insight/components/form-series/FormSeries.tsx b/client/web/src/insights/pages/creation/search-insight/components/form-series/FormSeries.tsx index c3d8acf64610..c434c27bb2c5 100644 --- a/client/web/src/insights/pages/creation/search-insight/components/form-series/FormSeries.tsx +++ b/client/web/src/insights/pages/creation/search-insight/components/form-series/FormSeries.tsx @@ -63,7 +63,6 @@ export const FormSeries: React.FunctionComponent = props => { // In case if we don't have series we have to skip series list ui (components below) // and render simple series form component. if (series.length === 0) { - /* eslint-disable react/jsx-no-bind */ return } diff --git a/client/web/src/org/OrgsArea.tsx b/client/web/src/org/OrgsArea.tsx index 298208c0690d..e53f59e0ba05 100644 --- a/client/web/src/org/OrgsArea.tsx +++ b/client/web/src/org/OrgsArea.tsx @@ -46,7 +46,6 @@ interface Props * Renders a layout of a sidebar and a content area to display organization-related pages. */ export const OrgsArea: React.FunctionComponent = props => ( - /* eslint-disable react/jsx-no-bind */ = props => ( /> - /* eslint-enable react/jsx-no-bind */ ) diff --git a/client/web/src/org/area/OrgArea.tsx b/client/web/src/org/area/OrgArea.tsx index 69b85ccc2e07..8bc53619a528 100644 --- a/client/web/src/org/area/OrgArea.tsx +++ b/client/web/src/org/area/OrgArea.tsx @@ -252,7 +252,6 @@ export class OrgArea extends React.Component { }> {this.props.orgAreaRoutes.map( - /* eslint-disable react/jsx-no-bind */ ({ path, exact, render, condition = () => true }) => condition(context) && ( { } /> ) - /* eslint-enable react/jsx-no-bind */ )} diff --git a/client/web/src/org/settings/OrgSettingsArea.tsx b/client/web/src/org/settings/OrgSettingsArea.tsx index 4a0a9a80be0c..a3821bb7bcc8 100644 --- a/client/web/src/org/settings/OrgSettingsArea.tsx +++ b/client/web/src/org/settings/OrgSettingsArea.tsx @@ -43,7 +43,6 @@ export const OrgSettingsArea: React.FunctionComponent = props => { }> - {/* eslint-disable react/jsx-no-bind */} = props => { )} /> - {/* eslint-enable react/jsx-no-bind */} diff --git a/client/web/src/org/settings/members/InviteForm.tsx b/client/web/src/org/settings/members/InviteForm.tsx index 3fa2f4f9b386..2ca72baac306 100644 --- a/client/web/src/org/settings/members/InviteForm.tsx +++ b/client/web/src/org/settings/members/InviteForm.tsx @@ -184,14 +184,12 @@ export const InviteForm: React.FunctionComponent = ({ )} {invited.map((invite, index) => ( - /* eslint-disable react/jsx-no-bind */ dismissNotification(index)} /> - /* eslint-enable react/jsx-no-bind */ ))} {isErrorLike(loading) && }
diff --git a/client/web/src/repo/RepoContainer.tsx b/client/web/src/repo/RepoContainer.tsx index 5a7cac167bbe..17d5fffeaec4 100644 --- a/client/web/src/repo/RepoContainer.tsx +++ b/client/web/src/repo/RepoContainer.tsx @@ -438,7 +438,6 @@ export const RepoContainer: React.FunctionComponent = props - {/* eslint-disable react/jsx-no-bind */} {[ '', ...(rawRevision ? [`@${rawRevision}`] : []), // must exactly match how the revision was encoded in the URL @@ -478,7 +477,6 @@ export const RepoContainer: React.FunctionComponent = props ) )} - {/* eslint-enable react/jsx-no-bind */}
diff --git a/client/web/src/repo/RepoHeader.tsx b/client/web/src/repo/RepoHeader.tsx index cf3bb7e923d0..647159400158 100644 --- a/client/web/src/repo/RepoHeader.tsx +++ b/client/web/src/repo/RepoHeader.tsx @@ -237,7 +237,6 @@ export const RepoHeader: React.FunctionComponent = ({ location={props.location} // To be clear to users that this isn't an error reported by extensions // about e.g. the code they're viewing. - // eslint-disable-next-line react/jsx-no-bind render={error => (
  • diff --git a/client/web/src/repo/RepoRevisionContainer.tsx b/client/web/src/repo/RepoRevisionContainer.tsx index 1d8620dc0d57..7c10ffbb94e7 100644 --- a/client/web/src/repo/RepoRevisionContainer.tsx +++ b/client/web/src/repo/RepoRevisionContainer.tsx @@ -229,7 +229,6 @@ export const RepoRevisionContainer: React.FunctionComponent - {/* eslint-disable react/jsx-no-bind */} {props.routes.map( ({ path, render, exact, condition = () => true }) => condition(context) && ( diff --git a/client/web/src/repo/RevisionsPopover.tsx b/client/web/src/repo/RevisionsPopover.tsx index 708e27903c6a..65ce7f5f0113 100644 --- a/client/web/src/repo/RevisionsPopover.tsx +++ b/client/web/src/repo/RevisionsPopover.tsx @@ -265,7 +265,6 @@ export const RevisionsPopover: React.FunctionComponent = props => { compact={true} noun={tab.noun} pluralNoun={tab.pluralNoun} - // eslint-disable-next-line react/jsx-no-bind queryConnection={queryRepositoryCommits} nodeComponent={GitCommitNode} nodeComponentProps={{ diff --git a/client/web/src/repo/branches/RepositoryBranchesArea.tsx b/client/web/src/repo/branches/RepositoryBranchesArea.tsx index 7cf0235acbf7..6bfab0dbefde 100644 --- a/client/web/src/repo/branches/RepositoryBranchesArea.tsx +++ b/client/web/src/repo/branches/RepositoryBranchesArea.tsx @@ -55,7 +55,6 @@ export const RepositoryBranchesArea: React.FunctionComponent = ({ useBrea
    - {/* eslint-disable react/jsx-no-bind */} = ({ useBrea )} /> - {/* eslint-enable react/jsx-no-bind */}
    ) diff --git a/client/web/src/repo/compare/RepositoryCompareArea.tsx b/client/web/src/repo/compare/RepositoryCompareArea.tsx index 3099b3b625b5..ca35837e840a 100644 --- a/client/web/src/repo/compare/RepositoryCompareArea.tsx +++ b/client/web/src/repo/compare/RepositoryCompareArea.tsx @@ -196,7 +196,6 @@ export class RepositoryCompareArea extends React.ComponentInvalid comparison specifier
) : ( - {/* eslint-disable react/jsx-no-bind */} - {/* eslint-enable react/jsx-no-bind */} )} {this.state.hoverOverlayProps && ( diff --git a/client/web/src/repo/releases/RepositoryReleasesArea.tsx b/client/web/src/repo/releases/RepositoryReleasesArea.tsx index 0a160da0b2fe..ccadc458bde8 100644 --- a/client/web/src/repo/releases/RepositoryReleasesArea.tsx +++ b/client/web/src/repo/releases/RepositoryReleasesArea.tsx @@ -60,7 +60,6 @@ export const RepositoryReleasesArea: React.FunctionComponent = ({ useBrea
- {/* eslint-disable react/jsx-no-bind */} = ({ useBrea )} /> - {/* eslint-enable react/jsx-no-bind */}
diff --git a/client/web/src/repo/settings/RepoSettingsArea.tsx b/client/web/src/repo/settings/RepoSettingsArea.tsx index c38c6cd9b0a9..5458b5cda827 100644 --- a/client/web/src/repo/settings/RepoSettingsArea.tsx +++ b/client/web/src/repo/settings/RepoSettingsArea.tsx @@ -95,7 +95,6 @@ export const RepoSettingsArea: React.FunctionComponent = ({ {props.repoSettingsAreaRoutes.map( ({ render, path, exact, condition = () => true }) => - /* eslint-disable react/jsx-no-bind */ condition(context) && ( = ({
{showNavbar && } - {/* eslint-disable react/jsx-no-bind */} = ({ )} /> - {/* eslint-enable react/jsx-no-bind */}
) diff --git a/client/web/src/repo/tree/TreePage.tsx b/client/web/src/repo/tree/TreePage.tsx index eac5940a6416..ab6e62b58da9 100644 --- a/client/web/src/repo/tree/TreePage.tsx +++ b/client/web/src/repo/tree/TreePage.tsx @@ -453,7 +453,7 @@ export const TreePage: React.FunctionComponent = ({ )} - {/* eslint-enable react/jsx-no-bind */} +

Changes

> @@ -473,7 +473,6 @@ export const TreePage: React.FunctionComponent = ({ useURLQuery={false} hideSearch={true} emptyElement={emptyElement} - // eslint-disable-next-line react/jsx-no-bind totalCountSummaryComponent={TotalCountSummary} />
diff --git a/client/web/src/savedSearches/SavedSearchUpdateForm.tsx b/client/web/src/savedSearches/SavedSearchUpdateForm.tsx index c66fde8da373..63c1c0d7dc02 100644 --- a/client/web/src/savedSearches/SavedSearchUpdateForm.tsx +++ b/client/web/src/savedSearches/SavedSearchUpdateForm.tsx @@ -115,7 +115,6 @@ export class SavedSearchUpdateForm extends React.Component {
{this.state.savedSearchOrError === LOADING && } {this.props.authenticatedUser && savedSearch && ( - /* eslint-disable react/jsx-no-bind */ { } error={isErrorLike(this.state.updatedOrError) ? this.state.updatedOrError : undefined} /> - /* eslint-enable react/jsx-no-bind */ )} {this.state.updatedOrError === true && (

Updated!

diff --git a/client/web/src/settings/SettingsArea.tsx b/client/web/src/settings/SettingsArea.tsx index 9c230a33572c..a5a62f487342 100644 --- a/client/web/src/settings/SettingsArea.tsx +++ b/client/web/src/settings/SettingsArea.tsx @@ -166,7 +166,6 @@ export class SettingsArea extends React.Component {

{term} settings

{this.props.extraHeader} - {/* eslint-disable react/jsx-no-bind */} { render={routeComponentProps => } /> - {/* eslint-enable react/jsx-no-bind */}
) diff --git a/client/web/src/site-admin/SiteAdminArea.tsx b/client/web/src/site-admin/SiteAdminArea.tsx index 81dcd5010548..f32e51620c39 100644 --- a/client/web/src/site-admin/SiteAdminArea.tsx +++ b/client/web/src/site-admin/SiteAdminArea.tsx @@ -103,7 +103,6 @@ const AuthenticatedSiteAdminArea: React.FunctionComponent = }> {props.routes.map( - /* eslint-disable react/jsx-no-bind */ ({ render, path, exact, condition = () => true }) => condition(context) && ( = } /> ) - /* eslint-enable react/jsx-no-bind */ )} diff --git a/client/web/src/user/area/UserArea.tsx b/client/web/src/user/area/UserArea.tsx index a5bbe7736b14..49044b46262b 100644 --- a/client/web/src/user/area/UserArea.tsx +++ b/client/web/src/user/area/UserArea.tsx @@ -217,7 +217,6 @@ export const UserArea: React.FunctionComponent = ({ ({ path, exact, render, condition = () => true }) => condition(context) && ( render({ ...context, ...routeComponentProps }) } diff --git a/client/web/src/user/settings/UserSettingsArea.tsx b/client/web/src/user/settings/UserSettingsArea.tsx index 17d82e9b408d..95f0010fe2b3 100644 --- a/client/web/src/user/settings/UserSettingsArea.tsx +++ b/client/web/src/user/settings/UserSettingsArea.tsx @@ -92,7 +92,6 @@ export const UserSettingsArea = withAuthenticatedUser( ({ path, exact, render, condition = () => true }) => condition(context) && ( render({ ...context, ...routeComponentProps }) } diff --git a/client/web/src/user/settings/accessTokens/UserSettingsTokensArea.tsx b/client/web/src/user/settings/accessTokens/UserSettingsTokensArea.tsx index 39f1b83cc258..41c687ec554d 100644 --- a/client/web/src/user/settings/accessTokens/UserSettingsTokensArea.tsx +++ b/client/web/src/user/settings/accessTokens/UserSettingsTokensArea.tsx @@ -24,7 +24,6 @@ export const UserSettingsTokensArea: React.FunctionComponent = outerProps setNewToken(undefined) }, []) return ( - /* eslint-disable react/jsx-no-bind */ = outerProps /> - /* eslint-enable react/jsx-no-bind */ ) } diff --git a/client/web/src/views/ChartViewContent/charts/bar/BarChart.tsx b/client/web/src/views/ChartViewContent/charts/bar/BarChart.tsx index 960e56cdbe50..14ea26138033 100644 --- a/client/web/src/views/ChartViewContent/charts/bar/BarChart.tsx +++ b/client/web/src/views/ChartViewContent/charts/bar/BarChart.tsx @@ -161,9 +161,7 @@ export function BarChart(props: BarChartProps): Rea height={barHeight} width={xScale.bandwidth()} fill={fill} - /* eslint-disable-next-line react/jsx-no-bind */ onMouseLeave={handleMouseLeave} - /* eslint-disable-next-line react/jsx-no-bind */ onMouseMove={event => { if (tooltipTimeout) { clearTimeout(tooltipTimeout) diff --git a/client/web/src/views/ChartViewContent/charts/line/components/GlyphContent.tsx b/client/web/src/views/ChartViewContent/charts/line/components/GlyphContent.tsx index 1c51bd4210e0..5d3fe789daae 100644 --- a/client/web/src/views/ChartViewContent/charts/line/components/GlyphContent.tsx +++ b/client/web/src/views/ChartViewContent/charts/line/components/GlyphContent.tsx @@ -85,9 +85,7 @@ export function GlyphContent(props: GlyphContentProps linkURL && setFocusedDatum(currentDatum)} - /* eslint-disable-next-line react/jsx-no-bind */ onBlur={() => linkURL && setFocusedDatum(null)} className="line-chart__glyph-link" role={linkURL ? 'link' : 'graphics-dataunit'} diff --git a/client/web/src/views/ChartViewContent/charts/line/components/LineChartContent.tsx b/client/web/src/views/ChartViewContent/charts/line/components/LineChartContent.tsx index a8f27007b9d4..06c4894e6cc5 100644 --- a/client/web/src/views/ChartViewContent/charts/line/components/LineChartContent.tsx +++ b/client/web/src/views/ChartViewContent/charts/line/components/LineChartContent.tsx @@ -320,7 +320,6 @@ export function LineChartContent(props: LineChartContentPr yAccessor={accessors.y[line.dataKey]} // Don't have info about line in props. @visx/xychart doesn't expose this information // Move this arrow function in separate component when API of GlyphSeries will be fixed. - /* eslint-disable-next-line react/jsx-no-bind */ renderGlyph={glyphProps => ( (props: PieChartProps): Rea } return ( - /* eslint-disable react/jsx-no-bind */ = ({ match, ...outerProps return (
- {/* eslint-disable react/jsx-no-bind */}
No view specified in the URL.
@@ -70,7 +69,6 @@ export const ViewsArea: React.FunctionComponent = ({ match, ...outerProps )} />
- {/* eslint-enable react/jsx-no-bind */}
) } diff --git a/package.json b/package.json index 3d13bd9a1d89..26de3fdb3801 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "@pollyjs/persister-fs": "^5.0.0", "@slack/web-api": "^5.10.0", "@sourcegraph/babel-plugin-transform-react-hot-loader-wrapper": "^1.0.0", - "@sourcegraph/eslint-config": "^0.24.0", + "@sourcegraph/eslint-config": "^0.25.0", "@sourcegraph/eslint-plugin-sourcegraph": "1.0.0", "@sourcegraph/prettierrc": "^3.0.3", "@sourcegraph/stylelint-config": "^1.3.0", diff --git a/yarn.lock b/yarn.lock index b7eff5c87ec7..69590b04ec59 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2928,10 +2928,10 @@ sourcegraph "^24.0.0 || ^25.0.0" ts-key-enum "^2.0.0" -"@sourcegraph/eslint-config@^0.24.0": - version "0.24.0" - resolved "https://registry.npmjs.org/@sourcegraph/eslint-config/-/eslint-config-0.24.0.tgz#0bc0a090863da12b92fde0e6ec9d4f2d55be5c8b" - integrity sha512-cQH/rIxSmvtxKx1MSZWTCwfQacPBnbex+iElK7Hlo76M06SkL0dstHLUiu/9p7x9TWv3loI67uOKK+e03njt7A== +"@sourcegraph/eslint-config@^0.25.0": + version "0.25.0" + resolved "https://registry.npmjs.org/@sourcegraph/eslint-config/-/eslint-config-0.25.0.tgz#bdc561a8f90eccabb5606584c018d8fd3c8e823d" + integrity sha512-dloepkXWZkLppvsRgLCuRDAbAWkF5mdB3gUO9qzA6eRfOaYNHly5hWAnSugVIuA6VFS44nCIr3uK2ij8UCAdzw== dependencies: "@sourcegraph/prettierrc" "^3.0.3" "@typescript-eslint/eslint-plugin" "^4.9.1"