Skip to content

Commit

Permalink
Sprinkle some jsx react
Browse files Browse the repository at this point in the history
  • Loading branch information
yurynix committed Mar 13, 2022
1 parent da7b2b1 commit f8581e6
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 19 deletions.
3 changes: 2 additions & 1 deletion configs/no-lib/deprecated/tsconfig.backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../../"],
"types": ["types/deprecated/backend", "node_modules/@types/node"]
"types": ["types/deprecated/backend", "node_modules/@types/node"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/deprecated/tsconfig.pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../../"],
"types": ["types/deprecated/pages"]
"types": ["types/deprecated/pages"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/deprecated/tsconfig.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "../tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../../"],
"types": ["types/deprecated/public"]
"types": ["types/deprecated/public"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../"],
"types": ["types/backend", "node_modules/@types/node"]
"types": ["types/backend", "node_modules/@types/node"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"noEmit": true,
"checkJs": true,
"allowSyntheticDefaultImports": true,
"target": "es2020"
"target": "es2020",
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../"],
"types": ["types/pages"]
"types": ["types/pages"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../../"],
"types": ["types/public"]
"types": ["types/public"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.target_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noLib": false,
"lib": ["ES2020"]
"lib": ["ES2020"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/no-lib/tsconfig.webworker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noLib": false,
"lib": ["WebWorker"]
"lib": ["WebWorker"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/tsconfig.backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"typeRoots": ["../"],
"types": ["types/backend", "node_modules/@types/node"]
"types": ["types/backend", "node_modules/@types/node"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"noEmit": true,
"checkJs": true,
"allowSyntheticDefaultImports": true,
"target": "es2020"
"target": "es2020",
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/tsconfig.pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"typeRoots": ["../"],
"types": ["types/pages"],
"lib": ["ES2020", "WebWorker"]
"lib": ["ES2020", "WebWorker"],
"jsx": "react"
}
}
3 changes: 2 additions & 1 deletion configs/tsconfig.public.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"compilerOptions": {
"typeRoots": ["../"],
"types": ["types/public"],
"lib": ["ES2020", "WebWorker"]
"lib": ["ES2020", "WebWorker"],
"jsx": "react"
}
}
12 changes: 8 additions & 4 deletions test/utils/tsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const getBackendTsConfig = (testPath: string): string => `{
{ "backend/*": ["./*"] },
getPathsCompilerOptions(testPath, getWixModulesPaths())
)
)}
)},
"jsx": "react"
}
}`;

Expand All @@ -42,7 +43,8 @@ const getPagesTsConfig = (testPath: string): string => `{
{ "public/*": ["./public/*"] },
getPathsCompilerOptions(testPath, getWixModulesPaths())
)
)}
)},
"jsx": "react"
}
}`;

Expand All @@ -55,7 +57,8 @@ const getPublicTsConfig = (testPath: string): string => `{
{ "public/*": ["./*"] },
getPathsCompilerOptions(testPath, getWixModulesPaths())
)
)}
)},
"jsx": "react"
}
}`;

Expand All @@ -71,7 +74,8 @@ const getEmptyTsConfig = () => `{
"allowJs": true,
"noEmit": true,
"checkJs": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"jsx": "react"
}
}`;

Expand Down
6 changes: 4 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@
"declaration": true,
"outDir": "dist/types",
"declarationMap": true,
"removeComments": false
"removeComments": false,
"jsx": "react"
},
"ts-node": {
"compilerOptions": {
"module": "commonjs"
"module": "commonjs",
"jsx": "react"
}
},
"include": ["./src/**/*", "./scripts/**/*", "./test/**/*"],
Expand Down

0 comments on commit f8581e6

Please sign in to comment.