From 5dafe543a4ae7048032ae4371bf8e4484e0974b1 Mon Sep 17 00:00:00 2001 From: Artur Tamborski Date: Sun, 17 Jan 2021 13:34:45 +0100 Subject: [PATCH] bump react and typescript versions --- .gitignore | 1 + package.json | 8 ++++---- src/components/Line/Line.tsx | 2 -- src/components/Logo/Logo.tsx | 2 -- src/reportWebVitals.ts | 14 -------------- src/setupTests.ts | 1 - tsconfig.json | 2 +- yarn.lock | 15 ++++++++------- 8 files changed, 14 insertions(+), 31 deletions(-) delete mode 100644 src/reportWebVitals.ts delete mode 100644 src/setupTests.ts diff --git a/.gitignore b/.gitignore index 4d29575..4add432 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ # production /build +.eslintcache # misc .DS_Store diff --git a/package.json b/package.json index 5047c91..f5980e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "crosski", - "version": "0.1.0", + "version": "0.2.0", "private": true, "scripts": { "start": "react-scripts start", @@ -8,16 +8,16 @@ "test": "react-scripts test" }, "dependencies": { + "typescript": "^4.0.5", "@types/node": "^12.0.0", "@types/react": "^16.9.53", "@types/react-dom": "^16.9.8", "react": "^17.0.1", "react-dom": "^17.0.1", - "react-images-upload": "^1.2.8", - "react-scripts": "4.0.0", + "react-scripts": "^4.0.1", "sass": "^1.29.0", "tesseract.js": "^2.1.4", - "typescript": "^4.0.3" + "react-images-upload": "^1.2.8" }, "eslintConfig": { "extends": [ diff --git a/src/components/Line/Line.tsx b/src/components/Line/Line.tsx index 02d67db..375a0d7 100644 --- a/src/components/Line/Line.tsx +++ b/src/components/Line/Line.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - import {Selection} from '../App/App' import './Line.scss'; diff --git a/src/components/Logo/Logo.tsx b/src/components/Logo/Logo.tsx index 6171c97..5f9a62d 100644 --- a/src/components/Logo/Logo.tsx +++ b/src/components/Logo/Logo.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - import Wide from './crosski_wide.svg' import './Logo.scss'; diff --git a/src/reportWebVitals.ts b/src/reportWebVitals.ts deleted file mode 100644 index f1d35b7..0000000 --- a/src/reportWebVitals.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ReportHandler } from 'web-vitals'; - -export default function reportWebVitals(onPerfEntry?: ReportHandler) { - if (!onPerfEntry) - return; - - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); -} diff --git a/src/setupTests.ts b/src/setupTests.ts deleted file mode 100644 index 7b0828b..0000000 --- a/src/setupTests.ts +++ /dev/null @@ -1 +0,0 @@ -import '@testing-library/jest-dom'; diff --git a/tsconfig.json b/tsconfig.json index bf36040..4680854 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,7 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react", + "jsx": "react-jsx", "sourceMap": true, "declaration": true, "noUnusedLocals": true, diff --git a/yarn.lock b/yarn.lock index 8e389bb..c2d5f60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8875,7 +8875,7 @@ react-app-polyfill@^2.0.0: regenerator-runtime "^0.13.7" whatwg-fetch "^3.4.1" -react-dev-utils@^11.0.0: +react-dev-utils@^11.0.1: version "11.0.1" resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-11.0.1.tgz#30106c2055acfd6b047d2dc478a85c356e66fe45" integrity sha512-rlgpCupaW6qQqvu0hvv2FDv40QG427fjghV56XyPcP5aKtOAPzNAhQ7bHqk1YdS2vpW1W7aSV3JobedxuPlBAA== @@ -8947,10 +8947,10 @@ react-refresh@^0.8.3: resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f" integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg== -react-scripts@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-4.0.0.tgz#36f3d84ffff708ac0618fd61e71eaaea11c26417" - integrity sha512-icJ/ctwV5XwITUOupBP9TUVGdWOqqZ0H08tbJ1kVC5VpNWYzEZ3e/x8axhV15ZXRsixLo27snwQE7B6Zd9J2Tg== +react-scripts@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/react-scripts/-/react-scripts-4.0.1.tgz#34974c0f4cfdf1655906c95df6a04d80db8b88f0" + integrity sha512-NnniMSC/wjwhcJAyPJCWtxx6CWONqgvGgV9+QXj1bwoW/JI++YF1eEf3Upf/mQ9KmP57IBdjzWs1XvnPq7qMTQ== dependencies: "@babel/core" "7.12.3" "@pmmmwh/react-refresh-webpack-plugin" "0.4.2" @@ -8994,8 +8994,9 @@ react-scripts@4.0.0: postcss-normalize "8.0.1" postcss-preset-env "6.7.0" postcss-safe-parser "5.0.2" + prompts "2.4.0" react-app-polyfill "^2.0.0" - react-dev-utils "^11.0.0" + react-dev-utils "^11.0.1" react-refresh "^0.8.3" resolve "1.18.1" resolve-url-loader "^3.1.2" @@ -10626,7 +10627,7 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^4.0.3: +typescript@^4.0.5: version "4.1.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7" integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==