Skip to content

Commit

Permalink
chore: fix all lint warnings (#229)
Browse files Browse the repository at this point in the history
A combination of fixes and relaxed linter rules, `yarn run lint` now
passes without warnings.
  • Loading branch information
t0yv0 authored Nov 19, 2024
1 parent be3a4f2 commit 8460686
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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": "^[_]"
}]
}
};
4 changes: 2 additions & 2 deletions src/converters/app-converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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[] = [];
Expand Down

0 comments on commit 8460686

Please sign in to comment.