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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user