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

Allowed files for relative paths #354

Open
carlocorradini opened this issue Feb 17, 2025 · 0 comments
Open

Allowed files for relative paths #354

carlocorradini opened this issue Feb 17, 2025 · 0 comments

Comments

@carlocorradini
Copy link
Contributor

We already have a set of accepted files for non-relative paths introduced in version v3.8.
Introduce the allowlist for relative paths.
Consider the test multipleTsconfigs, where the only acceptable files in tsconfig.json are files": ["index.ts", "tsImportee.ts", "tsxImportee.tsx"]. However, in index.ts, we include two extra files (by relative pattern) from the subfolder directory that are not present in tsconfig.json.
Currently, this is accepted because it is a relative pattern and can be easily resolved, but I believe it should be reported because it is not explicitly available in the tsconfig.json.

What do you think? Should the inclusion be forced into tsconfig.json, or should the current practice be maintained?

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

No branches or pull requests

1 participant