diff options
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/.eslintrc.js | 1 | ||||
| -rw-r--r-- | gui/tasks/scripts.js | 9 | ||||
| -rw-r--r-- | gui/tsconfig.dev.json | 6 | ||||
| -rw-r--r-- | gui/tsconfig.json | 2 |
4 files changed, 16 insertions, 2 deletions
diff --git a/gui/.eslintrc.js b/gui/.eslintrc.js index 02e377d84a..3e39fbd5d9 100644 --- a/gui/.eslintrc.js +++ b/gui/.eslintrc.js @@ -69,6 +69,7 @@ module.exports = { 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react/recommended', + 'plugin:react/jsx-runtime', ], settings: { react: { diff --git a/gui/tasks/scripts.js b/gui/tasks/scripts.js index ec38c7c3fa..36b9def82d 100644 --- a/gui/tasks/scripts.js +++ b/gui/tasks/scripts.js @@ -41,7 +41,14 @@ function makeWatchCompiler(onFirstSuccess, onSuccess) { } }), ); - watch.start('--noClear', '--sourceMap', '--inlineSources', '--incremental', '--project', '.'); + watch.start( + '--noClear', + '--sourceMap', + '--inlineSources', + '--incremental', + '--project', + './tsconfig.dev.json', + ); return watch.tsc; }; compileScripts.displayName = 'compile-scripts-watch'; diff --git a/gui/tsconfig.dev.json b/gui/tsconfig.dev.json new file mode 100644 index 0000000000..91873fa1d1 --- /dev/null +++ b/gui/tsconfig.dev.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "jsx": "react-jsxdev" + } +} diff --git a/gui/tsconfig.json b/gui/tsconfig.json index fc393219d2..88018eb4ff 100644 --- a/gui/tsconfig.json +++ b/gui/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "alwaysStrict": true, "esModuleInterop": true, - "jsx": "react", + "jsx": "react-jsx", "module": "commonjs", "noImplicitReturns": true, "noUnusedLocals": true, |
