@tsconfig/vite-react (original) (raw)
6.3.5 • Public • Published 16 days ago
A base TSConfig for working with Vite React.
Add the package to your "devDependencies"
:
npm install --save-dev @tsconfig/vite-react yarn add --dev @tsconfig/vite-react
Add to your tsconfig.json
:
"extends": "@tsconfig/vite-react/tsconfig.json"
The tsconfig.json
:
{ "$schema": "https://json.schemastore.org/tsconfig", "_version": "6.3.5",
"compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "target": "ES2020", "useDefineForClassFields": true, "lib": ["ES2020", "DOM", "DOM.Iterable"], "module": "ESNext", "skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
} }
You can find the code here.