Skip to content

Commit 4bc605b

Browse files
authored
chore(deps-dev): bump prettier to v2 with .prettierrc (#1083)
* chore: prettier --write **/*.{ts,js,md,json} * chore: prettify integrationt tests * chore: prettify settings files * chore: yarn add -DW prettier --exact * chore: add .prettierrc * chore: added codegen/* to prettierignore * chore: bump prettier to 2.0.4
1 parent f0fde28 commit 4bc605b

File tree

95 files changed

+489
-484
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+489
-484
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
**/*/CHANGELOG.md
2-
models/*
2+
codegen/*
33
.github/*

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"arrowParens": "avoid",
4+
"endOfLine": "auto",
5+
"trailingComma": "none"
6+
}

commitlint.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
2+
extends: ["@commitlint/config-conventional"],
33
rules: {
4-
"type-enum": [2, "always", [
5-
'feat',
6-
'fix',
7-
'docs',
8-
'test',
9-
'chore'
10-
]]
4+
"type-enum": [2, "always", ["feat", "fix", "docs", "test", "chore"]]
115
}
12-
}
6+
};

features/acm/step_definitions/acm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { ACM } = require("../../../clients/client-acm");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@acm" }, function(scenario, callback) {
4+
Before({ tags: "@acm" }, function (scenario, callback) {
55
this.service = new ACM({});
66
callback();
77
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { APIGateway } = require("../../../clients/client-api-gateway");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@apigateway" }, function(scenario, callback) {
4+
Before({ tags: "@apigateway" }, function (scenario, callback) {
55
this.service = new APIGateway({});
66
callback();
77
});
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { AutoScaling } = require("../../../clients/client-auto-scaling");
22
const { Before, Given, Then } = require("cucumber");
33

4-
Before({ tags: "@autoscaling" }, function(scenario, callback) {
4+
Before({ tags: "@autoscaling" }, function (scenario, callback) {
55
this.service = new AutoScaling({ region: "us-east-1" });
66
callback();
77
});
88

9-
Given("I create a launch configuration with name {string}", function(
9+
Given("I create a launch configuration with name {string}", function (
1010
name,
1111
callback
1212
) {
@@ -18,21 +18,23 @@ Given("I create a launch configuration with name {string}", function(
1818
this.request(null, "createLaunchConfiguration", params, callback, false);
1919
});
2020

21-
Given("I describe launch configurations", function(callback) {
21+
Given("I describe launch configurations", function (callback) {
2222
this.request(null, "describeLaunchConfigurations", {}, callback);
2323
});
2424

25-
Then("the list should contain the launch configuration {string}", function(
25+
Then("the list should contain the launch configuration {string}", function (
2626
name,
2727
callback
2828
) {
29-
this.assert.contains(this.data.LaunchConfigurations, function(configuration) {
29+
this.assert.contains(this.data.LaunchConfigurations, function (
30+
configuration
31+
) {
3032
return configuration.LaunchConfigurationName === name;
3133
});
3234
callback();
3335
});
3436

35-
Then("I delete the launch configuration {string}", function(name, callback) {
37+
Then("I delete the launch configuration {string}", function (name, callback) {
3638
const params = { LaunchConfigurationName: name };
3739
this.request(null, "deleteLaunchConfiguration", params, callback);
3840
});

features/cloudformation/step_definitions/cloudformation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { CloudFormation } = require("../../../clients/client-cloudformation");
22
const { Before, Given } = require("cucumber");
33

4-
Before({ tags: "@cloudformation" }, function(scenario, callback) {
4+
Before({ tags: "@cloudformation" }, function (scenario, callback) {
55
this.service = new CloudFormation({});
66
callback();
77
});
88

9-
Given("I create a CloudFormation stack with name prefix {string}", function(
9+
Given("I create a CloudFormation stack with name prefix {string}", function (
1010
prefix,
1111
callback
1212
) {

features/cloudfront/step_definitions/cloudfront.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ const createParams = {
5252
Enabled: false
5353
};
5454

55-
Before({ tags: "@cloudfront" }, function(scenario, callback) {
55+
Before({ tags: "@cloudfront" }, function (scenario, callback) {
5656
this.service = new CloudFront({});
5757
this.cfCreateParams = createParams;
5858
callback();
5959
});
6060

61-
Given("I create a CloudFront distribution with name prefix {string}", function(
61+
Given("I create a CloudFront distribution with name prefix {string}", function (
6262
prefix,
6363
callback
6464
) {
@@ -75,6 +75,6 @@ Given("I create a CloudFront distribution with name prefix {string}", function(
7575
);
7676
});
7777

78-
Given("I list CloudFront distributions", function(callback) {
78+
Given("I list CloudFront distributions", function (callback) {
7979
this.request(null, "listDistributions", {}, callback);
8080
});

features/cloudsearch/step_definitions/cloudsearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { CloudSearch } = require("../../../clients/client-cloudsearch");
22
const { Before, Given } = require("cucumber");
33

4-
Before({ tags: "@cloudsearch" }, function(scenario, callback) {
4+
Before({ tags: "@cloudsearch" }, function (scenario, callback) {
55
this.service = new CloudSearch({});
66
callback();
77
});
88

9-
Given("I create a domain with name prefix {string}", function(
9+
Given("I create a domain with name prefix {string}", function (
1010
prefix,
1111
callback
1212
) {

features/cloudtrail/step_definitions/cloudtrail.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
const { CloudTrail } = require("../../../clients/client-cloudtrail");
22
const { Before, Given } = require("cucumber");
33

4-
Before({ tags: "@cloudtrail" }, function(scenario, callback) {
4+
Before({ tags: "@cloudtrail" }, function (scenario, callback) {
55
this.service = new CloudTrail({});
66
callback();
77
});
88

9-
Given("I describe trails", function(callback) {
9+
Given("I describe trails", function (callback) {
1010
this.request(null, "describeTrails", {}, callback);
1111
});
1212

13-
Given("I create a trail with an invalid name", function(callback) {
13+
Given("I create a trail with an invalid name", function (callback) {
1414
this.request(
1515
null,
1616
"createTrail",

features/cloudwatch/step_definitions/cloudwatch.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { CloudWatch } = require("../../../clients/client-cloudwatch");
22
const { Before, Given, Then } = require("cucumber");
33

4-
Before({ tags: "@cloudwatch" }, function(scenario, callback) {
4+
Before({ tags: "@cloudwatch" }, function (scenario, callback) {
55
this.service = new CloudWatch({});
66
callback();
77
});
88

9-
Given("I create a CloudWatch alarm with prefix {string}", function(
9+
Given("I create a CloudWatch alarm with prefix {string}", function (
1010
name,
1111
callback
1212
) {
@@ -33,7 +33,7 @@ Given("I create a CloudWatch alarm with prefix {string}", function(
3333
);
3434
});
3535

36-
Given("I create a CloudWatch alarm with name {string}", function(
36+
Given("I create a CloudWatch alarm with name {string}", function (
3737
name,
3838
callback
3939
) {
@@ -52,23 +52,23 @@ Given("I create a CloudWatch alarm with name {string}", function(
5252
this.request(null, "putMetricAlarm", this.cloudWatchAlarm, callback, false);
5353
});
5454

55-
Given("I list the CloudWatch alarms", function(callback) {
55+
Given("I list the CloudWatch alarms", function (callback) {
5656
const params = {
5757
MetricName: this.cloudWatchAlarm.MetricName,
5858
Namespace: this.cloudWatchAlarm.Namespace
5959
};
6060
this.request(null, "describeAlarmsForMetric", params, callback);
6161
});
6262

63-
Then("the list should contain the CloudWatch alarm", function(callback) {
63+
Then("the list should contain the CloudWatch alarm", function (callback) {
6464
const name = this.cloudWatchAlarm.AlarmName;
65-
this.assert.contains(this.data.MetricAlarms, function(alarm) {
65+
this.assert.contains(this.data.MetricAlarms, function (alarm) {
6666
return alarm.AlarmName === name;
6767
});
6868
callback();
6969
});
7070

71-
Then("I delete the CloudWatch alarm", function(callback) {
71+
Then("I delete the CloudWatch alarm", function (callback) {
7272
this.request(
7373
null,
7474
"deleteAlarms",

features/cloudwatchevents/step_definitions/cloudwatchevents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {
33
} = require("../../../clients/client-cloudwatch-events");
44
const { Before } = require("cucumber");
55

6-
Before({ tags: "@cloudwatchevents" }, function(scenario, callback) {
6+
Before({ tags: "@cloudwatchevents" }, function (scenario, callback) {
77
this.service = new CloudWatchEvents({});
88
callback();
99
});

features/cloudwatchlogs/step_definitions/cloudwatchlogs.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { CloudWatchLogs } = require("../../../clients/client-cloudwatch-logs");
22
const { Before, Given, Then } = require("cucumber");
33

4-
Before({ tags: "@cloudwatchlogs" }, function(scenario, callback) {
4+
Before({ tags: "@cloudwatchlogs" }, function (scenario, callback) {
55
this.service = new CloudWatchLogs({});
66
callback();
77
});
88

9-
Given("I create a CloudWatch logGroup with prefix {string}", function(
9+
Given("I create a CloudWatch logGroup with prefix {string}", function (
1010
prefix,
1111
callback
1212
) {
@@ -21,19 +21,19 @@ Given("I create a CloudWatch logGroup with prefix {string}", function(
2121
);
2222
});
2323

24-
Given("I list the CloudWatch logGroups", function(callback) {
24+
Given("I list the CloudWatch logGroups", function (callback) {
2525
this.request(null, "describeLogGroups", {}, callback);
2626
});
2727

28-
Then("the list should contain the CloudWatch logGroup", function(callback) {
28+
Then("the list should contain the CloudWatch logGroup", function (callback) {
2929
const name = this.logGroupName;
30-
this.assert.contains(this.data.logGroups, function(alarm) {
30+
this.assert.contains(this.data.logGroups, function (alarm) {
3131
return alarm.logGroupName === name;
3232
});
3333
callback();
3434
});
3535

36-
Then("I delete the CloudWatch logGroup", function(callback) {
36+
Then("I delete the CloudWatch logGroup", function (callback) {
3737
this.request(
3838
null,
3939
"deleteLogGroup",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { CodeCommit } = require("../../../clients/client-codecommit");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@codecommit" }, function(scenario, callback) {
4+
Before({ tags: "@codecommit" }, function (scenario, callback) {
55
this.service = new CodeCommit({ region: "us-east-1" });
66
callback();
77
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { CodeDeploy } = require("../../../clients/client-codedeploy");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@codedeploy" }, function(scenario, callback) {
4+
Before({ tags: "@codedeploy" }, function (scenario, callback) {
55
this.service = new CodeDeploy({});
66
callback();
77
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { CodePipeline } = require("../../../clients/client-codepipeline");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@codepipeline" }, function(scenario, callback) {
4+
Before({ tags: "@codepipeline" }, function (scenario, callback) {
55
this.service = new CodePipeline({ region: "us-east-1" });
66
callback();
77
});

features/cognitoidentity/step_definitions/cognitoidentity.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { CognitoIdentity } = require("../../../clients/client-cognito-identity");
22
const { Before, Given, Then } = require("cucumber");
33

4-
Before({ tags: "@cognitoidentity" }, function(scenario, callback) {
4+
Before({ tags: "@cognitoidentity" }, function (scenario, callback) {
55
this.service = new CognitoIdentity({});
66
callback();
77
});
88

9-
Given("I create a Cognito identity pool with prefix {string}", function(
9+
Given("I create a Cognito identity pool with prefix {string}", function (
1010
prefix,
1111
callback
1212
) {
@@ -18,7 +18,7 @@ Given("I create a Cognito identity pool with prefix {string}", function(
1818
this.request(null, "createIdentityPool", params, callback, expectError);
1919
});
2020

21-
Given("I describe the Cognito identity pool ID", function(callback) {
21+
Given("I describe the Cognito identity pool ID", function (callback) {
2222
this.identityPoolId = this.data.IdentityPoolId;
2323
this.request(
2424
null,
@@ -28,7 +28,7 @@ Given("I describe the Cognito identity pool ID", function(callback) {
2828
);
2929
});
3030

31-
Then("I delete the Cognito identity pool", function(callback) {
31+
Then("I delete the Cognito identity pool", function (callback) {
3232
this.request(
3333
null,
3434
"deleteIdentityPool",

features/cognitosync/step_definitions/cognitosync.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
const { CognitoSync } = require("../../../clients/client-cognito-sync");
22
const { Before, Given } = require("cucumber");
33

4-
Before({ tags: "@cognitosync" }, function(scenario, callback) {
4+
Before({ tags: "@cognitosync" }, function (scenario, callback) {
55
this.service = new CognitoSync({});
66
callback();
77
});
88

9-
Given("I list Cognito identity pool usage", function(callback) {
9+
Given("I list Cognito identity pool usage", function (callback) {
1010
this.request(null, "listIdentityPoolUsage", {}, callback);
1111
});
1212

1313
Given(
1414
"I list Cognito data sets with identity pool id {string} and identity id {string}",
15-
function(idpid, idid, callback) {
15+
function (idpid, idid, callback) {
1616
const params = { IdentityPoolId: idpid, IdentityId: idid };
1717
this.request(null, "listDatasets", params, callback, false);
1818
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { ConfigService } = require("../../../clients/client-config-service");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@configservice" }, function(scenario, callback) {
4+
Before({ tags: "@configservice" }, function (scenario, callback) {
55
this.service = new ConfigService({});
66
callback();
77
});

features/datapipeline/step_definitions/datapipeline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
const { DataPipeline } = require("../../../clients/client-data-pipeline");
22
const { Before, Given } = require("cucumber");
33

4-
Before({ tags: "@datapipeline" }, function(scenario, callback) {
4+
Before({ tags: "@datapipeline" }, function (scenario, callback) {
55
this.service = new DataPipeline({});
66
callback();
77
});
88

9-
Given("I create a Data Pipeline with name prefix {string}", function(
9+
Given("I create a Data Pipeline with name prefix {string}", function (
1010
prefix,
1111
callback
1212
) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { DeviceFarm } = require("../../../clients/client-device-farm");
22
const { Before } = require("cucumber");
33

4-
Before({ tags: "@devicefarm" }, function(scenario, callback) {
4+
Before({ tags: "@devicefarm" }, function (scenario, callback) {
55
this.service = new DeviceFarm({ region: "us-west-2" });
66
callback();
77
});

0 commit comments

Comments
 (0)