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:
@@ -14,7 +14,6 @@ type Options = {
|
||||
sendCSRFToken: boolean;
|
||||
};
|
||||
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
const requests = {
|
||||
GET: (resource: string) => request(fastifyTestInstance?.server).get(resource),
|
||||
POST: (resource: string) =>
|
||||
@@ -23,7 +22,6 @@ const requests = {
|
||||
DELETE: (resource: string) =>
|
||||
request(fastifyTestInstance?.server).delete(resource)
|
||||
};
|
||||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
|
||||
export const getCsrfToken = (setCookies: string[]): string | undefined => {
|
||||
const csrfSetCookie = setCookies.find(str => str.includes('csrf_token'));
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
import { omit } from 'lodash';
|
||||
|
||||
@@ -5,7 +5,6 @@ jest.mock('./utils/env', () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
||||
return {
|
||||
...jest.requireActual('./utils/env'),
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
COOKIE_DOMAIN: '.freecodecamp.org'
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user