Skip to content

EdMSL/react-typescript-boilerplate

Repository files navigation

React boilerplate with TypeScript · GitHub license

This boilerplate includes several starter component examples and a request to GitHub API.

The following packages are used here:

Decription

Simple template for React app with Redux as state container and TypeScript, a typed superset of JavaScript. Redux Saga used for asynchronous things. Reduxsause for more simple reducers creating. For HTTP requests used Axios. Webpack as bundler.

As CSS pre-processor used SASS with CSS-Modules. For simple job with classes used classnames package. PostCSS with autoprefixer for add vendor prefixes, css-mqpacker for pack same CSS media query rules into one. Imagemin for images compress and convert to Webp. Prettier used for CSS code formatting (but not used for js, ts, etc.).

For linting used Stylelint for CSS and Eslint for js, ts, jsx and tsx.

Husky and lint-staged used for precommit linting and fix style errors.

Testing

npm test

will start typescript compiler for check errors and linting with autofix style errors in all files from src folder.

You can also

npm run tslint

or

npm run eslint

or

npm run stylelint

for separate running typescript compiler, eslint and stylelint with fixing errors.

License

This boilerplate is MIT licensed.

About

React boilerplate with TypeScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published