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 for no-unused-vars in gjs files, when using <Component as |something|> #1991

Closed
c0rydoras opened this issue Nov 8, 2023 · 3 comments · Fixed by #1992
Closed
Labels

Comments

@c0rydoras
Copy link
Contributor

I am experiencing false positives for no-unused-vars in .gjs files

Example:

import UkCard from 'ember-uikit';

<template>
  <UkCard as |card|>
    <card.body>foo</card.body>
  </UkCard>
</template>
[lint:js]   /home[...]/ember-app/app/components/foo.gjs
[lint:js]   4:15  error  'card' is defined but never used  no-unused-vars

minimal reproduction: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction
failing linting workflow: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction/actions/runs/6798889824/job/18483951695

@NullVoxPopuli
Copy link
Contributor

@c0rydoras
Copy link
Contributor Author

sadly nothing changed: https://github.com/c0rydoras/gjs-linting-no-undef-reproduction/actions/runs/6802826029/job/18496779696

@patricklx
Copy link
Contributor

It's an issue with gts parser... I look into it

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