From 6099723bf156076d7418b59efc6812c5474e6b99 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Thu, 29 Apr 2021 11:55:12 +0300 Subject: [PATCH] Configure ts to use react-jsx rule Signed-off-by: Alex Andreev --- .eslintrc.js | 4 +++- tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4854713f0e..fc6e89abb2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -183,7 +183,9 @@ module.exports = { { "blankLine": "always", "prev": "*", "next": "class" }, { "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" }, { "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}, - ] + ], + "react/jsx-uses-react": "off", + "react/react-in-jsx-scope": "off", }, } ] diff --git a/tsconfig.json b/tsconfig.json index b2cb7376ef..58d1e5ae6c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "baseUrl": ".", - "jsx": "react", + "jsx": "react-jsx", "target": "ES2017", "module": "ESNext", "lib": [