diff --git a/.codesandbox/workspace.json b/.codesandbox/workspace.json
index e7d06a2..1870c7a 100644
--- a/.codesandbox/workspace.json
+++ b/.codesandbox/workspace.json
@@ -1,20 +1,8 @@
{
"responsive-preview": {
- "Mobile": [
- 320,
- 675
- ],
- "Tablet": [
- 1024,
- 765
- ],
- "Desktop": [
- 1400,
- 800
- ],
- "Desktop HD": [
- 1920,
- 1080
- ]
+ "Mobile": [320, 675],
+ "Tablet": [1024, 765],
+ "Desktop": [1400, 800],
+ "Desktop HD": [1920, 1080]
}
-}
\ No newline at end of file
+}
diff --git a/.eslintrc.js b/.eslintrc.js
deleted file mode 100644
index 754b931..0000000
--- a/.eslintrc.js
+++ /dev/null
@@ -1,24 +0,0 @@
-module.exports = {
- parser: "@typescript-eslint/parser", // Specifies the ESLint parser
- parserOptions: {
- ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
- sourceType: "module", // Allows for the use of imports
- ecmaFeatures: {
- jsx: true // Allows for the parsing of JSX
- }
- },
- settings: {
- react: {
- version: "detect" // Tells eslint-plugin-react to automatically detect the version of React to use
- }
- },
- extends: [
- "plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
- "plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
- "plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
- ],
- rules: {
- // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
- // e.g. "@typescript-eslint/explicit-function-return-type": "off",
- }
-};
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..62c704f
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,30 @@
+{
+ "env": {
+ "browser": true,
+ "es2021": true
+ },
+ "extends": [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:@typescript-eslint/recommended",
+ "plugin:react/jsx-runtime"
+ ],
+ "parser": "@typescript-eslint/parser",
+ "parserOptions": {
+ "ecmaFeatures": {
+ "jsx": true
+ },
+ "ecmaVersion": "latest",
+ "sourceType": "module"
+ },
+ "plugins": ["react", "@typescript-eslint"],
+ "rules": {
+ "react/jsx-uses-react": "error",
+ "react/jsx-uses-vars": "error"
+ },
+ "settings": {
+ "react": {
+ "version": "detect"
+ }
+ }
+}
diff --git a/.prettierrc.js b/.prettierrc.js
deleted file mode 100644
index 2c66e64..0000000
--- a/.prettierrc.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
- semi: true,
- trailingComma: "all",
- singleQuote: true,
- printWidth: 120,
- tabWidth: 4
-};
diff --git a/README.md b/README.md
index b58e0af..7440a52 100644
--- a/README.md
+++ b/README.md
@@ -1,46 +1 @@
-# Getting Started with Create React App
-
-This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
-
-## Available Scripts
-
-In the project directory, you can run:
-
-### `yarn start`
-
-Runs the app in the development mode.\
-Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
-
-The page will reload if you make edits.\
-You will also see any lint errors in the console.
-
-### `yarn test`
-
-Launches the test runner in the interactive watch mode.\
-See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
-
-### `yarn build`
-
-Builds the app for production to the `build` folder.\
-It correctly bundles React in production mode and optimizes the build for the best performance.
-
-The build is minified and the filenames include the hashes.\
-Your app is ready to be deployed!
-
-See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
-
-### `yarn eject`
-
-**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
-
-If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
-
-Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
-
-You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-
-## Learn More
-
-You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
-
-To learn React, check out the [React documentation](https://reactjs.org/).
+working dude....
diff --git a/package.json b/package.json
index 004ef32..2eeaa62 100644
--- a/package.json
+++ b/package.json
@@ -13,12 +13,15 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
- "typescript": "^4.4.2",
+ "typescript": "*",
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
+ "lint": "eslint src/**/*.{js,jsx,ts,tsx,json}",
+ "lint:fix": "eslint --fix 'src/**/*.{js,jsx,ts,tsx,json}'",
+ "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
@@ -39,5 +42,20 @@
"last 1 firefox version",
"last 1 safari version"
]
+ },
+ "devDependencies": {
+ "@typescript-eslint/eslint-plugin": "^5.0.0",
+ "@typescript-eslint/parser": "^5.38.0",
+ "eslint": "^8.0.1",
+ "eslint-config-prettier": "^8.5.0",
+ "eslint-config-standard-with-typescript": "^23.0.0",
+ "eslint-import-resolver-typescript": "^3.5.1",
+ "eslint-plugin-import": "^2.26.0",
+ "eslint-plugin-n": "^15.0.0",
+ "eslint-plugin-prettier": "^4.2.1",
+ "eslint-plugin-promise": "^6.0.0",
+ "eslint-plugin-react": "^7.31.8",
+ "eslint-plugin-react-hooks": "^4.6.0",
+ "prettier": "^2.7.1"
}
}
diff --git a/public/logo192.png b/public/logo192.png
deleted file mode 100644
index fc44b0a..0000000
Binary files a/public/logo192.png and /dev/null differ
diff --git a/public/logo512.png b/public/logo512.png
deleted file mode 100644
index a4e47a6..0000000
Binary files a/public/logo512.png and /dev/null differ
diff --git a/src/App.css b/src/App.css
deleted file mode 100644
index 74b5e05..0000000
--- a/src/App.css
+++ /dev/null
@@ -1,38 +0,0 @@
-.App {
- text-align: center;
-}
-
-.App-logo {
- height: 40vmin;
- pointer-events: none;
-}
-
-@media (prefers-reduced-motion: no-preference) {
- .App-logo {
- animation: App-logo-spin infinite 20s linear;
- }
-}
-
-.App-header {
- background-color: #282c34;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: calc(10px + 2vmin);
- color: white;
-}
-
-.App-link {
- color: #61dafb;
-}
-
-@keyframes App-logo-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/src/App.test.tsx b/src/App.test.tsx
deleted file mode 100644
index 2a68616..0000000
--- a/src/App.test.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import React from 'react';
-import { render, screen } from '@testing-library/react';
-import App from './App';
-
-test('renders learn react link', () => {
- render();
- const linkElement = screen.getByText(/learn react/i);
- expect(linkElement).toBeInTheDocument();
-});
diff --git a/src/App.tsx b/src/App.tsx
index a53698a..4e28c3f 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,26 +1,7 @@
-import React from 'react';
-import logo from './logo.svg';
-import './App.css';
+import React from "react";
function App() {
- return (
-