Skip to content

[BUG]: animations/glare-hover Linter error: Expected an assignment or function call and instead saw an expression. #353

@WarriorAchilles

Description

@WarriorAchilles

Describe the issue

When using typescript and eslint with the Glare Hover component with tailwind, it gives an error in the animateIn function:

Expected an assignment or function call and instead saw an expression. eslint(@typescript-eslint/no-unused-expressions)

On the line with el.offsetHeight;, there is nothing assigning anything to el.offsetHeight, so this code isn't doing anything.

Reproduction Link

No response

Steps to reproduce

Use eslint with the rule eslint(@typescript-eslint/no-unused-expressions) and see linter error in animateIn function.

Validations

  • I have checked other issues to see if my issue was already reported or addressed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions