Files
visiome.neuroinf.jp/tsconfig.app.json
T
Yoshihiro OKUMURA d5d25d5657 build: align the TypeScript and vite setup with bsi-ni
The tsconfigs were still the ones the CRA conversion produced, while
bsi-ni had been brought in line with the npm create vite@latest
react-ts template.

- take the three tsconfigs from bsi-ni verbatim: ES2023, and
  types: ["vite/client"] in place of src/vite-env.d.ts, which the
  template no longer ships
- drop the CRA leftovers useDefineForClassFields, resolveJsonModule,
  esModuleInterop and forceConsistentCasingInFileNames
- pin typescript with ~ rather than ^, as bsi-ni does
- drop the redundant build.outDir and the server/preview port
  overrides, leaving vite's defaults
- fix a vite.config comment that still pointed at the removed etc/
2026-09-11 19:17:47 +09:00

30 lines
903 B
JSON

{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2023",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "ESNext",
"types": ["vite/client"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
/* SortConditionOrderDir is an enum, which erasable syntax forbids. */
"erasableSyntaxOnly": false,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
}