0.1.0 • Published 3 years ago

@jpreagan/cra-template-typescript v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@jpreagan/cra-template-typescript

✨ A custom TypeScript template for Create React App. You can use it to jump start your very own fabulous new app.

šŸ”„ This template features:

  • TypeScript
  • ESLint configuration conforming to the Airbnb style guide
  • prettier formats your code
  • husky runs checks and linting scripts on your git commits
  • lint-staged runs linting and formatting rules on your staged files

Getting started

  1. To use this template, add --template @jpreagan/typescript when creating a new app.

    For example:

    npx create-react-app my-app --template @jpreagan/typescript
    
    # or
    
    yarn create react-app my-app --template @jpreagan/typescript
  2. Change directory to your new app:

    cd my-app
  3. Prepare the git hooks:

    npm run prepare
    
    # or
    
    yarn prepare
  4. You're all set!

Further reading

For more information, please refer to: