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
Leaving this rule enabled in for example .tsx files causes this error: 'React' was used before it was defined.
Typically this is resolved by using replacing this rule with @typescript-eslint/no-use-before-define as can be seen here.
Why does this config not do that? I was kinda bummed because i thought i could use xo with my TypeScript + React project out of the box ^^'
The text was updated successfully, but these errors were encountered:
FunctionDJ
changed the title
Why doesn't this config disable eslint/no-use-before-undefined?
Why doesn't this config disable eslint/no-use-before-defined?
Apr 13, 2021
Leaving this rule enabled in for example .tsx files causes this error:
'React' was used before it was defined.
Typically this is resolved by using replacing this rule with
@typescript-eslint/no-use-before-define
as can be seen here.Why does this config not do that? I was kinda bummed because i thought i could use
xo
with my TypeScript + React project out of the box ^^'The text was updated successfully, but these errors were encountered: