This is a fork of
TheSwordBreaker/vite-reactts-eslint-prettier.
It demonstrates how to add garn to a project, including the
vite
and deployToGhPages
plugins. If you have garn
installed, you can fork this project on
github and run garn run webApp.deployToGhPages
to deploy this web app to
https://$YOUR_GITHUB_USER.github.io/garn-example-vite-reactts-eslint-prettier/.
This fork is deployed here: https://garnix-io.github.io/garn-example-vite-reactts-eslint-prettier/
Here's the original README:
A starter for React with Typescript with the fast Vite and all static code testing with Eslint and formatting with Prettier.
I found out about Vite and I wanted to have a boilerplate for the technologies that I use. You can find more about these in the following links: Vite, React, Typescript, Eslint, Prettier.
Clone the repo and run npm install
or Run command
npx degit TheSwordBreaker/vite-reactts-eslint-prettier project-name
After the successfull installation of the packages: garn run webApp.dev
- Install Eslint and prettier extension for vs code.
- Make Sure Both are enabled
- Make sure all packages are Installed. (Mostly Eslint and prettier in node_modules)
- Enable formatOnSave of vs code
- Open a .tsx file and check if the bottom right corners of vs code have Eslint and Prettier with a double tick
If Everything is Good Then It Should Work, but let me new if something else happens
Made with ❤️ by theSwordBreaker(we Destory all types of sword ⚡)