Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann committed Dec 2, 2023
1 parent cd1e19c commit dbda28b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
Binary file added .yarn/cache/fsevents-patch-21ad2b1333-8.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ Positionals:
"deprecated-react-text", "deprecated-react-type", "deprecated-sfc-element",
"deprecated-sfc", "deprecated-stateless-component",
"deprecated-void-function-component", "experimental-refobject-defaults",
"implicit-children", "preset-18", "preset-19", "useCallback-implicit-any"]
"implicit-children", "preset-18", "preset-19", "scoped-jsx",
"useCallback-implicit-any"]
paths [string] [required]

Options:
Expand Down
5 changes: 3 additions & 2 deletions bin/__tests__/types-react-codemod.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe("types-react-codemod", () => {
const exec = promisify(childProcess.exec);
const typesReactCodemodBin = path.join(
__dirname,
"../types-react-codemod.cjs",
"../types-react-codemod.cjs"
);
function execTypesReactCodemod(args) {
return exec(`${typesReactCodemodBin} ${args}`, {});
Expand All @@ -25,7 +25,8 @@ describe("types-react-codemod", () => {
"deprecated-react-text", "deprecated-react-type", "deprecated-sfc-element",
"deprecated-sfc", "deprecated-stateless-component",
"deprecated-void-function-component", "experimental-refobject-defaults",
"implicit-children", "preset-18", "preset-19", "useCallback-implicit-any"]
"implicit-children", "preset-18", "preset-19", "scoped-jsx",
"useCallback-implicit-any"]
paths [string] [required]
Options:
Expand Down
10 changes: 5 additions & 5 deletions transforms/__tests__/scoped-jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe("transform scoped-jsx", () => {
`)
).toMatchInlineSnapshot(`
"import * as React from 'react';
interface Props {
children?: ReactNode;
}"
interface Props {
children?: ReactNode;
}"
`);
});

Expand All @@ -46,7 +46,7 @@ describe("transform scoped-jsx", () => {
`)
).toMatchInlineSnapshot(`
"import * as React from 'react';
declare const element: React.JSX.Element;"
declare const element: React.JSX.Element;"
`);
});

Expand Down Expand Up @@ -104,7 +104,7 @@ describe("transform scoped-jsx", () => {
).toMatchInlineSnapshot(`
"import * as React from 'react'
declare const attributes: React.JSX.LibraryManagedAttributes<A, B>;"
declare const attributes: React.JSX.LibraryManagedAttributes<A, B>;"
`);
});
});

0 comments on commit dbda28b

Please sign in to comment.