How to fix 'Definition for rule '@typescript-eslint/no-use-before-declare' was not found.eslint(@typescript-eslint/no-use-before-declare)'

Well according to this page, this rule is discouraged as modern TypeScript does not use it and is slow to compute. So you should remove the rule.

If however you still want to keep using it, you can try something like { "no-use-before-define": ["error", { "variables": false }] }

You can read more about this here


For those who googled here, if you encounter some issue with @typescript-eslint/** rule not found issue, most likely is because you are using an outdated package.

Here I am using @typescript-eslint/eslint-plugin as an example. It may not be your direct dependency, use npm ls @typescript-eslint/eslint-plugin to find out the exact version you are using. And try to update it to latest.


Restart your Visual Studio Code.
It may eliminate this error. Me and this dev did the same thing.