eslint-plugin-stedi-aws-rules
eslint-plugin-stedi-aws-rules copied to clipboard
Best practices around using AWS SDK & Lambda runtime in JavaScript / TypeScript projects by Stedi.
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. ## Pending Approval These branches will be created by Renovate only once you click...
### Rule name ``` no-cloudwatch-direct-reporting ``` ### Use case description Reporting metrics using Cloudwatch SDK calls creates unnecessary overhead and makes your Lambdas slower. You should use [Embedded Metric Format](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html)...
### Rule name `no-callback-handlers` ### Use case description Callbacks are considered a bad pattern eventually leading to callback hell. Lambda functions should be written using `async/await` style for better readability....
### Rule name ``` initialize-awssdk-outside-handler ``` ### Use case description Initializing AWS SDK client instances inside handler code slows down the execution and does not share them between executions. AWS...
instrument-document-clients does not work for non-assignment instrumentation ```js const db = new DynamoDB.DocumentClient(); AWSXRay.captureAWSClient((db as any).service); const { Items } = await db .query({ TableName: await tableName, KeyConditionExpression: "pk =...