Skip to content

Commit c17d97e

Browse files
committed
fix: remaining lint warnings
1 parent ec097ac commit c17d97e

File tree

8 files changed

+21
-7
lines changed

8 files changed

+21
-7
lines changed

app-config-cli/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"yargs": "16"
5454
},
5555
"devDependencies": {
56+
"@app-config/test-utils": "^2.8.0",
5657
"@types/common-tags": "1",
5758
"@types/fs-extra": "9"
5859
},

app-config-cli/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
{ "path": "../app-config-core" },
1111
{ "path": "../app-config-config" },
1212
{ "path": "../app-config-node" },
13-
{ "path": "../app-config-generate" }
13+
{ "path": "../app-config-generate" },
14+
{ "path": "../app-config-utils" },
15+
{ "path": "../app-config-test-utils" }
1416
]
1517
}

app-config-exec/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"@app-config/utils": "^2.8.0"
3737
},
3838
"devDependencies": {
39-
"@app-config/main": "^2.8.0"
39+
"@app-config/main": "^2.8.0",
40+
"@app-config/test-utils": "^2.8.0"
4041
},
4142
"prettier": "@lcdev/prettier",
4243
"jest": {

app-config-exec/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
{ "path": "../app-config-utils" },
1313
{ "path": "../app-config-core" },
1414
{ "path": "../app-config-node" },
15-
{ "path": "../app-config-extension-utils" }
15+
{ "path": "../app-config-extension-utils" },
16+
{ "path": "../app-config-test-utils" }
1617
]
1718
}

app-config-extensions/src/extends-directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function fileReferenceDirective(keyName: string, meta: ParsedValueMetadata): Par
3333

3434
return SchemaBuilder.oneOf(reference, SchemaBuilder.arraySchema(reference));
3535
},
36-
(value, _, __, context) => async (_, __, source, extensions) => {
36+
(value, _, __, context) => async (_, ___, source, extensions) => {
3737
const retrieveFile = async (
3838
filepath: string,
3939
subselector?: string,

app-config-main/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
"@app-config/utils": "^2.8.0",
4949
"ajv": "7"
5050
},
51-
"devDependencies": {},
51+
"devDependencies": {
52+
"@app-config/test-utils": "^2.8.0"
53+
},
5254
"prettier": "@lcdev/prettier",
5355
"jest": {
5456
"preset": "@lcdev/jest",

app-config-main/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
{ "path": "../app-config-test-utils" },
1212
{ "path": "../app-config-core" },
1313
{ "path": "../app-config-node" },
14-
{ "path": "../app-config-cli" }
14+
{ "path": "../app-config-cli" },
15+
{ "path": "../app-config-utils" },
16+
{ "path": "../app-config-test-utils" }
1517
]
1618
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ export async function withTempFiles(
3434
await callback((filename) => join(folder, filename), folder);
3535
} finally {
3636
await remove(folder).catch((error) => {
37+
// eslint-disable-next-line no-console
3738
console.warn(error);
3839

3940
// we'll just ignore this, it's spurious in CI
40-
if (isWindows && error.code !== 'EBUSY') {
41+
if (
42+
isWindows &&
43+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
44+
error.code !== 'EBUSY'
45+
) {
4146
throw error;
4247
}
4348
});

0 commit comments

Comments
 (0)