Git Product home page Git Product logo

react-typescript-eslint-prettier-boilerplate's Introduction

Welcome and feel free to use!

๐Ÿ’ป Project

Well, since I have to create a lot of new projects with pretty much the same configs, I decided to save a bit of my time.

If you are starting and don't know how to create a project on your own and config eslint, prettier, editorconfig I highly recommend you to give a try. But don't forget, look it up to know what's going on here. ๐Ÿ˜‰

The project was initialised using Create React App.

๐Ÿค” Benefits of using Prettier and ESLint

If you have set up Prettier, you can configure it to format your file on saving it. That way, you never need to worry about your code formatting anymore. Since Prettier is highly opinionated, you can do only minor configurations.

๐Ÿš€ Technologies

The project was mainly developed with the following technologies:

"dependencies": {
  "normalize.css": "^8.0.1",
  "react": "^17.0.1",
  "react-icons": "^4.1.0",
  "styled-components": "^5.2.1",
  "typescript": "^4.0.3",
},

"devDependencies": {
  "@types/styled-components": "^5.1.7",
  "@typescript-eslint/eslint-plugin": "^4.10.0",
  "@typescript-eslint/parser": "^4.10.0",
  "eslint": "^7.15.0",
  "eslint-config-airbnb": "^18.2.1",
  "eslint-config-prettier": "^7.0.0",
  "eslint-import-resolver-typescript": "^2.3.0",
  "eslint-plugin-import": "^2.22.1",
  "eslint-plugin-jsx-a11y": "^6.4.1",
  "eslint-plugin-prettier": "^3.3.0",
  "eslint-plugin-react": "^7.21.5",
  "eslint-plugin-react-hooks": "^4",
  "prettier": "^2.2.1"
}

VS Code with EditorConfig and ESLint

๐Ÿ—‚ Folders

โ”œโ”€โ”€ public
โ”‚   โ”œโ”€โ”€ ...
โ”œโ”€โ”€ src
โ”‚   โ”œโ”€โ”€ App.tsx
โ”‚   โ”œโ”€โ”€ components
โ”‚   โ”œโ”€โ”€ index.tsx
โ”‚   โ”œโ”€โ”€ pages
โ”‚   โ”‚   โ””โ”€โ”€ Home
โ”‚   โ”‚       โ”œโ”€โ”€ index.tsx
โ”‚   โ”‚       โ””โ”€โ”€ styles.ts
โ”‚   โ”œโ”€โ”€ react-app-env.d.ts
โ”‚   โ”œโ”€โ”€ reportWebVitals.ts
โ”‚   โ”œโ”€โ”€ setupTests.ts
โ”‚   โ””โ”€โ”€ styles
โ”‚       โ”œโ”€โ”€ GlobalStyles.ts
โ”‚       โ””โ”€โ”€ theme
โ”‚           โ”œโ”€โ”€ defaultTheme.ts
โ”‚           โ””โ”€โ”€ styled.d.ts
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .eslintcache
โ”œโ”€โ”€ .eslintignore
โ”œโ”€โ”€ .eslintrc.json
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ prettier.config.js
โ”œโ”€โ”€ tsconfig.json
โ””โ”€โ”€ yarn.lock

๐Ÿงฉ You will need

๐Ÿ“š Creating a repository from a template

  • On GitHub, navigate to the main page of the repository.
  • Above the file list, click Use this template.
  • Use the Owner drop-down menu, and select the account you want to own the repository.
  • Type a name for your repository, and an optional description.
  • Choose a repository visibility.

๐Ÿ“š How to clone and use

To clone and run this application, we will need NodeJS + Yarn (or NPM) installed on computer.

After this clone the repository, from our command line:

# Clone this repository
$ git clone https://github.com/LucasReinaldo/react-typescript-eslint-prettier-boilerplate.git

# Go into the repository
$ cd react-typescript-eslint-prettier-boilerplate

# Install dependencies
$ yarn install

# Run the app
$ yarn start

๐Ÿง  Need an upgrade?

Check it out: Yarn Upgrade.

Upgrades packages to their latest version based on the specified range.

$ yarn upgrade

๐Ÿ“– License

This project is under MIT license LICENSE to know more.

react-typescript-eslint-prettier-boilerplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.