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

False positives with no-empty-files #1598

Closed
andreavaccari opened this issue Nov 10, 2021 · 3 comments · Fixed by #1605
Closed

False positives with no-empty-files #1598

andreavaccari opened this issue Nov 10, 2021 · 3 comments · Fixed by #1605
Labels

Comments

@andreavaccari
Copy link

The rule no-empty-files triggers false positives for .d.ts modules that contain only triple-slash directives.

This is used, for example, by vite in lieu of compilerOptions.types in jsconfig.json or tsconfig.json (ref)

Example:

/// <reference types="svelte" />
/// <reference types="vite/client" />
@fisker
Copy link
Collaborator

fisker commented Nov 11, 2021

/cc @manovotny

@manovotny
Copy link
Contributor

Awesome catch! I'll check it out.

@manovotny
Copy link
Contributor

@fisker PR submitted (#1605). Let me know what you think!

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

Successfully merging a pull request may close this issue.

3 participants