From af44cbe7e1a4b5fd465b29cb4be6dcc29d22e03e Mon Sep 17 00:00:00 2001 From: Thomas Deinhamer Date: Sun, 1 Dec 2024 12:33:57 +0100 Subject: [PATCH] Add react configuration --- configuration/basic.json | 1 - configuration/react.json | 6 ++++++ package.json | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 configuration/react.json diff --git a/configuration/basic.json b/configuration/basic.json index 3d90e79..8a561d9 100755 --- a/configuration/basic.json +++ b/configuration/basic.json @@ -2,7 +2,6 @@ "compilerOptions": { "target": "esnext", "lib": ["dom", "dom.iterable", "esnext", "webworker"], - "jsx": "react-jsx", "allowJs": true, "skipLibCheck": true, diff --git a/configuration/react.json b/configuration/react.json new file mode 100644 index 0000000..902ac60 --- /dev/null +++ b/configuration/react.json @@ -0,0 +1,6 @@ +{ + "extends": "./basic.json", + "compilerOptions": { + "jsx": "react-jsx" + } +} diff --git a/package.json b/package.json index f388e4e..a623860 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ }, "exports": { ".": "./configuration/basic.json", - "./basic": "./configuration/basic.json" + "./basic": "./configuration/basic.json", + "./react": "./configuration/react.json" }, "files": [ "./configuration/"