https://github.com/kovalenkovpu/react-ts-template
Template for ReactJS-TypeScript-Webpack project initial configuration. Includes Jest setup, SCSS Modules configuration.
https://github.com/kovalenkovpu/react-ts-template
css-modules eslint jest prettier reactjs scss-modules stylelint ts typescript webpack
Last synced: 7 months ago
JSON representation
Template for ReactJS-TypeScript-Webpack project initial configuration. Includes Jest setup, SCSS Modules configuration.
- Host: GitHub
- URL: https://github.com/kovalenkovpu/react-ts-template
- Owner: kovalenkovpu
- Created: 2021-08-31T09:01:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T09:28:15.000Z (over 2 years ago)
- Last Synced: 2025-01-19T18:44:08.080Z (9 months ago)
- Topics: css-modules, eslint, jest, prettier, reactjs, scss-modules, stylelint, ts, typescript, webpack
- Language: TypeScript
- Homepage:
- Size: 1.7 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template repository for manual setup of ReactJS/TypeScript/SCSS Modules project
## Dependencies
```javascript
npm i react react-dom react-router-dom -S
```## Dev dependencies
### Cross-env for arch-agnostic scripts run
```javascript
npm i cross-env -D
```### Config
Dev dependencies which are required for the webpack setup to run:
```javascript
npm i typescript webpack webpack-cli webpack-dev-server webpack-merge ts-loader ts-node ts-jest html-webpack-plugin clean-webpack-plugin copy-webpack-plugin mini-css-extract-plugin sass sass-loader css-loader style-loader -D
```### Config types
Webpack setup dependencies types:
```javascript
npm i @types/webpack -D
```### Testing dependencies
Jest, jest cli handy tests filtering, mocking imports:
```javascript
npm i jest jest-watch-typeahead identity-obj-proxy jest-environment-jsdom -D
```### Core types
```javascript
npm i @types/react @types/react-dom -D
```### Testing types
Additional testing types (RTL, RTL-Jest, Hooks, User event):
```javascript
npm i @types/jest @testing-library/dom @testing-library/jest-dom @testing-library/react @testing-library/user-event -D
```### Linters
Code linting (JS, prettier powered):
```javascript
npm i eslint eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-webpack-plugin eslint-plugin-prettier eslint-config-prettier -D
```Code linting (CSS prettier powered):
```javascript
npm i stylelint stylelint-config-css-modules stylelint-prettier stylelint-webpack-plugin -D
```### Linters types
Types for the code linting (JS, CSS):
```javascript
npm i @typescript-eslint/eslint-plugin @typescript-eslint/parser -D
```### Code checking
```javascript
npm i prettier husky -D
```Husky also requires additional setup for git hooks.