Skip to content

Commit 37b77dd

Browse files
committed
lint-fix
1 parent e5ac0e8 commit 37b77dd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/configuration.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ export function readConfig(
172172
// Some options are relative to the config file, so must be converted to absolute paths here
173173
if (options.require) {
174174
// Modules are found relative to the tsconfig file, not the `dir` option
175-
const tsconfigRelativeResolver =
176-
createProjectLocalResolveHelper(dirname(configPath));
175+
const tsconfigRelativeResolver = createProjectLocalResolveHelper(
176+
dirname(configPath)
177+
);
177178
options.require = options.require.map((path: string) =>
178179
tsconfigRelativeResolver(path, false)
179180
);

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function getBasePathForProjectLocalDependencyResolution(
150150
projectOption: string | undefined,
151151
cwdOption: string
152152
) {
153-
if(configFilePath != null) return dirname(configFilePath);
153+
if (configFilePath != null) return dirname(configFilePath);
154154
return projectSearchDirOption ?? projectOption ?? cwdOption;
155155
// TODO technically breaks if projectOption is path to a file, not a directory,
156156
// and we attempt to resolve relative specifiers. By the time we resolve relative specifiers,

0 commit comments

Comments
 (0)