Skip to content

create-react-app with typescript powered by additional features

License

Notifications You must be signed in to change notification settings

n1ghtdev/my-react-starter

Repository files navigation

About

create-react-app typescript template powered by husky and lint-staged. Every time you commit new changes husky runs lint-staged which configured to run ESLint and Prettier. This way you don't have to worry about code-styling.

Extend eslint

If you need other eslint configs or plugins, you can easily add those with npm or yarn and edit .eslintrc.json file.
Read more about CRA: Extending the ESLint config.

Absolute imports

Edit tsconfig.json paths property to add more absolute import paths:

  "paths": {
    "@components/*": ["src/components/*"],
    "@hooks/*": ["src/hooks/*"]
  }

TravisCI

See example.travis.yml for some examples.

Future plans

  • CSS styling guide (styled, emotion, css modules)

Available Scripts

In the project directory, you can run:

yarn start or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

yarn test or npm test

Launches the test runner in the interactive watch mode.

yarn build or npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

About

create-react-app with typescript powered by additional features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published