From 5425dbdd9431cfa6f65450dc3755e0293d189f34 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Mon, 18 Nov 2024 18:48:11 -0500 Subject: [PATCH] Fix all lint warnings --- .eslintrc.js | 5 ++++- src/converters/app-converter.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 2146735..946ae8a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,9 @@ module.exports = { rules: { // disabling this since it is used everywhere in this repo "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-unused-vars": "warn" + "@typescript-eslint/no-unused-vars": ["warn", { + "varsIgnorePattern": "^[_]", + "argsIgnorePattern": "^[_]" + }] } }; diff --git a/src/converters/app-converter.ts b/src/converters/app-converter.ts index 25c60c6..22cc65f 100644 --- a/src/converters/app-converter.ts +++ b/src/converters/app-converter.ts @@ -18,7 +18,7 @@ import { } from '@pulumi/aws-native'; import { mapToAwsResource } from '../aws-resource-mappings'; import { attributePropertyName, mapToCfnResource } from '../cfn-resource-mappings'; -import { CloudFormationMapping, CloudFormationResource, getDependsOn } from '../cfn'; +import { CloudFormationResource, getDependsOn } from '../cfn'; import { OutputMap, OutputRepr } from '../output-map'; import { parseSub } from '../sub'; import { getPartition } from '@pulumi/aws-native/getPartition'; @@ -475,7 +475,7 @@ export class StackConverter extends ArtifactConverter { case 'Fn::Sub': return lift((params) => { - const [template, vars] = + const [template, _vars] = typeof params === 'string' ? [params, undefined] : [params[0] as string, params[1]]; const parts: string[] = [];