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(deps-dev): bump prettier to v2 with .prettierrc #1083

Merged
merged 7 commits into from
Apr 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**/*/CHANGELOG.md
models/*
codegen/*
.github/*
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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();
});