Skip to content

Commit

Permalink
test(gatsby-plugin-typescript): use defaults from @babel/preset-types…
Browse files Browse the repository at this point in the history
…cript instead of adding our own
  • Loading branch information
hasparus committed Jan 18, 2021
1 parent a078a1b commit c83ed47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gatsby-plugin-typescript/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ exports.pluginOptionsSchema = ({ Joi }) =>
.description(
`Replace the function used when compiling JSX fragment expressions.`
)
.default(`React.Fragment`),
.optional(),
allExtensions: Joi.boolean()
.description(`Indicates that every file should be parsed as TS or TSX.`)
.default(false)
.when(`isTSX`, { is: true, then: Joi.valid(true) }),
allowNamespaces: Joi.boolean()
.description(`Enables compilation of TypeScript namespaces.`)
.default(false),
.optional(),
allowDeclareFields: Joi.boolean()
.description(
`When enabled, type-only class fields are only removed if they are prefixed with the declare modifier.`
)
.default(false),
.optional(),
onlyRemoveTypeImports: Joi.boolean()
.description(
`When set to true, the transform will only remove type-only imports (introduced in TypeScript 3.8).` +
`This should only be used if you are using TypeScript >= 3.8.`
)
.default(false),
.optional(),
})

exports.resolvableExtensions = resolvableExtensions
Expand Down

0 comments on commit c83ed47

Please sign in to comment.