delete old ts-ignore comments (#43329)
This commit is contained in:
@ -115,8 +115,6 @@ function DonateModal({
|
|||||||
const blockDonationText = (
|
const blockDonationText = (
|
||||||
<div className=' text-center block-modal-text'>
|
<div className=' text-center block-modal-text'>
|
||||||
<div className='donation-icon-container'>
|
<div className='donation-icon-container'>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Cup className='donation-icon' />
|
<Cup className='donation-icon' />
|
||||||
</div>
|
</div>
|
||||||
<Row>
|
<Row>
|
||||||
@ -134,8 +132,6 @@ function DonateModal({
|
|||||||
const progressDonationText = (
|
const progressDonationText = (
|
||||||
<div className='text-center progress-modal-text'>
|
<div className='text-center progress-modal-text'>
|
||||||
<div className='donation-icon-container'>
|
<div className='donation-icon-container'>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Heart className='donation-icon' />
|
<Heart className='donation-icon' />
|
||||||
</div>
|
</div>
|
||||||
<Row>
|
<Row>
|
||||||
|
@ -4,8 +4,6 @@ import {
|
|||||||
FormControl,
|
FormControl,
|
||||||
HelpBlock,
|
HelpBlock,
|
||||||
Alert
|
Alert
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { Button, Panel } from '@freecodecamp/react-bootstrap';
|
import { Button, Panel } from '@freecodecamp/react-bootstrap';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
import { TFunction, withTranslation } from 'react-i18next';
|
import { TFunction, withTranslation } from 'react-i18next';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
|
@ -3,8 +3,6 @@ import React from 'react';
|
|||||||
import { Trans, useTranslation } from 'react-i18next';
|
import { Trans, useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { ButtonSpacer } from '../helpers';
|
import { ButtonSpacer } from '../helpers';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
|
|
||||||
import './danger-zone.css';
|
import './danger-zone.css';
|
||||||
|
|
||||||
|
@ -5,8 +5,6 @@ import {
|
|||||||
ControlLabel,
|
ControlLabel,
|
||||||
FormControl,
|
FormControl,
|
||||||
Button
|
Button
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import { Link } from 'gatsby';
|
import { Link } from 'gatsby';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { Button, Panel } from '@freecodecamp/react-bootstrap';
|
import { Button, Panel } from '@freecodecamp/react-bootstrap';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import HonestyPolicy from '../../resources/honesty-policy';
|
import HonestyPolicy from '../../resources/honesty-policy';
|
||||||
|
@ -5,8 +5,6 @@ import {
|
|||||||
FormControl,
|
FormControl,
|
||||||
FormGroup,
|
FormGroup,
|
||||||
ControlLabel
|
ControlLabel
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { TFunction, withTranslation } from 'react-i18next';
|
import { TFunction, withTranslation } from 'react-i18next';
|
||||||
|
@ -4,8 +4,6 @@ import {
|
|||||||
ControlLabel,
|
ControlLabel,
|
||||||
FormControl,
|
FormControl,
|
||||||
HelpBlock
|
HelpBlock
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import { findIndex, find, isEqual } from 'lodash-es';
|
import { findIndex, find, isEqual } from 'lodash-es';
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
|
@ -5,8 +5,6 @@ import { connect } from 'react-redux';
|
|||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import type { Dispatch } from 'redux';
|
import type { Dispatch } from 'redux';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
|
|
||||||
import { userSelector } from '../../redux';
|
import { userSelector } from '../../redux';
|
||||||
import { submitProfileUI } from '../../redux/settings';
|
import { submitProfileUI } from '../../redux/settings';
|
||||||
|
@ -3,8 +3,6 @@ import React from 'react';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import { ButtonSpacer } from '../helpers';
|
import { ButtonSpacer } from '../helpers';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
|
|
||||||
type ResetModalProps = {
|
type ResetModalProps = {
|
||||||
onHide: () => void;
|
onHide: () => void;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import { Form } from '@freecodecamp/react-bootstrap';
|
import { Form } from '@freecodecamp/react-bootstrap';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
import ToggleSetting from './toggle-setting';
|
import ToggleSetting from './toggle-setting';
|
||||||
|
@ -2,8 +2,6 @@ import {
|
|||||||
FormGroup,
|
FormGroup,
|
||||||
ControlLabel,
|
ControlLabel,
|
||||||
HelpBlock
|
HelpBlock
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@ import {
|
|||||||
FormControl,
|
FormControl,
|
||||||
Alert,
|
Alert,
|
||||||
FormGroup
|
FormGroup
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { TFunction, withTranslation } from 'react-i18next';
|
import { TFunction, withTranslation } from 'react-i18next';
|
||||||
|
@ -85,10 +85,6 @@ function DonatePage({
|
|||||||
<>
|
<>
|
||||||
<Helmet title={`${t('donate.title')} | freeCodeCamp.org`} />
|
<Helmet title={`${t('donate.title')} | freeCodeCamp.org`} />
|
||||||
<Grid className='donate-page-wrapper'>
|
<Grid className='donate-page-wrapper'>
|
||||||
{/* 'Spacer' cannot be used as a JSX component. */}
|
|
||||||
{/* Its return type 'Element | Element[]' is not a valid JSX element. */}
|
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<Row>
|
<Row>
|
||||||
<>
|
<>
|
||||||
@ -100,8 +96,6 @@ function DonatePage({
|
|||||||
) : (
|
) : (
|
||||||
<h2>{t('donate.help-more')}</h2>
|
<h2>{t('donate.help-more')}</h2>
|
||||||
)}
|
)}
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@ -131,8 +125,6 @@ function DonatePage({
|
|||||||
</Col>
|
</Col>
|
||||||
</>
|
</>
|
||||||
</Row>
|
</Row>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
|
@ -76,12 +76,8 @@ function AcceptPrivacyTerms({
|
|||||||
<IntroDescription />
|
<IntroDescription />
|
||||||
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
||||||
<strong>{t('misc.quincy')}</strong>
|
<strong>{t('misc.quincy')}</strong>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<p>{t('misc.email-blast')}</p>
|
<p>{t('misc.email-blast')}</p>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
@ -110,8 +106,6 @@ function AcceptPrivacyTerms({
|
|||||||
<ButtonSpacer />
|
<ButtonSpacer />
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={12}>
|
<Col xs={12}>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -82,8 +82,6 @@ function LearnPage({
|
|||||||
slug={slug}
|
slug={slug}
|
||||||
/>
|
/>
|
||||||
<Map />
|
<Map />
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer size={2} />
|
<Spacer size={2} />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -71,8 +71,6 @@ function UpdateEmail({ isNewEmail, t, updateMyEmail }: UpdateEmailProps) {
|
|||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{t('misc.update-email-1')} | freeCodeCamp.org</title>
|
<title>{t('misc.update-email-1')} | freeCodeCamp.org</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<h2 className='text-center'>{t('misc.update-email-2')}</h2>
|
<h2 className='text-center'>{t('misc.update-email-2')}</h2>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
@ -25,8 +25,6 @@ function ChallengeTitle({
|
|||||||
<div className='challenge-title-wrap'>
|
<div className='challenge-title-wrap'>
|
||||||
{translationPending && (
|
{translationPending && (
|
||||||
<>
|
<>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Link
|
<Link
|
||||||
className='title-translation-cta'
|
className='title-translation-cta'
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
|
@ -219,8 +219,6 @@ class BackEnd extends Component<BackEndProps> {
|
|||||||
<Grid>
|
<Grid>
|
||||||
<Row>
|
<Row>
|
||||||
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<ChallengeTitle
|
<ChallengeTitle
|
||||||
block={block}
|
block={block}
|
||||||
@ -254,8 +252,6 @@ class BackEnd extends Component<BackEndProps> {
|
|||||||
output={output}
|
output={output}
|
||||||
/>
|
/>
|
||||||
<TestSuite tests={tests} />
|
<TestSuite tests={tests} />
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
<CompletionModal
|
<CompletionModal
|
||||||
|
@ -168,8 +168,6 @@ class Project extends Component<ProjectProps> {
|
|||||||
<Grid>
|
<Grid>
|
||||||
<Row>
|
<Row>
|
||||||
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<ChallengeTitle
|
<ChallengeTitle
|
||||||
block={block}
|
block={block}
|
||||||
@ -191,8 +189,6 @@ class Project extends Component<ProjectProps> {
|
|||||||
guideUrl={getGuideUrl({ forumTopicId, title })}
|
guideUrl={getGuideUrl({ forumTopicId, title })}
|
||||||
/>
|
/>
|
||||||
<br />
|
<br />
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
</Col>
|
</Col>
|
||||||
<CompletionModal
|
<CompletionModal
|
||||||
|
@ -205,8 +205,6 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
|||||||
/>
|
/>
|
||||||
<Grid>
|
<Grid>
|
||||||
<Row>
|
<Row>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<ChallengeTitle
|
<ChallengeTitle
|
||||||
block={block}
|
block={block}
|
||||||
@ -246,8 +244,6 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
|||||||
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
<Col md={8} mdOffset={2} sm={10} smOffset={1} xs={12}>
|
||||||
<ChallengeDescription description={description} />
|
<ChallengeDescription description={description} />
|
||||||
<PrismFormatted className={'line-numbers'} text={text} />
|
<PrismFormatted className={'line-numbers'} text={text} />
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<ObserveKeys>
|
<ObserveKeys>
|
||||||
<div className='video-quiz-options'>
|
<div className='video-quiz-options'>
|
||||||
@ -277,8 +273,6 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</ObserveKeys>
|
</ObserveKeys>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
@ -291,8 +285,6 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
|||||||
<span>{t('learn.check-answer')}</span>
|
<span>{t('learn.check-answer')}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<Button
|
<Button
|
||||||
block={true}
|
block={true}
|
||||||
@ -304,8 +296,6 @@ class ShowVideo extends Component<ShowVideoProps, ShowVideoState> {
|
|||||||
>
|
>
|
||||||
{t('buttons.check-answer')}
|
{t('buttons.check-answer')}
|
||||||
</Button>
|
</Button>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Spacer size={2} />
|
<Spacer size={2} />
|
||||||
</Col>
|
</Col>
|
||||||
<CompletionModal
|
<CompletionModal
|
||||||
|
Reference in New Issue
Block a user