Skip to content

Commit 440219b

Browse files
committed
revert changes on demos folder
1 parent 0e87ebf commit 440219b

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

demos/typescript/tsconfig.app.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
22
"compilerOptions": {
3+
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
34
"target": "ES2020",
45
"useDefineForClassFields": true,
56
"lib": ["ES2020", "DOM", "DOM.Iterable"],
67
"module": "ESNext",
78
"skipLibCheck": true,
9+
10+
/* Bundler mode */
811
"moduleResolution": "bundler",
912
"allowImportingTsExtensions": true,
1013
"isolatedModules": true,
1114
"moduleDetection": "force",
1215
"noEmit": true,
1316
"jsx": "react-jsx",
17+
18+
/* Linting */
1419
"strict": true,
1520
"noUnusedLocals": true,
1621
"noUnusedParameters": true,
17-
"noFallthroughCasesInSwitch": true
22+
"noFallthroughCasesInSwitch": true,
23+
"noUncheckedSideEffectImports": true
1824
},
1925
"include": ["src"]
2026
}

demos/typescript/vite.config.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react'
1+
import { defineConfig } from 'vite';
2+
import react from '@vitejs/plugin-react';
33

44
// https://vite.dev/config/
55
export default defineConfig({
6-
plugins: [react()],
7-
})
6+
plugins: [
7+
react({
8+
babel: {
9+
plugins: ['styled-jsx/babel'],
10+
},
11+
}),
12+
],
13+
});

0 commit comments

Comments
 (0)