Skip to content

Conversation

@eladb
Copy link
Contributor

@eladb eladb commented Jan 14, 2021

Introduce an eslint rule & fix all instances in our code which refer to @aws-cdk/core.Construct using a qualified namespace (e.g. core.Construct, cdk.Construct, etc). In v2, Construct will refer to constructs.Construct so it will reduce the chances for merge issues.

The rule fixer automatically adds an import statement (separated from the main import group) and replaces the usage. If the file already imports constructs.Construct, then the new import will alias as CoreConstruct.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Introduce an eslint rule & fix all instances in our code which refer to `@aws-cdk/core.Construct` using a qualified namespace (e.g. `core.Construct`, `cdk.Construct`, etc). In v2, `Construct` will refer to `constructs.Construct` so it will reduce the chances for merge issues.

The rule fixer automatically adds an `import` statement (separated from the main import group) and replaces the usage. If the file already imports `constructs.Construct`, then the new import will alias as `CoreConstruct`.
@gitpod-io
Copy link

gitpod-io bot commented Jan 14, 2021

@eladb eladb requested a review from nija-at January 14, 2021 11:38
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 14, 2021
@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Jan 14, 2021
@eladb eladb removed the pr/do-not-merge This PR should not be merged at this time. label Jan 14, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 83b8df8 into master Jan 15, 2021
@mergify mergify bot deleted the benisrae/xxx-construct branch January 15, 2021 07:12
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 7913161
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

mohanrajendran pushed a commit to mohanrajendran/aws-cdk that referenced this pull request Jan 24, 2021
…cts (aws#12504)

Introduce an eslint rule & fix all instances in our code which refer to `@aws-cdk/core.Construct` using a qualified namespace (e.g. `core.Construct`, `cdk.Construct`, etc). In v2, `Construct` will refer to `constructs.Construct` so it will reduce the chances for merge issues.

The rule fixer automatically adds an `import` statement (separated from the main import group) and replaces the usage. If the file already imports `constructs.Construct`, then the new import will alias as `CoreConstruct`.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants