From 5e5f7b9fb02f49e0161b572626590e2b0dc3b45c Mon Sep 17 00:00:00 2001 From: Chung Wei Leong Date: Thu, 8 Oct 2020 20:40:46 +0800 Subject: [PATCH] Fixed https://github.com/typescript-eslint/typescript-eslint/issues/2502 --- react/rules/typescript.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/react/rules/typescript.js b/react/rules/typescript.js index 73102d4..dfdb1f5 100644 --- a/react/rules/typescript.js +++ b/react/rules/typescript.js @@ -7,7 +7,11 @@ module.exports = { warnOnUnsupportedTypeScriptVersion: true }, rules: { - 'react/prop-types': 'off' + 'react/prop-types': 'off', + + // https://github.com/typescript-eslint/typescript-eslint/issues/2502 + 'no-use-before-define': 'off', + '@typescript-eslint/no-use-before-define': 'error' } } ]