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
Hello, I maintain eslint-plugin-ft-flow and have this issue. There is a rule that calls __defineGeneric which comes from create function's context.getScope or context.sourceCode.getScope(node). The problem is with flow users being recommended to use hermes-eslint over @babel/eslint-parser this function does not exist in hermes-eslint and is throwing errors that __defineGeneric is not a function.
What do you recommend is the appropriate replacement function here or is it something that's mistakeningly missing from hermes.
Bug Description
Hello, I maintain eslint-plugin-ft-flow and have this issue. There is a rule that calls __defineGeneric which comes from create function's
context.getScope
orcontext.sourceCode.getScope(node)
. The problem is with flow users being recommended to usehermes-eslint
over@babel/eslint-parser
this function does not exist inhermes-eslint
and is throwing errors that__defineGeneric
is not a function.What do you recommend is the appropriate replacement function here or is it something that's mistakeningly missing from hermes.
Thank you!
cc @pieterv
Steps To Reproduce
missing-define-generic
yarn
to install dependenciesyarn test:rules
to see the errorssrc/rules/defineFlowType.js
and you can modify it before runningyarn test:rules
againcode example:
The Expected Behavior
It does not error
The text was updated successfully, but these errors were encountered: