Skip to content

Conversation

@octogonz
Copy link
Collaborator

@octogonz octogonz commented Apr 10, 2021

Summary

The @rushstack/packlets/circular-deps rule did not work correctly with TypeScript 4.2

Fixes #2591

Details

The reason is that the DependencyAnalyzer relies on an internal compiler API which was redesigned in TypeScript 4.2. See #2591 notes for details.

How it was tested

  1. Confirmed that @rushstack/packlets/circular-deps rule now correctly detects a circular reference with TypeScript 4.2.4
  2. Confirmed that @rushstack/packlets/circular-deps rule will works with TypeScript 3.9.9 that we used before
  3. Confirmed that no problems are reported if there are no circular references

@octogonz octogonz merged commit 5d6ea38 into master Apr 12, 2021
@octogonz octogonz deleted the octogonz/eslint-plugins-packlets-ts4 branch April 12, 2021 05:19
@octogonz
Copy link
Collaborator Author

This fix was released with @rushstack/eslint-plugin-packlets version 0.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[eslint-plugin-packlets] Linting TypeError with typescript version >=4.2.0

3 participants