Skip to content

Commit 0188825

Browse files
committed
fix: lint
1 parent 9ebde2a commit 0188825

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app-config-extension-utils/src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('composeExtensions', () => {
9595
describe('validateOptions', () => {
9696
const ext1 = validateOptions(
9797
(SchemaBuilder) => SchemaBuilder.stringSchema(),
98-
(value) => (parse) => parse(value + '!', { shouldFlatten: true }),
98+
(value) => (parse) => parse(`${value}!`, { shouldFlatten: true }),
9999
);
100100

101101
const ext2 = validateOptions(

app-config-extension-utils/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,10 @@ export function validateOptions<T>(
7373

7474
if (call) {
7575
return call(parse, ...args);
76-
} else {
77-
throw new AppConfigError(
78-
`A parsing extension returned as non-applicable, when using validateOptions. This isn't supported.`,
79-
);
8076
}
77+
throw new AppConfigError(
78+
`A parsing extension returned as non-applicable, when using validateOptions. This isn't supported.`,
79+
);
8180
};
8281
};
8382
}

app-config-extensions/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { join, dirname, resolve, isAbsolute } from 'path';
2-
import { isObject, Json } from '@app-config/utils';
32
import { forKey, validateOptions } from '@app-config/extension-utils';
43
import {
54
ParsedValue,

0 commit comments

Comments
 (0)