The CRA toolchain was several major versions behind and no longer maintained, so the whole build, lint and runtime stack is replaced. - replace react-scripts with Vite 8 and TypeScript 7 - upgrade to React 19 and react-router 8 - swap unmaintained libraries: react-html-parser, axios, react-ga, react-image-lightbox, react-helmet, moment, react-spinner-material - replace ESLint with Biome for linting and formatting - switch the package manager from yarn to npm - serve static-contents/ with sirv in dev and copy it into the bundle - keep a withRouter shim so the class components can stay as they are for now
26 lines
638 B
JSON
26 lines
638 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
"target": "ES2023",
|
|
"lib": ["ES2023"],
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"types": ["node"],
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
|
|
"isolatedModules": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": ["vite.config.ts"]
|
|
}
|