Skip to content

Commit

Permalink
Suggest jsx: "react" in tsconfig (#7472)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsMapleLeaf authored and ianschmitz committed Aug 4, 2019
1 parent 032cdf7 commit 30fc0bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ function verifyTypeScriptSetup() {
isolatedModules: { value: true, reason: 'implementation limitation' },
noEmit: { value: true },
jsx: {
parsedValue: ts.JsxEmit.Preserve,
value: 'preserve',
reason: 'JSX is compiled by Babel',
parsedValue: ts.JsxEmit.React,
suggested: 'react',
},
paths: { value: undefined, reason: 'aliased imports are not supported' },
};
Expand Down

0 comments on commit 30fc0bf

Please sign in to comment.