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

import/no-restricted-paths: Allow import type imports #2450

Open
golergka opened this issue May 9, 2022 · 4 comments
Open

import/no-restricted-paths: Allow import type imports #2450

golergka opened this issue May 9, 2022 · 4 comments

Comments

@golergka
Copy link
Contributor

golergka commented May 9, 2022

It would be very useful for no-restricted-paths rule to have an option to allow import types for a zone, as these imports are erased at compile time anyway.

@ljharb
Copy link
Member

ljharb commented May 9, 2022

I could see an additional property on the object for "types" which defaulted to "enforce", and could also be set to "only" or "ignore".

@kasper573
Copy link

This would be awesome for tRPC projects!

@ljharb
Copy link
Member

ljharb commented Dec 1, 2022

Related: #2608

@danvk
Copy link

danvk commented Feb 14, 2023

Related (same?): #1899

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

No branches or pull requests

4 participants