Skip to content

Commit

Permalink
Resolve eslint operands
Browse files Browse the repository at this point in the history
  • Loading branch information
direnakkoc committed Mar 10, 2023
1 parent 8bcfba9 commit e569a67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.json
Expand Up @@ -10,12 +10,12 @@
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/no-floating-promises": 0,
"no-template-curly-in-string": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/consistent-type-assertions": 0,
"@typescript-eslint/restrict-plus-operands": 0,
"@typescript-eslint/explicit-function-return-type": 0, // when there is function they return object?
"@typescript-eslint/no-floating-promises": 0
"@typescript-eslint/explicit-function-return-type": 0 // when there is function they return object?

},
"ignorePatterns": ["core/coverage",
"cf-macro/coverage",
Expand Down
4 changes: 2 additions & 2 deletions core/dashboards/dashboard.ts
Expand Up @@ -68,9 +68,9 @@ export function resolveEcsClusterNameForSub (cluster): string | undefined {
// AWS::ECS::Cluster returns the cluster name for 'Ref'
// This can be used as a 'Fn::Sub' variable
if (cluster.GetAtt != null && cluster.GetAtt[1] === 'Arn') {
return '${' + cluster.GetAtt[0] + '}'
return '${' + `${cluster.GetAtt[0]}` + '}'
} else if (cluster.Ref != null) {
return '${' + cluster.Ref + '}'
return '${' + `${cluster.Ref}` + '}'
} else if (cluster['Fn::Sub'] != null) {
return cluster['Fn::Sub']
}
Expand Down
2 changes: 1 addition & 1 deletion serverless-plugin/tests/index.test.ts
Expand Up @@ -41,7 +41,7 @@ const mockServerless = {
providers: { aws: {} },
getProvider: () => ({
naming: {
getLambdaLogicalId: (funcName) => {
getLambdaLogicalId: (funcName: string) => {
return funcName[0].toUpperCase() + funcName.slice(1) + 'LambdaFunction'
}
}
Expand Down

0 comments on commit e569a67

Please sign in to comment.