Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed Oct 15, 2023
1 parent 4abb33a commit 2ba25d3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/deprecation.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const deprecation = (message: string) => {
// eslint-disable-next-line no-console
console.warn(`[aws-dynamodb-local] Deprecation notice: ${message}`);
};
2 changes: 2 additions & 0 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export const install = async (arg0?: (() => unknown) | Partial<InstallOptions>,
const installPath = arg0?.installPath ?? resolve(defaultInstallPath);

if (!existsSync(join(installPath, jarFilename))) {
// eslint-disable-next-line no-console
console.log(`Installing DynamoDB Local from ${downloadUrl}...`);
await downloadTarGz(downloadUrl, installPath);
// eslint-disable-next-line no-console
console.log('Installation of DynamoDB Local complete.');
}

Expand Down
1 change: 1 addition & 0 deletions src/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const remove = async (arg0?: (() => unknown) | Partial<RemoveOptions>, ar
const installPath = arg0?.installPath ?? resolve(defaultInstallPath);

rmSync(installPath, { recursive: true, force: true });
// eslint-disable-next-line no-console
console.log('Removal of DynamoDB Local complete.');

if (arg0?.onComplete) {
Expand Down
3 changes: 2 additions & 1 deletion src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ const wrapSpawn = (executable: string, args: string[], cwd?: string) => {

child.on('close', (code) => {
if (code !== null && code !== 0) {
console.log('DynamoDB Local exited with code', code);
// eslint-disable-next-line no-console
console.error('DynamoDB Local exited with code', code);
}
});

Expand Down
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
},
"exclude": [
"**/*.test.ts",
"vitest.config.ts",
],
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "@tsconfig/node-lts-strictest/tsconfig.json",
"include": [
"src/**/*.ts"
"src/**/*.ts",
"vitest.config.ts",
],
}
7 changes: 4 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from 'vitest/config'
/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
testTimeout: 30_000
testTimeout: 30_000,
},
})
});

0 comments on commit 2ba25d3

Please sign in to comment.