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

no-invalid-triple-slash-reference rule incorrectly warns on path triple slash references in .js files #982

Closed
jaydenseric opened this issue Dec 14, 2021 · 2 comments · Fixed by #1019
Labels
bug Something isn't working

Comments

@jaydenseric
Copy link

Lint Name

no-invalid-triple-slash-reference

Code Snippet

// @ts-check
/// <reference path="./types.d.ts" />

Expected Result

No lint errors.

Actual Result

Lint errors:

This triple-slash reference directive is not allowed in JavaScript
In JavaScript only the `lib` and `types` directives are allowed, like `/// <reference lib="..." />` or `/// <reference types="..." />`

Additional Info

A similar bug was already fixed for lib triple slash references: #854 .

Version

deno 1.16.4 (release, aarch64-apple-darwin)
v8 9.7.106.15
typescript 4.4.2

@jaydenseric jaydenseric added the bug Something isn't working label Dec 14, 2021
@AkinAguda
Copy link
Contributor

Can I give this a shot?

@bartlomieju
Copy link
Member

@AkinAguda please do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants