Setting up vite, React, TypeScript, eslint, prettier, vitest, testing-library and react-router @CodingGarden
Setting up vite, React, TypeScript, eslint, prettier, vitest, testing-library and react-router  @CodingGarden
Uploaded September 2022 | Updated September 2026, 2 weeks ago
In this video I show how to setup a react app with vite, typescript, eslint, prettier, vitest, testing-library and react-router. We will use the base template for other react apps we create.

View the starter template we create in this video here: github.com/CodingGarden/react-ts-starter

๐Ÿ’œ Watch live on twitch: twitch.tv/codinggarden
๐Ÿ“ฉ Sign up for my mailing list: https://list.coding.garden/
๐Ÿ’– Donate: https://coding.garden/donate
๐Ÿ˜ Pledge: https://coding.garden/pledge
๐Ÿ’ฌ Discord: https://coding.garden/discord
๐ŸŽ‰ Stickers: https://coding.garden/stickers
๐Ÿ’ป Gear List: https://coding.garden/gear
๐Ÿ”Ž Search for more Coding Garden videos here: https://coding.garden/videos
๐Ÿ—ฃ View the Coding Garden FAQ here: github.com/CodingGarden/faqs

00:00:00 Intro
00:00:10 Hello Friends
00:01:26 generate vite + react + typescript app
00:02:15 generated app overview and cleanup
00:06:53 assets vs public folder
00:07:38 vite hot reloading and auto refresh
00:08:36 setup eslint
00:10:14 airbnb style guide
00:10:50 setup eslint airbnb config
00:12:58 setup eslint airbnb typescript config
00:13:56 eslint parserOptions: project - fix eslintrc + tsconfig.json
00:16:02 fixing code with eslint
00:17:29 disabling eslint rules
00:19:10 setup prettier
00:21:20 setup eslint prettier config and plugin
00:23:54 vitest setup
00:27:17 testing-library setup
00:29:00 jest-dom setup
00:29:57 our first unit test
00:35:07 A note on testing / query methods
00:37:52 setup react-router v6
00:38:50 export "wrapped" App component
00:40:00 HashRouter vs BrowserRouter
00:41:15 setup Routes
00:42:13 setup "pages" directory
00:42:58 Home page
00:43:47 NotFound page
00:45:07 hash routes
00:45:30 Link component
00:46:17 NotFound test setup
00:48:08 Fix App exports
00:49:50 NotFound failing test
00:50:54 fix main.tsx WrappedApp import
00:51:20 A note on unit tests vs integration tests
00:53:40 That's All Folks
00:54:06 catJAM
Setting up vite, React, TypeScript, eslint, prettier, vitest, testing-library and react-routerWhat is Coding Garden?๐ŸŽญ CODING IMPROV - Episode 4 | Building gif kebab with the giphy api and ml5.jsProgramming and Tech News | 2023-01-23 | A View from the Garden - Episode 3๐ŸŽญ CODING IMPROV Episode 8 | Bonzi Macbook ClickerProgrammer goes OUTSIDE to answer your CODE questionsI setup DB Seeds, Customized Auth.js Sessions and Setup User On-boarding - listd devlog - 2023-02-17๐ŸŽฎ๐Ÿš€ Building a Real-time stock ticker | Yahoo Finance Web Sockets + ReactXSS Explained with React and Vanilla JS Examples | Cross Site Scripting | dangerouslySetInnerHTMLBuilding with Deno v2 | Creating Vector Embeddings | YouTube Subtitle Search Tool | Part 3CODE Q&A - Whats the real world like? Do you need a portfolio? How do you manage projects? And more!I integrated Auth.js with SvelteKit and Prisma  - listd devlog - 2023-02-10
Coding Garden |

Setting up vite, React, TypeScript, eslint, prettier, vitest, testing-library and react-router

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER