The no-unused-vars-before-return ESLint rule reports false positive on JSX usage #55552
Labels
[Tool] ESLint plugin
/packages/eslint-plugin
[Type] Bug
An existing feature does not function as intended
Write this code:
It defines a
Load
local variable and uses it in the returned function, as a JSX component type.But the
@wordpress/no-unused-vars-before-return
incorrectly flags it as unused:Apparently the rule doesn't find the usage in a JSX markup that is nested inside a local function.
The text was updated successfully, but these errors were encountered: