From b06311b5f2603987e56f571c31a6448d18354b3d Mon Sep 17 00:00:00 2001 From: Olivier Louvignes Date: Mon, 11 Dec 2023 11:21:40 +0100 Subject: [PATCH] Update vite-react.json --- bases/vite-react.json | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/bases/vite-react.json b/bases/vite-react.json index c08c2c0..9fe88f0 100644 --- a/bases/vite-react.json +++ b/bases/vite-react.json @@ -1,22 +1,27 @@ { "$schema": "https://json.schemastore.org/tsconfig", "display": "Vite React", - "_version": "2.0.0", + "_version": "3.0.0", + "compilerOptions": { - "target": "esnext", + "target": "ES2020", "useDefineForClassFields": true, - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": false, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", "skipLibCheck": true, - "esModuleInterop": false, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "module": "esnext", + + /* Bundler mode */ "moduleResolution": "bundler", + "allowImportingTsExtensions": true, "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react-jsx" + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true } }