1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Configure ts to use react-jsx rule

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2021-04-29 11:55:12 +03:00
parent 78c77a169a
commit 6099723bf1
2 changed files with 4 additions and 2 deletions

View File

@ -183,7 +183,9 @@ module.exports = {
{ "blankLine": "always", "prev": "*", "next": "class" }, { "blankLine": "always", "prev": "*", "next": "class" },
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" }, { "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}, { "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]},
] ],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
}, },
} }
] ]

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"jsx": "react", "jsx": "react-jsx",
"target": "ES2017", "target": "ES2017",
"module": "ESNext", "module": "ESNext",
"lib": [ "lib": [