From 6d3faae27ff5a5a08c66bd54570bb47a2e895127 Mon Sep 17 00:00:00 2001 From: Aaron Friel Date: Tue, 2 Apr 2024 04:10:45 -0700 Subject: [PATCH] fix: advise people of the ESLint Plugin for catching interpolation issues --- sdk/nodejs/output.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/nodejs/output.ts b/sdk/nodejs/output.ts index 2fcb4dc25e1a..85c1517a42b4 100644 --- a/sdk/nodejs/output.ts +++ b/sdk/nodejs/output.ts @@ -202,7 +202,10 @@ To get the value of an Output as an Output consider either: 1: o.apply(v => \`prefix\${v}suffix\`) 2: pulumi.interpolate \`prefix\${v}suffix\` -See https://www.pulumi.com/docs/concepts/inputs-outputs for more details.`; +See https://www.pulumi.com/docs/concepts/inputs-outputs for more details. + +Or use ESLint with https://github.com/pulumi/eslint-plugin-pulumi to warn or +error lint on using Output in template literals.`; if (utils.errorOutputString) { throw new Error(message); }