From 714906e0a456f0b2e13b92406c906926e6cec681 Mon Sep 17 00:00:00 2001 From: Thanik Bhongbhibhat Date: Thu, 14 Sep 2023 08:12:31 +0700 Subject: [PATCH] chore: cra-demo uses repo default dependencies (#58) --- examples/cra-demo/.eslintrc.yml | 9 +++++++++ examples/cra-demo/package.json | 17 +++-------------- examples/cra-demo/src/App.tsx | 1 + examples/cra-demo/src/index.css | 9 ++++++++- yarn.lock | 28 +++++++++------------------- 5 files changed, 30 insertions(+), 34 deletions(-) create mode 100644 examples/cra-demo/.eslintrc.yml diff --git a/examples/cra-demo/.eslintrc.yml b/examples/cra-demo/.eslintrc.yml new file mode 100644 index 0000000..dce6542 --- /dev/null +++ b/examples/cra-demo/.eslintrc.yml @@ -0,0 +1,9 @@ +root: true +extends: + - '../../.eslintrc.yml' +ignorePatterns: + - jest.config.js + - jest.setup.js + - dist/ +parserOptions: + project: './tsconfig.json' diff --git a/examples/cra-demo/package.json b/examples/cra-demo/package.json index cb45de2..a4675a7 100644 --- a/examples/cra-demo/package.json +++ b/examples/cra-demo/package.json @@ -21,12 +21,6 @@ "last 1 safari version" ] }, - "eslintConfig": { - "extends": [ - "react-app", - "react-app/jest" - ] - }, "dependencies": { "@formspree/react": "*", "react": "^18.2.0", @@ -34,16 +28,11 @@ "react-dom": "^18.2.0", "react-google-recaptcha-v3": "^1.10.1", "react-scripts": "5.0.1", - "web-vitals": "^2.1.4" + "web-vitals": "^3.4.0" }, "devDependencies": { - "@babel/core": "^7.22.1", - "@babel/plugin-syntax-flow": "^7.21.4", - "@babel/plugin-transform-react-jsx": "^7.22.0", - "@types/node": "^16.11.42", - "@types/react": "^18.0.14", + "@types/react": "^18.0.15", "@types/react-copy-to-clipboard": "^5.0.3", - "@types/react-dom": "^18.0.5", - "typescript": "^4.7.4" + "@types/react-dom": "^18.0.6" } } diff --git a/examples/cra-demo/src/App.tsx b/examples/cra-demo/src/App.tsx index 776ef2f..0860b3b 100644 --- a/examples/cra-demo/src/App.tsx +++ b/examples/cra-demo/src/App.tsx @@ -28,6 +28,7 @@ const App = () => {