(t: T) => T;',
`
- type Function = () => void;
- let value: Function;
+ // create a scope since it's illegal to declare a duplicate identifier
+ // 'Function' in the global script scope.
+ {
+ type Function = () => void;
+ let value: Function;
+ }
`,
],
invalid: [
diff --git a/packages/website/src/components/lib/parseConfig.ts b/packages/website/src/components/lib/parseConfig.ts
index 2915e9f350db..29cd8d6f4a91 100644
--- a/packages/website/src/components/lib/parseConfig.ts
+++ b/packages/website/src/components/lib/parseConfig.ts
@@ -55,7 +55,7 @@ export function parseTSConfig(code?: string): TSConfig {
const moduleRegexp = /(module\.exports\s*=)/g;
function constrainedScopeEval(obj: string): unknown {
- // eslint-disable-next-line @typescript-eslint/no-implied-eval
+ // eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-call
return new Function(`
"use strict";
var module = { exports: {} };
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy