mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-14 07:00:56 -05:00
refactor: disable naming-convenction rule (#51685)
This commit is contained in:
@@ -6,7 +6,6 @@ import { scriptLoader, scriptRemover } from '../../utils/script-loaders';
|
||||
|
||||
import type { DonationApprovalData } from './types';
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
type PayPalButtonScriptLoaderProps = {
|
||||
isMinimalForm: boolean | undefined;
|
||||
clientId: string;
|
||||
@@ -44,7 +43,6 @@ type PayPalButtonScriptLoaderProps = {
|
||||
};
|
||||
planId: string | null;
|
||||
};
|
||||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
|
||||
type PayPalButtonScriptLoaderState = {
|
||||
isSdkLoaded: boolean;
|
||||
|
||||
@@ -98,7 +98,6 @@ class PaypalButton extends Component<PaypalButtonProps, PaypalButtonState> {
|
||||
|
||||
return (
|
||||
<div className={'paypal-buttons-container'}>
|
||||
{/* eslint-disable @typescript-eslint/naming-convention */}
|
||||
<PayPalButtonScriptLoader
|
||||
clientId={paypalClientId}
|
||||
createOrder={(
|
||||
@@ -170,7 +169,6 @@ class PaypalButton extends Component<PaypalButtonProps, PaypalButtonState> {
|
||||
color: buttonColor
|
||||
}}
|
||||
/>
|
||||
{/* eslint-enable @typescript-eslint/naming-convention */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -128,7 +128,6 @@ const StripeCardForm = ({
|
||||
) => {
|
||||
if (stripe) {
|
||||
return stripe.confirmCardPayment(clientSecret, {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
payment_method: paymentMethod
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import React, { ReactNode, useEffect } from 'react';
|
||||
|
||||
import { useFeature } from '@growthbook/growthbook-react';
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import React, { ReactNode, useEffect } from 'react';
|
||||
import sha1 from 'sha-1';
|
||||
import {
|
||||
|
||||
@@ -29,7 +29,6 @@ function AvatarRenderer({
|
||||
if (
|
||||
// we probably have loads of records in the database with this default avatar URL set. To prevent making a request to the image we know will 404.
|
||||
!/freecodecamp\.com\/sample-image/.test(picture) &&
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
isURL(picture, { require_protocol: true })
|
||||
) {
|
||||
validationImage.src = picture;
|
||||
|
||||
@@ -165,7 +165,6 @@ class AboutSettings extends Component<AboutProps, AboutState> {
|
||||
|
||||
handlePictureChange = (e: React.FormEvent<HTMLInputElement>) => {
|
||||
const value = (e.target as HTMLInputElement).value.slice(0);
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
if (isURL(value, { require_protocol: true })) {
|
||||
this.validationImage.src = encodeURI(value);
|
||||
} else {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
import {
|
||||
Button,
|
||||
FormGroup,
|
||||
|
||||
Reference in New Issue
Block a user