Skip to content

Commit

Permalink
Add react configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thasmo committed Dec 1, 2024
1 parent 6159508 commit af44cbe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion configuration/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext", "webworker"],
"jsx": "react-jsx",
"allowJs": true,
"skipLibCheck": true,

Expand Down
6 changes: 6 additions & 0 deletions configuration/react.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./basic.json",
"compilerOptions": {
"jsx": "react-jsx"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"exports": {
".": "./configuration/basic.json",
"./basic": "./configuration/basic.json"
"./basic": "./configuration/basic.json",
"./react": "./configuration/react.json"
},
"files": [
"./configuration/"
Expand Down

0 comments on commit af44cbe

Please sign in to comment.