https://github.com/justb/fsgen
Add eslint and code auto-format at precommit hooks for your react app
https://github.com/justb/fsgen
cli commitizen eslint husky lint-staged linter prettier typescript
Last synced: 3 months ago
JSON representation
Add eslint and code auto-format at precommit hooks for your react app
- Host: GitHub
- URL: https://github.com/justb/fsgen
- Owner: justb
- Created: 2019-02-02T07:54:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T04:14:14.000Z (over 4 years ago)
- Last Synced: 2025-09-21T20:47:08.773Z (9 months ago)
- Topics: cli, commitizen, eslint, husky, lint-staged, linter, prettier, typescript
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
Add eslint prettier and code auto-format at precommit hooks for your app(include typescript), react and scss default.
# Installtion
```
yarn global add fsgen
npm i fsgen -g
```
# Usage
```
// Not in the project folder
fsgen my-app
// In the project folder
fsgen
// Use yarn instead of npm
fsgen -y
// Add config for typescript
fsgen -t
// Add config for cra
fsgen -c
// Show help
fsgen -h
// Show version
fsgen -V
```
Then you folder will add some files, such as `.eslint.js`, `.eslintignore`, `.editorconfig`, `.stylelintrc.js`, and `package.json` will be modified.
We will add some node_modules, such as lint-staged husky commitizen prettier eslint-config-prettier eslint-plugin-prettier.
### vscode-eslint configuration
https://github.com/microsoft/vscode-eslint