From aa592a4d1171031a8dc2d366d04a934ee4ec2cdf Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Thu, 19 Oct 2023 14:35:41 -0700 Subject: [PATCH] Use const require for Racer due to not actually having types --- src/Derby.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Derby.ts b/src/Derby.ts index 795fa233..d00d5d1c 100644 --- a/src/Derby.ts +++ b/src/Derby.ts @@ -4,12 +4,15 @@ * */ import racer = require('racer'); -import Racer = require('racer/lib/Racer'); + import { App, type AppBase } from './App'; import { Component } from './components'; import { Page } from './Page'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +const Racer = require('racer/lib/Racer'); + export abstract class DerbyBase extends Racer { Component = Component; abstract createApp(name: string, filename: string, options): AppBase