I know this rule is a bit annoying at times but I think they improved it in the past few years - https://eslint.org/docs/latest/rules/no-use-before-define - https://typescript-eslint.io/rules/no-use-before-define/
I know this rule is a bit annoying at times but I think they improved it in the past few years