25 lines
456 B
TypeScript
25 lines
456 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// @Filename: /dir/a.tsx
|
||
|
////export const Component = () => <></>;
|
||
|
|
||
|
// @Filename: /dir/jsconfig.json
|
||
|
////{
|
||
|
//// "compilerOptions": {
|
||
|
//// "jsx": false,
|
||
|
//// }
|
||
|
////}
|
||
|
|
||
|
goTo.file("/dir/a.tsx");
|
||
|
verify.codeFix({
|
||
|
description: "Enable the '--jsx' flag in your configuration file",
|
||
|
newFileContent: {
|
||
|
"/dir/jsconfig.json":
|
||
|
`{
|
||
|
"compilerOptions": {
|
||
|
"jsx": "react",
|
||
|
}
|
||
|
}`,
|
||
|
},
|
||
|
});
|