Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

πŸ’…β€A Create React App good starting point template to init a configured app with typescript, sass, eslint, prettier and more

License

Notifications You must be signed in to change notification settings

daltonmenezes/cra-template-good-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

22 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

react logo

cra-template-good-start

A Create React App good starting point template to init a configured app with typescript, sass, eslint, prettier and more πŸ’…

patreon url npm version npm version

Table of Contents

Features

  • βš‘β€typescript
  • βš‘β€eslint
  • βš‘β€prettier
  • βš‘β€editor config
  • βš‘β€sass (Dart Sass package compiled to JS)
  • βš‘β€css reset
  • βš‘β€absolute imports

Usage

To use this template, add --template good-start when creating a new app with create-react-app.

Note: if you are using Windows make sure to add the equality symbol between --template and good-start. example: --template=good-start

npx create-react-app my-app --template good-start

# OR

yarn create react-app my-app --template good-start

Then:

cd my-app

Sneak-peek

Files and folders

.
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .prettierrc
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”‚   └── index.html
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ App.tsx
β”‚   β”œβ”€β”€ components
β”‚   β”‚   └── Hello
β”‚   β”‚       β”œβ”€β”€ index.tsx
β”‚   β”‚       └── styles.module.sass
β”‚   β”œβ”€β”€ index.tsx
β”‚   β”œβ”€β”€ react-app-env.d.ts
β”‚   └── styles
β”‚       β”œβ”€β”€ colors.sass
β”‚       β”œβ”€β”€ global.sass
β”‚       └── reset.sass
β”œβ”€β”€ tsconfig.json
└── yarn.lock

Tsx code style

import Hello from 'components/Hello'

function App() {
  return (
    <section className="containers">
      <Hello />
    </section>
  )
}

export default App

Sass style

@use 'reset' as *
@use 'colors' as *

.containers
  display: flex
  flex-flow: column wrap
  align-items: center
  justify-content: center
  padding: 0 2rem
  background-color: $black

Contributing

Contributions are always welcome.

There's a bunch of ways you can contribute to this project, like by:

  • πŸͺ²β€Reporting a bug
  • πŸ”Œβ€Sending a Pull request (ask first, please)
  • πŸ“„β€Improving this documentation
  • πŸš¨β€Sharing this project and recommending it to your friends
  • πŸ’΅β€Supporting this project on Patreon
  • πŸŒŸβ€Dropping a star on this repository

License

MIT Β© Dalton Menezes