mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-23 21:04:36 -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'));
|
||||
|
||||
Reference in New Issue
Block a user