You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Hi, thanks for your amazing work. I have some feedback but I am very aware this project is still in the very early stages.
When I import an identifier and use it only as a type definition, the parser considers the identifier as unused. It is in fact unused in the JS, but used in the TS. I'm not sure how the parser should handle this?
$ echo "import { Post } from './models'; let post: Post; post;" > test.js
$ eslint test.js
/Users/OliverJAsh/Development/samefourchords.com/test.js
1:10 error 'Post' is defined but never used no-unused-vars
The text was updated successfully, but these errors were encountered:
Hi, thanks for your amazing work. I have some feedback but I am very aware this project is still in the very early stages.
When I import an identifier and use it only as a type definition, the parser considers the identifier as unused. It is in fact unused in the JS, but used in the TS. I'm not sure how the parser should handle this?
Versions:
ESLint config:
Input and output:
The text was updated successfully, but these errors were encountered: