-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(awslint): rules permit constructs to extend from 'constructs' module #10472
Conversation
0b63043
to
c2a8405
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm. Minor comments (added do-not-merge)
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). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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). |
Introduce an environment variable -
AWSLINT_BASE_CONSTRUCT
recognized by
awslint
. This environment variable indicates that themodule has migrated away from construct classes and
interfaces from
@aws-cdk/core
module to those inconstructs
module.
Specific rules in the linter recognize this variable and modify their
expectations.
Motivation
The primary motivation is to move the code base towards removal of the
construct compat layer as part of CDKv2.
A large number of code changes to adopt "constructs" module can already
be done as part of CDKv1 without incurring breaking changes to the API.
This change enables these changes to be performed module-by-module. As
modules are migrated, this flag will be enabled, to ensure no
regression.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license