Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Update checks.ts (#240)
Browse files Browse the repository at this point in the history
Not all type definitions use `React.createElement` as the jsx pragma. I bumped into this issue when updating `storybook__preact` types as per DefinitelyTyped/DefinitelyTyped#37275

By adding the compiler option `jsxFactory` other pragmas can be used in type definitions
  • Loading branch information
cortopy authored and sandersn committed Aug 6, 2019
1 parent 83384d2 commit 2586a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export async function checkTsconfig(dirPath: string, dt: DefinitelyTypedInfo | u
case "target":
case "paths":
case "jsx":
case "jsxFactory":
case "experimentalDecorators":
case "noUnusedLocals":
case "noUnusedParameters":
Expand Down

0 comments on commit 2586a69

Please sign in to comment.