Skip to content

A boilerplate for typescript react project using create-react-app

Notifications You must be signed in to change notification settings

tiennguyendang/create-react-app-typescript

Repository files navigation

Guideline

Install recommend extensions

  1. Linting
  1. Formatting

How to fix errors

Linting error

If that error cannot be fixed automatically with eslint package, please check ESLint rules to fix this manually.

Commit message error

If you have output similar with below

⧗   input: example
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings
ⓘ   Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint

This error causes by CommitLint. See below rules to fix this.

Commit message structure

type(scope?): subject

Scope value

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to our CI configuration files and scripts (example scopes: Gitlab CI, Circle, BrowserStack, SauceLabs)
  • chore: add something without touching production code (Eg: update npm dependencies)
  • docs: Documentation only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that neither fixes a bug nor adds a feature
  • revert: Reverts a previous commit
  • style: Changes that do not affect the meaning of the code (Eg: adding white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

Example

git commit -m "Update login screen" # Bad commit message ⚠️
git commit -m "feat: Update login screen" # Violated commit message ⚠️ (subject must not be sentence-case, start-case, pascal-case, upper-case)
git commit -m "feat: update login screen" # Good commit message ✅

About

A boilerplate for typescript react project using create-react-app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published