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: remove TSLint #8946

Merged
merged 10 commits into from
Jul 10, 2020
Merged

chore: remove TSLint #8946

merged 10 commits into from
Jul 10, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jul 8, 2020

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

@rix0rrr rix0rrr requested a review from a team July 8, 2020 15:56
@rix0rrr rix0rrr self-assigned this Jul 8, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 8, 2020
@rix0rrr rix0rrr force-pushed the huijbers/remove-tslint branch 2 times, most recently from bf9cf10 to 29e7895 Compare July 8, 2020 17:16
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.
rix0rrr added a commit that referenced this pull request Jul 9, 2020
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.
rix0rrr added a commit that referenced this pull request Jul 9, 2020
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.
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Jul 9, 2020
mergify bot pushed a commit that referenced this pull request Jul 9, 2020
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*
@rix0rrr rix0rrr removed the pr/do-not-merge This PR should not be merged at this time. label Jul 10, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 10, 2020

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify
Copy link
Contributor

mergify bot commented Jul 10, 2020

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 16d2a48 into master Jul 10, 2020
@mergify mergify bot deleted the huijbers/remove-tslint branch July 10, 2020 12:45
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