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

Use TS 4.5 preserveValueImports if it's available #155

Merged
merged 7 commits into from
Jan 3, 2022

Conversation

Monkatraz
Copy link
Contributor

@Monkatraz Monkatraz commented Dec 28, 2021

Fixes #154
Closes #142

I also updated the package's dev-dependencies to use the latest TypeScript stuff. I did this so that I could add a test for checking if the inline type import syntax works.

@Monkatraz
Copy link
Contributor Author

It appears I need to rewrite the test runner... ESLint doesn't seem to support that synchronous API anymore.

@Monkatraz
Copy link
Contributor Author

Monkatraz commented Dec 28, 2021

Okay, done. Supporting old Node is a pain, man.

@dummdidumm
Copy link
Member

Could you explain what is the difference to #142 with regards to the eslint bump? For example why is the exists function in there instead if the node existsSync and why only use eslint<8 ?

@Monkatraz
Copy link
Contributor Author

My memory is already fuzzy lol but I'm pretty sure existsSync is deprecated.

With the ESLint versioning, it has to do with the supported Node versions. Tests will fail with ESLint 8 because it's not compatible.

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.

Support using TypeScript 4.5 preserveValueImports
2 participants