Fix lint errors: add eslint-disable for __dirname, fix no-use-before-define

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-22 14:32:02 +01:00
parent 6fa63d411f
commit 553e727d5f
13 changed files with 26 additions and 16 deletions
@@ -18,6 +18,7 @@ import { findOwnPaths } from '@backstage/cli-common';
import fs from 'fs-extra';
export async function createTemporaryTsConfig(dir: string) {
/* eslint-disable-next-line no-restricted-syntax */
const path = findOwnPaths(__dirname).resolveRoot(
dir,
'tsconfig.typedoc.tmp.json',
@@ -43,6 +43,7 @@ async function test(
try {
opticLocation = (
await exec(`yarn bin optic`, [], {
/* eslint-disable-next-line no-restricted-syntax */
cwd: findOwnPaths(__dirname).rootDir,
})
).stdout as string;