Skip to content

garnix-io/garn-example-vite-reactts-eslint-prettier

Repository files navigation

NOTE:

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:

Vite + React + Typescript + Eslint + Prettier

A starter for React with Typescript with the fast Vite and all static code testing with Eslint and formatting with Prettier.

Vite + React + Typescript + Eslint + 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.

Installation

Clone the repo and run npm install

or Run command

npx degit TheSwordBreaker/vite-reactts-eslint-prettier project-name

Start

After the successfull installation of the packages: garn run webApp.dev

Steps in Vscode

(works with better with this template)

  1. Install Eslint and prettier extension for vs code.
  2. Make Sure Both are enabled
  3. Make sure all packages are Installed. (Mostly Eslint and prettier in node_modules)
  4. Enable formatOnSave of vs code
  5. Open a .tsx file and check if the bottom right corners of vs code have Eslint and Prettier with a double tick

Screenshot (253)_LI

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 ⚡)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published