A Create React App good starting point template to init a configured app with typescript, sass, eslint, prettier and more π
- β‘βtypescript
- β‘βeslint
- β‘βprettier
- β‘βeditor config
- β‘βsass (Dart Sass package compiled to JS)
- β‘βcss reset
- β‘βabsolute imports
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
.
βββ .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
import Hello from 'components/Hello'
function App() {
return (
<section className="containers">
<Hello />
</section>
)
}
export default App
@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
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