Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
16 changes: 14 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
import { fileURLToPath, URL } from "node:url";

import { includeIgnoreFile } from "@eslint/compat";
import { defineConfig } from "eslint/config";
import importPlugin from "eslint-plugin-import";
import tseslint from "typescript-eslint";

export default tseslint.config(
export default defineConfig(
includeIgnoreFile(fileURLToPath(new URL(".gitignore", import.meta.url))),
{
extends: [tseslint.configs.recommendedTypeChecked],
rules: {
"object-shorthand": ["error", "always"],
},
},
{
extends: [
// Base recommended rules from @typescript-eslint.
tseslint.configs.recommendedTypeChecked,
// In the future, we might want to switch to more strict configs.
// tseslint.configs.strictTypeChecked,
// tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
parserOptions: {
projectService: true,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/configure-aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default createPlugin(
context.subscriptions.push(
commands.registerCommand("localstack.configureAwsProfiles", async () => {
await configureAwsProfiles({
telemetry: telemetry,
telemetry,
notifyNoChangesMade: true,
outputChannel,
});
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
});

window.withProgress(

Check warning on line 64 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
{
location: ProgressLocation.Notification,
title: "Setup LocalStack",
Expand Down Expand Up @@ -224,7 +224,7 @@
});
await minDelay(
configureAwsProfiles({
telemetry: telemetry,
telemetry,
origin: origin_trigger,
}),
);
Expand Down Expand Up @@ -258,25 +258,25 @@

/////////////////////////////////////////////////////////////////////
if (localStackStatusTracker.status() === "running") {
window

Check warning on line 261 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
.showInformationMessage("LocalStack is running.", {
title: "View Logs",
command: "localstack.viewLogs",
})
.then((selection) => {
if (selection) {
commands.executeCommand(selection.command);

Check warning on line 268 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});
} else {
window

Check warning on line 272 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
.showInformationMessage("LocalStack is ready to start.", {
title: "Start LocalStack",
command: "localstack.start",
})
.then((selection) => {
if (selection) {
commands.executeCommand(selection.command);

Check warning on line 279 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});
}
Expand All @@ -296,14 +296,14 @@
);

if (setupStatusTracker.status() === "setup_required") {
window

Check warning on line 299 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
.showInformationMessage("Setup LocalStack to get started.", {
title: "Setup",
command: "localstack.setup",
})
.then((selected) => {
if (selected) {
commands.executeCommand(selected.command, "extension_startup");

Check warning on line 306 in src/plugins/setup.ts

View workflow job for this annotation

GitHub Actions / Lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function pullDockerImage(
await spawn("docker", ["pull", LOCALSTACK_DOCKER_IMAGE_NAME], {
outputChannel,
outputLabel: "docker.pull",
cancellationToken: cancellationToken,
cancellationToken,
});
} catch (error) {
outputChannel.error("Could not pull LocalStack docker image");
Expand Down
Loading