mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-25 22:00:41 -04:00
feat(tools): ignore no-unused-vars on underscore (#48386)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import React from 'react';
|
||||
import { GatsbyLinkProps } from 'gatsby';
|
||||
const gatsby: NodeModule = jest.requireActual('gatsby');
|
||||
|
||||
@@ -34,7 +34,6 @@ export interface InitTestFrameArg {
|
||||
|
||||
async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
|
||||
const code = (e.code.contents || '').slice();
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const __file = (id?: string) => {
|
||||
if (id && e.code.original) {
|
||||
return e.code.original[id];
|
||||
@@ -45,7 +44,6 @@ async function initTestFrame(e: InitTestFrameArg = { code: {} }) {
|
||||
const editableContents = (e.code.editableContents || '').slice();
|
||||
// __testEditable allows test authors to run tests against a transitory dom
|
||||
// element built using only the code in the editable region.
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const __testEditable = (cb: () => () => unknown) => {
|
||||
const div = document.createElement('div');
|
||||
div.id = 'editable-only';
|
||||
|
||||
Reference in New Issue
Block a user