-
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: remove TSLint #8946
chore: remove TSLint #8946
Conversation
bf9cf10
to
29e7895
Compare
On every build, we are basically compiling our code 3 times: once with jsii, once with eslint and once with tslint. Also, you need 2 plugins installed into your IDE to get linter erroring and fixing as you type. Between these, TSLint is deprecated, so why are we even doing this anymore? Reduce build times by removing TSLint and migrating all the rules we were getting from it to ESLint. Make all packages lint correctly, which was also not the case.
29e7895
to
6b82c89
Compare
Introduce a `canonicalizeTemplate` function in `@aws-cdk/assert` which translates templates to a common form w.r.t. asset hashes. Use this in some tests and in `cdk-integ-assert` to make the tests succeed if all that is different is the specific asset hash. Currently only supports legacy assets, should be updated for new-style assets when we switch to those. This change is necessary to unblock other build improvements/changes such as #8946.
Introduce a `canonicalizeTemplate` function in `@aws-cdk/assert` which translates templates to a common form w.r.t. asset hashes. Use this in some tests and in `cdk-integ-assert` to make the tests succeed if all that is different is the specific asset hash. Currently only supports legacy assets, should be updated for new-style assets when we switch to those. This change is necessary to unblock other build improvements/changes such as #8946.
Introduce a `canonicalizeTemplate` function in `@aws-cdk/assert` which translates templates to a common form w.r.t. asset hashes. Use this in some tests and in `cdk-integ-assert` to make the tests succeed if all that is different is the specific asset hash. It is switched on by putting `/// !cdk-integ pragma:ignore-assets` at the top of the integ test file. Currently only supports legacy assets, should be updated for new-style assets when we switch to those. This change is necessary to unblock other build improvements/changes such as #8946. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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). |
On every build, we are basically compiling our code 3 times: once with
jsii, once with eslint and once with tslint.
Between these, TSLint is deprecated, so why are we even doing this
anymore? Reduce build times by removing TSLint and migrating all the
rules we were getting from it to ESLint.
Also, with the current setup you need 2 plugins installed into your
IDE to get all linting errors reported as-you-type. Reduce to one
plugin.
This change makes
lerna run lint
run successfully, which was also not the case.This change shaves 5 minutes (25%) off of the PR build (21 minutes down to 16 minutes).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license