Skip to content

Commit

Permalink
chore(deps-dev): bump prettier to v2 with .prettierrc (#1083)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
trivikr committed Apr 8, 2020
1 parent f0fde28 commit 4bc605b
Show file tree
Hide file tree
Showing 95 changed files with 489 additions and 484 deletions.
2 changes: 1 addition & 1 deletion .prettierignore
@@ -1,3 +1,3 @@
**/*/CHANGELOG.md
models/*
codegen/*
.github/*
6 changes: 6 additions & 0 deletions .prettierrc
@@ -0,0 +1,6 @@
{
"$schema": "http://json.schemastore.org/prettierrc",
"arrowParens": "avoid",
"endOfLine": "auto",
"trailingComma": "none"
}
12 changes: 3 additions & 9 deletions commitlint.config.js
@@ -1,12 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [2, "always", [
'feat',
'fix',
'docs',
'test',
'chore'
]]
"type-enum": [2, "always", ["feat", "fix", "docs", "test", "chore"]]
}
}
};
2 changes: 1 addition & 1 deletion features/acm/step_definitions/acm.js
@@ -1,7 +1,7 @@
const { ACM } = require("../../../clients/client-acm");
const { Before } = require("cucumber");

Before({ tags: "@acm" }, function(scenario, callback) {
Before({ tags: "@acm" }, function (scenario, callback) {
this.service = new ACM({});
callback();
});
2 changes: 1 addition & 1 deletion features/apigateway/step_definitions/apigateway.js
@@ -1,7 +1,7 @@
const { APIGateway } = require("../../../clients/client-api-gateway");
const { Before } = require("cucumber");

Before({ tags: "@apigateway" }, function(scenario, callback) {
Before({ tags: "@apigateway" }, function (scenario, callback) {
this.service = new APIGateway({});
callback();
});
14 changes: 8 additions & 6 deletions features/autoscaling/step_definitions/autoscaling.js
@@ -1,12 +1,12 @@
const { AutoScaling } = require("../../../clients/client-auto-scaling");
const { Before, Given, Then } = require("cucumber");

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

Given("I create a launch configuration with name {string}", function(
Given("I create a launch configuration with name {string}", function (
name,
callback
) {
Expand All @@ -18,21 +18,23 @@ Given("I create a launch configuration with name {string}", function(
this.request(null, "createLaunchConfiguration", params, callback, false);
});

Given("I describe launch configurations", function(callback) {
Given("I describe launch configurations", function (callback) {
this.request(null, "describeLaunchConfigurations", {}, callback);
});

Then("the list should contain the launch configuration {string}", function(
Then("the list should contain the launch configuration {string}", function (
name,
callback
) {
this.assert.contains(this.data.LaunchConfigurations, function(configuration) {
this.assert.contains(this.data.LaunchConfigurations, function (
configuration
) {
return configuration.LaunchConfigurationName === name;
});
callback();
});

Then("I delete the launch configuration {string}", function(name, callback) {
Then("I delete the launch configuration {string}", function (name, callback) {
const params = { LaunchConfigurationName: name };
this.request(null, "deleteLaunchConfiguration", params, callback);
});
4 changes: 2 additions & 2 deletions features/cloudformation/step_definitions/cloudformation.js
@@ -1,12 +1,12 @@
const { CloudFormation } = require("../../../clients/client-cloudformation");
const { Before, Given } = require("cucumber");

Before({ tags: "@cloudformation" }, function(scenario, callback) {
Before({ tags: "@cloudformation" }, function (scenario, callback) {
this.service = new CloudFormation({});
callback();
});

Given("I create a CloudFormation stack with name prefix {string}", function(
Given("I create a CloudFormation stack with name prefix {string}", function (
prefix,
callback
) {
Expand Down
6 changes: 3 additions & 3 deletions features/cloudfront/step_definitions/cloudfront.js
Expand Up @@ -52,13 +52,13 @@ const createParams = {
Enabled: false
};

Before({ tags: "@cloudfront" }, function(scenario, callback) {
Before({ tags: "@cloudfront" }, function (scenario, callback) {
this.service = new CloudFront({});
this.cfCreateParams = createParams;
callback();
});

Given("I create a CloudFront distribution with name prefix {string}", function(
Given("I create a CloudFront distribution with name prefix {string}", function (
prefix,
callback
) {
Expand All @@ -75,6 +75,6 @@ Given("I create a CloudFront distribution with name prefix {string}", function(
);
});

Given("I list CloudFront distributions", function(callback) {
Given("I list CloudFront distributions", function (callback) {
this.request(null, "listDistributions", {}, callback);
});
4 changes: 2 additions & 2 deletions features/cloudsearch/step_definitions/cloudsearch.js
@@ -1,12 +1,12 @@
const { CloudSearch } = require("../../../clients/client-cloudsearch");
const { Before, Given } = require("cucumber");

Before({ tags: "@cloudsearch" }, function(scenario, callback) {
Before({ tags: "@cloudsearch" }, function (scenario, callback) {
this.service = new CloudSearch({});
callback();
});

Given("I create a domain with name prefix {string}", function(
Given("I create a domain with name prefix {string}", function (
prefix,
callback
) {
Expand Down
6 changes: 3 additions & 3 deletions features/cloudtrail/step_definitions/cloudtrail.js
@@ -1,16 +1,16 @@
const { CloudTrail } = require("../../../clients/client-cloudtrail");
const { Before, Given } = require("cucumber");

Before({ tags: "@cloudtrail" }, function(scenario, callback) {
Before({ tags: "@cloudtrail" }, function (scenario, callback) {
this.service = new CloudTrail({});
callback();
});

Given("I describe trails", function(callback) {
Given("I describe trails", function (callback) {
this.request(null, "describeTrails", {}, callback);
});

Given("I create a trail with an invalid name", function(callback) {
Given("I create a trail with an invalid name", function (callback) {
this.request(
null,
"createTrail",
Expand Down
14 changes: 7 additions & 7 deletions features/cloudwatch/step_definitions/cloudwatch.js
@@ -1,12 +1,12 @@
const { CloudWatch } = require("../../../clients/client-cloudwatch");
const { Before, Given, Then } = require("cucumber");

Before({ tags: "@cloudwatch" }, function(scenario, callback) {
Before({ tags: "@cloudwatch" }, function (scenario, callback) {
this.service = new CloudWatch({});
callback();
});

Given("I create a CloudWatch alarm with prefix {string}", function(
Given("I create a CloudWatch alarm with prefix {string}", function (
name,
callback
) {
Expand All @@ -33,7 +33,7 @@ Given("I create a CloudWatch alarm with prefix {string}", function(
);
});

Given("I create a CloudWatch alarm with name {string}", function(
Given("I create a CloudWatch alarm with name {string}", function (
name,
callback
) {
Expand All @@ -52,23 +52,23 @@ Given("I create a CloudWatch alarm with name {string}", function(
this.request(null, "putMetricAlarm", this.cloudWatchAlarm, callback, false);
});

Given("I list the CloudWatch alarms", function(callback) {
Given("I list the CloudWatch alarms", function (callback) {
const params = {
MetricName: this.cloudWatchAlarm.MetricName,
Namespace: this.cloudWatchAlarm.Namespace
};
this.request(null, "describeAlarmsForMetric", params, callback);
});

Then("the list should contain the CloudWatch alarm", function(callback) {
Then("the list should contain the CloudWatch alarm", function (callback) {
const name = this.cloudWatchAlarm.AlarmName;
this.assert.contains(this.data.MetricAlarms, function(alarm) {
this.assert.contains(this.data.MetricAlarms, function (alarm) {
return alarm.AlarmName === name;
});
callback();
});

Then("I delete the CloudWatch alarm", function(callback) {
Then("I delete the CloudWatch alarm", function (callback) {
this.request(
null,
"deleteAlarms",
Expand Down
Expand Up @@ -3,7 +3,7 @@ const {
} = require("../../../clients/client-cloudwatch-events");
const { Before } = require("cucumber");

Before({ tags: "@cloudwatchevents" }, function(scenario, callback) {
Before({ tags: "@cloudwatchevents" }, function (scenario, callback) {
this.service = new CloudWatchEvents({});
callback();
});
12 changes: 6 additions & 6 deletions features/cloudwatchlogs/step_definitions/cloudwatchlogs.js
@@ -1,12 +1,12 @@
const { CloudWatchLogs } = require("../../../clients/client-cloudwatch-logs");
const { Before, Given, Then } = require("cucumber");

Before({ tags: "@cloudwatchlogs" }, function(scenario, callback) {
Before({ tags: "@cloudwatchlogs" }, function (scenario, callback) {
this.service = new CloudWatchLogs({});
callback();
});

Given("I create a CloudWatch logGroup with prefix {string}", function(
Given("I create a CloudWatch logGroup with prefix {string}", function (
prefix,
callback
) {
Expand All @@ -21,19 +21,19 @@ Given("I create a CloudWatch logGroup with prefix {string}", function(
);
});

Given("I list the CloudWatch logGroups", function(callback) {
Given("I list the CloudWatch logGroups", function (callback) {
this.request(null, "describeLogGroups", {}, callback);
});

Then("the list should contain the CloudWatch logGroup", function(callback) {
Then("the list should contain the CloudWatch logGroup", function (callback) {
const name = this.logGroupName;
this.assert.contains(this.data.logGroups, function(alarm) {
this.assert.contains(this.data.logGroups, function (alarm) {
return alarm.logGroupName === name;
});
callback();
});

Then("I delete the CloudWatch logGroup", function(callback) {
Then("I delete the CloudWatch logGroup", function (callback) {
this.request(
null,
"deleteLogGroup",
Expand Down
2 changes: 1 addition & 1 deletion features/codecommit/step_definitions/codecommit.js
@@ -1,7 +1,7 @@
const { CodeCommit } = require("../../../clients/client-codecommit");
const { Before } = require("cucumber");

Before({ tags: "@codecommit" }, function(scenario, callback) {
Before({ tags: "@codecommit" }, function (scenario, callback) {
this.service = new CodeCommit({ region: "us-east-1" });
callback();
});
2 changes: 1 addition & 1 deletion features/codedeploy/step_definitions/codedeploy.js
@@ -1,7 +1,7 @@
const { CodeDeploy } = require("../../../clients/client-codedeploy");
const { Before } = require("cucumber");

Before({ tags: "@codedeploy" }, function(scenario, callback) {
Before({ tags: "@codedeploy" }, function (scenario, callback) {
this.service = new CodeDeploy({});
callback();
});
2 changes: 1 addition & 1 deletion features/codepipeline/step_definitions/codepipeline.js
@@ -1,7 +1,7 @@
const { CodePipeline } = require("../../../clients/client-codepipeline");
const { Before } = require("cucumber");

Before({ tags: "@codepipeline" }, function(scenario, callback) {
Before({ tags: "@codepipeline" }, function (scenario, callback) {
this.service = new CodePipeline({ region: "us-east-1" });
callback();
});
8 changes: 4 additions & 4 deletions features/cognitoidentity/step_definitions/cognitoidentity.js
@@ -1,12 +1,12 @@
const { CognitoIdentity } = require("../../../clients/client-cognito-identity");
const { Before, Given, Then } = require("cucumber");

Before({ tags: "@cognitoidentity" }, function(scenario, callback) {
Before({ tags: "@cognitoidentity" }, function (scenario, callback) {
this.service = new CognitoIdentity({});
callback();
});

Given("I create a Cognito identity pool with prefix {string}", function(
Given("I create a Cognito identity pool with prefix {string}", function (
prefix,
callback
) {
Expand All @@ -18,7 +18,7 @@ Given("I create a Cognito identity pool with prefix {string}", function(
this.request(null, "createIdentityPool", params, callback, expectError);
});

Given("I describe the Cognito identity pool ID", function(callback) {
Given("I describe the Cognito identity pool ID", function (callback) {
this.identityPoolId = this.data.IdentityPoolId;
this.request(
null,
Expand All @@ -28,7 +28,7 @@ Given("I describe the Cognito identity pool ID", function(callback) {
);
});

Then("I delete the Cognito identity pool", function(callback) {
Then("I delete the Cognito identity pool", function (callback) {
this.request(
null,
"deleteIdentityPool",
Expand Down
6 changes: 3 additions & 3 deletions features/cognitosync/step_definitions/cognitosync.js
@@ -1,18 +1,18 @@
const { CognitoSync } = require("../../../clients/client-cognito-sync");
const { Before, Given } = require("cucumber");

Before({ tags: "@cognitosync" }, function(scenario, callback) {
Before({ tags: "@cognitosync" }, function (scenario, callback) {
this.service = new CognitoSync({});
callback();
});

Given("I list Cognito identity pool usage", function(callback) {
Given("I list Cognito identity pool usage", function (callback) {
this.request(null, "listIdentityPoolUsage", {}, callback);
});

Given(
"I list Cognito data sets with identity pool id {string} and identity id {string}",
function(idpid, idid, callback) {
function (idpid, idid, callback) {
const params = { IdentityPoolId: idpid, IdentityId: idid };
this.request(null, "listDatasets", params, callback, false);
}
Expand Down
2 changes: 1 addition & 1 deletion features/configservice/step_definitions/configservice.js
@@ -1,7 +1,7 @@
const { ConfigService } = require("../../../clients/client-config-service");
const { Before } = require("cucumber");

Before({ tags: "@configservice" }, function(scenario, callback) {
Before({ tags: "@configservice" }, function (scenario, callback) {
this.service = new ConfigService({});
callback();
});
4 changes: 2 additions & 2 deletions features/datapipeline/step_definitions/datapipeline.js
@@ -1,12 +1,12 @@
const { DataPipeline } = require("../../../clients/client-data-pipeline");
const { Before, Given } = require("cucumber");

Before({ tags: "@datapipeline" }, function(scenario, callback) {
Before({ tags: "@datapipeline" }, function (scenario, callback) {
this.service = new DataPipeline({});
callback();
});

Given("I create a Data Pipeline with name prefix {string}", function(
Given("I create a Data Pipeline with name prefix {string}", function (
prefix,
callback
) {
Expand Down
2 changes: 1 addition & 1 deletion features/devicefarm/step_definitions/devicefarm.js
@@ -1,7 +1,7 @@
const { DeviceFarm } = require("../../../clients/client-device-farm");
const { Before } = require("cucumber");

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

0 comments on commit 4bc605b

Please sign in to comment.