From 5c0c251ea53f3ea1e74a2ba62d353a081803f1d6 Mon Sep 17 00:00:00 2001 From: Jordan Roher Date: Wed, 19 Apr 2023 14:46:57 -0700 Subject: [PATCH] Added vscode things --- .gitignore | 3 +++ .vscode/extensions.json | 3 +++ package-lock.json | 15 +++++++++++ package.json | 58 ++++++++++++++++++++++++----------------- src/App.tsx | 56 ++++++++++++++++++--------------------- 5 files changed, 81 insertions(+), 54 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.gitignore b/.gitignore index a547bf3..80ce849 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# Starbase 80 +config \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..a94032a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "bradlc.vscode-tailwindcss"] +} diff --git a/package-lock.json b/package-lock.json index 41a62bf..cf164a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "js-yaml": "^4.1.0", + "prettier": "^2.8.7", "react": "^18.2.0", "react-dom": "^18.2.0" }, @@ -1850,6 +1851,20 @@ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, + "node_modules/prettier": { + "version": "2.8.7", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.7.tgz", + "integrity": "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw==", + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", diff --git a/package.json b/package.json index 72f5e45..e67ed4b 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,36 @@ { - "name": "sb80", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "tsc && vite build", - "preview": "vite preview" - }, - "dependencies": { - "js-yaml": "^4.1.0", - "react": "^18.2.0", - "react-dom": "^18.2.0" - }, - "devDependencies": { - "@types/react": "^18.0.28", - "@types/react-dom": "^18.0.11", - "@vitejs/plugin-react": "^3.1.0", - "autoprefixer": "^10.4.14", - "postcss": "^8.4.23", - "tailwindcss": "^3.3.1", - "typescript": "^4.9.3", - "vite": "^4.2.0" - } + "name": "sb80", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "preview": "vite preview" + }, + "dependencies": { + "js-yaml": "^4.1.0", + "prettier": "^2.8.7", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.0.28", + "@types/react-dom": "^18.0.11", + "@vitejs/plugin-react": "^3.1.0", + "autoprefixer": "^10.4.14", + "postcss": "^8.4.23", + "tailwindcss": "^3.3.1", + "typescript": "^4.9.3", + "vite": "^4.2.0" + }, + "prettier": { + "arrowParens": "avoid", + "jsxBracketSameLine": true, + "printWidth": 120, + "semi": true, + "tabWidth": 4, + "trailingComma": "es5", + "useTabs": true + } } diff --git a/src/App.tsx b/src/App.tsx index be4a578..9387438 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,35 +1,31 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from '/vite.svg' -import './App.css' +import { useState } from "react"; +import "./App.css"; +import reactLogo from "./assets/react.svg"; +import viteLogo from "/vite.svg"; function App() { - const [count, setCount] = useState(0) + const [count, setCount] = useState(0); - return ( -
-
- - Vite logo - - - React logo - -
-

Vite + React

-
- -

- Edit src/App.tsx and save to test HMR -

-
-

- Click on the Vite and React logos to learn more -

-
- ) + return ( +
+
+ + Vite logo + + + React logo + +
+

Vite + React

+
+ +

+ Edit src/App.tsx and save to test HMR +

+
+

Click on the Vite and React logos to learn more

+
+ ); } -export default App +export default App;