diff --git a/jams-react-client/jsconfig.json b/jams-react-client/jsconfig.json deleted file mode 100644 index 5230ed4e87043d142577330f3d2215887a12429a..0000000000000000000000000000000000000000 --- a/jams-react-client/jsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "jsx": "react", - "baseUrl": "src", - "checkJs": true - }, - "include": [ - "src" - ] -} \ No newline at end of file diff --git a/jams-react-client/package.json b/jams-react-client/package.json index 1002551d943fcd1aa646dd6b22151aa050438b47..fb6bc9626f11b6a47e3bc8d115990bf039ddad52 100644 --- a/jams-react-client/package.json +++ b/jams-react-client/package.json @@ -10,6 +10,10 @@ "@mui/icons-material": "^5.11.16", "@mui/material": "^5.13.6", "@mui/styles": "^5.13.2", + "@types/jest": "^29.5.3", + "@types/node": "^20.4.2", + "@types/react": "^18.2.15", + "@types/react-dom": "^18.2.7", "axios": "^1.4.0", "classnames": "2.3.2", "formik": "^2.1.5", @@ -33,6 +37,7 @@ "react-image-file-resizer": "^0.3.8", "react-router-dom": "5.2.0", "react-scripts": "^4.0.0", + "typescript": "^3.9.3", "yup": "^1.2.0" }, "scripts": { @@ -57,9 +62,6 @@ "bugs": { "url": "https://github.com/creativetimofficial/material-dashboard-react/issues" }, - "optionalDependencies": { - "typescript": "3.9.3" - }, "devDependencies": { "@babel/core": "^7.11.6", "@babel/plugin-proposal-private-property-in-object": "^7.21.11", diff --git a/jams-react-client/src/react-app-env.d.ts b/jams-react-client/src/react-app-env.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..6431bc5fc6b2c932dfe5d0418fc667b86c18b9fc --- /dev/null +++ b/jams-react-client/src/react-app-env.d.ts @@ -0,0 +1 @@ +/// <reference types="react-scripts" /> diff --git a/jams-react-client/tsconfig.json b/jams-react-client/tsconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..b7ac98f5cbb3ea5c6ddfe4adfa867e005cfeb962 --- /dev/null +++ b/jams-react-client/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "baseUrl": "src", + "target": "es5", + "module": "esnext", + "allowJs": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], + "allowSyntheticDefaultImports": true, + "strict": true, + "noFallthroughCasesInSwitch": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react" + }, + "include": [ + "src" + ] +}