Skip to content

Commit b4a5f27

Browse files
committed
chore: enable object-shorthand eslint rule
ECMAScript 6 provides a concise form for defining object literal methods and properties. This syntax can make defining complex object literals much cleaner.
1 parent f07a3d0 commit b4a5f27

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

eslint.config.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@ import tseslint from "typescript-eslint";
77
export default tseslint.config(
88
includeIgnoreFile(fileURLToPath(new URL(".gitignore", import.meta.url))),
99
{
10-
extends: [tseslint.configs.recommendedTypeChecked],
10+
rules: {
11+
"object-shorthand": ["error", "always"],
12+
}
13+
},
14+
{
15+
extends: [
16+
// Base recommended rules from @typescript-eslint.
17+
tseslint.configs.recommendedTypeChecked,
18+
// In the future, we might want to switch to more strict configs.
19+
// tseslint.configs.strictTypeChecked,
20+
// tseslint.configs.stylisticTypeChecked,
21+
],
1122
languageOptions: {
1223
parserOptions: {
1324
projectService: true,

src/plugins/configure-aws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default createPlugin(
99
context.subscriptions.push(
1010
commands.registerCommand("localstack.configureAwsProfiles", async () => {
1111
await configureAwsProfiles({
12-
telemetry: telemetry,
12+
telemetry,
1313
notifyNoChangesMade: true,
1414
outputChannel,
1515
});

src/utils/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async function pullDockerImage(
8282
await spawn("docker", ["pull", LOCALSTACK_DOCKER_IMAGE_NAME], {
8383
outputChannel,
8484
outputLabel: "docker.pull",
85-
cancellationToken: cancellationToken,
85+
cancellationToken,
8686
});
8787
} catch (error) {
8888
outputChannel.error("Could not pull LocalStack docker image");

0 commit comments

Comments
 (0)