refactor: disable naming-convenction rule (#51685)

This commit is contained in:
Muhammed Mustafa
2023-09-30 16:23:39 +03:00
committed by GitHub
parent bbe1f46d6e
commit 49b728d31b
19 changed files with 4 additions and 79 deletions

View File

@@ -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;

View File

@@ -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>
);
}

View File

@@ -128,7 +128,6 @@ const StripeCardForm = ({
) => {
if (stripe) {
return stripe.confirmCardPayment(clientSecret, {
// eslint-disable-next-line @typescript-eslint/naming-convention
payment_method: paymentMethod
});
}

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import React, { ReactNode, useEffect } from 'react';
import { useFeature } from '@growthbook/growthbook-react';

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import React, { ReactNode, useEffect } from 'react';
import sha1 from 'sha-1';
import {

View File

@@ -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;

View File

@@ -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 {

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/naming-convention */
import {
Button,
FormGroup,