File tree Expand file tree Collapse file tree 4 files changed +24
-24
lines changed Expand file tree Collapse file tree 4 files changed +24
-24
lines changed Original file line number Diff line number Diff line change 14
14
"license" : " MIT" ,
15
15
"type" : " module" ,
16
16
"devDependencies" : {
17
- "@types/react " : " ^18.2.48 " ,
18
- "@types/react-dom " : " ^18.2.18 " ,
19
- "@types/web " : " ^0.0.136 " ,
20
- "bun-plugin-dts" : " ^0.2.1 " ,
17
+ "@types/bun " : " ^1.1.6 " ,
18
+ "@types/react" : " ^18.3.3 " ,
19
+ "@types/react-dom " : " ^18.3.0 " ,
20
+ "bun-plugin-dts" : " ^0.2.3 " ,
21
21
"bun-types" : " latest"
22
22
},
23
23
"peerDependencies" : {
24
- "typescript" : " ^5.0.0 " ,
24
+ "typescript" : " ^5.2.2 " ,
25
25
"react" : " ^19.0.0-rc-cc1ec60d0d-20240607" ,
26
26
"react-dom" : " ^19.0.0-rc-cc1ec60d0d-20240607"
27
27
},
Original file line number Diff line number Diff line change 1
- import { JSXElementConstructor } from "react" ;
1
+ import type { JSXElementConstructor } from "react" ;
2
2
import { useLink } from ".." ;
3
3
4
4
export function Link <
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "lib" : [ " ESNext " ],
4
- "module " : " esnext " ,
5
- "target" : " esnext " ,
6
- "moduleResolution " : " bundler " ,
3
+ // Enable latest features
4
+ "lib " : [ " ESNext " , " DOM " ] ,
5
+ "target" : " ESNext " ,
6
+ "module " : " ESNext " ,
7
7
"moduleDetection" : " force" ,
8
+ "jsx" : " react-jsx" ,
9
+ "allowJs" : true ,
10
+
11
+ // Bundler mode
12
+ "moduleResolution" : " bundler" ,
8
13
"allowImportingTsExtensions" : true ,
14
+ "verbatimModuleSyntax" : true ,
9
15
"noEmit" : true ,
10
- "composite" : true ,
16
+
17
+ // Best practices
11
18
"strict" : true ,
12
- "downlevelIteration" : true ,
13
19
"skipLibCheck" : true ,
14
- "jsx" : " react-jsx" ,
15
- "allowSyntheticDefaultImports" : true ,
16
- "forceConsistentCasingInFileNames" : true ,
17
- "allowJs" : true ,
18
- "types" : [
19
- " web" ,
20
- " bun-types" // add Bun global
21
- ],
22
- "paths" : {
23
- "bun-react-ssr" : [" ./index.tsx" ],
24
- "bun-react-ssr/*" : [" ./*" ]
25
- }
20
+ "noFallthroughCasesInSwitch" : true ,
21
+
22
+ // Some stricter flags (disabled by default)
23
+ "noUnusedLocals" : false ,
24
+ "noUnusedParameters" : false ,
25
+ "noPropertyAccessFromIndexSignature" : false
26
26
}
27
27
}
You can’t perform that action at this time.
0 commit comments