Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enforce @typescript-eslint/comma-dangle #28991

Merged
merged 6 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloud9-alpha/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export enum ConnectionType {
* When using SSM, service role and instance profile aren't automatically created.
* See https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html#service-role-ssm
*/
CONNECT_SSM = 'CONNECT_SSM'
CONNECT_SSM = 'CONNECT_SSM',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-glue-alpha/lib/s3-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export enum TableEncryption {
*
* @see https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingClientSideEncryption.html
*/
CLIENT_SIDE_KMS = 'CSE-KMS'
CLIENT_SIDE_KMS = 'CSE-KMS',
}

export interface S3TableProps extends TableBaseProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export enum SnsActionMessageFormat {
/**
* JSON message format.
*/
JSON = 'JSON'
JSON = 'JSON',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-python-alpha/lib/packaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export enum DependenciesFile {
PIP = 'requirements.txt',
POETRY = 'poetry.lock',
PIPENV = 'Pipfile.lock',
NONE = ''
NONE = '',
}

export interface PackagingProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-pipes-alpha/lib/pipeVariable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export enum PipeVariable {
/**
* The same as aws.pipes.event, but the variable only has a value if the original payload, either from the source or returned by the enrichment, is JSON. If the pipe has an encoded field, such as the Amazon SQS body field or the Kinesis data, those fields are decoded and turned into valid JSON. Because it isn't escaped, the variable can only be used as a value for a JSON field. For more information, see Implicit body data parsing.
*/
EVENT_JSON = '<aws.pipes.event.json>'
EVENT_JSON = '<aws.pipes.event.json>',

}

Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-redshift-alpha/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export enum TableAction {
/**
* Grants all available privileges at once to the specified user or user group.
*/
ALL
ALL,
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cdk-cli-wrapper/lib/commands/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export enum RequireApproval {
/**
* Only prompt for approval if there are security related changes
*/
BROADENING = 'broadening'
BROADENING = 'broadening',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cli-lib-alpha/lib/commands/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export enum RequireApproval {
/**
* Only prompt for approval if there are security related changes
*/
BROADENING = 'broadening'
BROADENING = 'broadening',
}

/**
Expand Down
8 changes: 4 additions & 4 deletions packages/aws-cdk-lib/aws-apigateway/lib/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export enum ContentHandling {
/**
* Converts a request payload from a binary blob to a base64-encoded string.
*/
CONVERT_TO_TEXT = 'CONVERT_TO_TEXT'
CONVERT_TO_TEXT = 'CONVERT_TO_TEXT',
}

export enum IntegrationType {
Expand Down Expand Up @@ -298,7 +298,7 @@ export enum IntegrationType {
* For integrating the API method request with API Gateway as a "loop-back"
* endpoint without invoking any backend.
*/
MOCK = 'MOCK'
MOCK = 'MOCK',
}

export enum PassthroughBehavior {
Expand All @@ -319,7 +319,7 @@ export enum PassthroughBehavior {
* templates. However if there is at least one content type defined,
* unmapped content types will be rejected with the same 415 response.
*/
WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES'
WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES',
}

export enum ConnectionType {
Expand All @@ -331,7 +331,7 @@ export enum ConnectionType {
/**
* For private connections between API Gateway and a network load balancer in a VPC
*/
VPC_LINK = 'VPC_LINK'
VPC_LINK = 'VPC_LINK',
}

export interface IntegrationResponse {
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-apigateway/lib/json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export enum JsonSchemaVersion {
* @see https://tools.ietf.org/html/draft-zyp-json-schema-04
*/
DRAFT4 = 'http://json-schema.org/draft-04/schema#',
DRAFT7 = 'http://json-schema.org/draft-07/schema#'
DRAFT7 = 'http://json-schema.org/draft-07/schema#',
}

export enum JsonSchemaType {
Expand All @@ -14,7 +14,7 @@ export enum JsonSchemaType {
ARRAY = 'array',
NUMBER = 'number',
INTEGER = 'integer',
STRING = 'string'
STRING = 'string',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ export enum EndpointType {
/**
* For a private API and its custom domain name.
*/
PRIVATE = 'PRIVATE'
PRIVATE = 'PRIVATE',
}

class RootResource extends ResourceBase {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-apigateway/lib/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export interface StageProps extends StageOptions {
export enum MethodLoggingLevel {
OFF = 'OFF',
ERROR = 'ERROR',
INFO = 'INFO'
INFO = 'INFO',
}

export interface MethodDeploymentOptions {
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ThrottleSettings {
export enum Period {
DAY = 'DAY',
WEEK = 'WEEK',
MONTH = 'MONTH'
MONTH = 'MONTH',
}

/**
Expand Down Expand Up @@ -80,7 +80,7 @@ export interface ThrottlingPerMethod {
* Type of Usage Plan Key. Currently the only supported type is 'ApiKey'
*/
enum UsagePlanKeyType {
API_KEY = 'API_KEY'
API_KEY = 'API_KEY',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export enum AuthorizerPayloadVersion {
VERSION_1_0 = '1.0',

/** Version 2.0 */
VERSION_2_0 = '2.0'
VERSION_2_0 = '2.0',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ enum HttpRouteAuthorizationType {
CUSTOM = 'CUSTOM',

/** No authorizer */
NONE = 'NONE'
NONE = 'NONE',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export enum PassthroughBehavior {
* templates. However if there is at least one content type defined,
* unmapped content types will be rejected with the same 415 response.
*/
WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES'
WHEN_NO_TEMPLATES = 'WHEN_NO_TEMPLATES',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export enum MetricAggregationType {
/**
* Maximum
*/
MAXIMUM = 'Maximum'
MAXIMUM = 'Maximum',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-appmesh/lib/service-discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export enum IpPreference {
* Use IPv6 when sending traffic to a local application.
* First attempt to use IPv6 and fall back to IPv4 for service discovery.
*/
IPV6_PREFERRED = 'IPv6_PREFERRED'
IPV6_PREFERRED = 'IPv6_PREFERRED',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/graphqlapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export enum Visibility {
/**
* Only accessible through a VPC
*/
PRIVATE = 'PRIVATE'
PRIVATE = 'PRIVATE',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ export enum ScalingEvent {
/**
* Send a test notification to the topic
*/
TEST_NOTIFICATION = 'autoscaling:TEST_NOTIFICATION'
TEST_NOTIFICATION = 'autoscaling:TEST_NOTIFICATION',
}

/**
Expand Down Expand Up @@ -2134,7 +2134,7 @@ export enum ScalingProcess {
AZ_REBALANCE = 'AZRebalance',
ALARM_NOTIFICATION = 'AlarmNotification',
SCHEDULED_ACTIONS = 'ScheduledActions',
ADD_TO_LOAD_BALANCER = 'AddToLoadBalancer'
ADD_TO_LOAD_BALANCER = 'AddToLoadBalancer',
}

// Recommended list of processes to suspend from here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export enum MetricAggregationType {
/**
* Maximum
*/
MAXIMUM = 'Maximum'
MAXIMUM = 'Maximum',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-backup/lib/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export enum TagOperation {
/**
* Dummy member
*/
DUMMY = 'dummy'
DUMMY = 'dummy',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-batch/lib/linux-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export enum TmpfsMountOption {
GID = 'gid',
NR_INODES = 'nr_inodes',
NR_BLOCKS = 'nr_blocks',
MPOL = 'mpol'
MPOL = 'mpol',
}

function renderTmpfs(tmpfs: Tmpfs): CfnJobDefinition.TmpfsProperty {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ export enum CloudFormationCapabilities {
*
* @link https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html
*/
AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND'
AUTO_EXPAND = 'CAPABILITY_AUTO_EXPAND',
}
10 changes: 5 additions & 5 deletions packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ export enum HttpVersion {
/** HTTP 2 and HTTP 3 */
HTTP2_AND_3 = 'http2and3',
/** HTTP 3 */
HTTP3 = 'http3'
HTTP3 = 'http3',
}

/**
Expand All @@ -763,7 +763,7 @@ export enum PriceClass {
/** PRICE_CLASS_100 + South Africa, Kenya, Middle East, Japan, Singapore, South Korea, Taiwan, Hong Kong, & Philippines */
PRICE_CLASS_200 = 'PriceClass_200',
/** All locations */
PRICE_CLASS_ALL = 'PriceClass_All'
PRICE_CLASS_ALL = 'PriceClass_All',
}

/**
Expand All @@ -775,7 +775,7 @@ export enum ViewerProtocolPolicy {
/** Will redirect HTTP requests to HTTPS */
REDIRECT_TO_HTTPS = 'redirect-to-https',
/** Both HTTP and HTTPS supported */
ALLOW_ALL = 'allow-all'
ALLOW_ALL = 'allow-all',
}

/**
Expand Down Expand Up @@ -808,7 +808,7 @@ export enum OriginProtocolPolicy {
*/
export enum SSLMethod {
SNI = 'sni-only',
VIP = 'vip'
VIP = 'vip',
}

/**
Expand All @@ -822,7 +822,7 @@ export enum SecurityPolicyProtocol {
TLS_V1_1_2016 = 'TLSv1.1_2016',
TLS_V1_2_2018 = 'TLSv1.2_2018',
TLS_V1_2_2019 = 'TLSv1.2_2019',
TLS_V1_2_2021 = 'TLSv1.2_2021'
TLS_V1_2_2021 = 'TLSv1.2_2021',
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export interface S3OriginConfig {
export enum CloudFrontAllowedMethods {
GET_HEAD = 'GH',
GET_HEAD_OPTIONS = 'GHO',
ALL = 'ALL'
ALL = 'ALL',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum Ec2InstanceAction {
/**
* Reboot the instance
*/
REBOOT = 'reboot'
REBOOT = 'reboot',
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum OpsItemSeverity {
/**
* Set the severity to low
*/
LOW = '4'
LOW = '4',
}

/**
Expand All @@ -47,7 +47,7 @@ export enum OpsItemCategory {
/**
* Set the category to security
*/
SECURITY = 'Security'
SECURITY = 'Security',
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudwatch/lib/alarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export enum TreatMissingData {
/**
* The alarm does not consider missing data points when evaluating whether to change state
*/
MISSING = 'missing'
MISSING = 'missing',
}

/**
Expand Down
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-cloudwatch/lib/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ export enum Shading {
/**
* Add shading below the annotation
*/
BELOW = 'below'
BELOW = 'below',
}

/**
Expand All @@ -830,7 +830,7 @@ export enum VerticalShading {
/**
* Add shading after the annotation
*/
AFTER = 'after'
AFTER = 'after',
}

/**
Expand Down Expand Up @@ -881,7 +881,7 @@ export enum LegendPosition {
/**
* Add shading below the annotation
*/
HIDDEN = 'hidden'
HIDDEN = 'hidden',
}

function mapAnnotation(yAxis: string): ((x: HorizontalAnnotation) => any) {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-cloudwatch/lib/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export enum TextWidgetBackground {
/**
* Transparent background
*/
TRANSPARENT = 'transparent'
TRANSPARENT = 'transparent',
}

/**
Expand Down
Loading
Loading