Skip to content

Webpack boilerplate for React app with TypeScript & ESLint out the box

Notifications You must be signed in to change notification settings

Baga9898/react-webpack-typescript-eslint-boilerplate

Repository files navigation

React Webpack TypeScript ESLint Boilerplate

Webpack 5 ready template for React, TypeScript & ESLint.

Features

  • Using React right away
  • Project linting according to the given rules
  • Hot reload during development
  • Strong typing
  • SASS/SCSS support out of the box
  • File minification
  • XML CSV support

Installation

Clone this repository and run the install script.

npm i

Scripts

Development server

npm start

You can find the development server at localhost:3000.

Development build

npm run dev

Production build

npm run build

Linting

npm run lint

When executing this script, ESLint checks all application files (except for exceptions) according to the rules described in .eslintrc and displays a report on non-compliance with the rules in the terminal.

If you don't need any rules - just delete them or if something is missing - add them.
=)=)

Linting fix

npm run lint:fix

When executing this script, ESLint checks if it can fix the found rule inconsistencies in .eslintrc and fixes them.

It does not fix everything, for example, the console.log will not be removed because ESLint does not know if you need it.

Plugins


Do good.
=)=)