This repo is a basic pre-built React app with Typescript configured with eslint, Prettier and best pratices of airbnb.
This project was created following the instructions of this Blog.
This other Blog was helpful.
- React: Front end library.
- Typescript: Programming language.
- ESlint: Linter.
- Prettier: Formater.
- Airbnb Rules: Plugin.
- Yarn: Node package manager.
Those of us who have been working with React for a long time know that Typescript is a better option.
To ensure that the code written is of high quality, ESlint is installed to highlight style errors in the code of the .css, .ts and .tsx files mainly. Prettier for formatting styles and airbnb plugin which is one of the most popular rules plugin in the industry these days.
The rules that I have set, was given by my own criteria or by my preference, but feel free to modify them to put the ones that best suit your projects.
I recommend this documentation about Typescript and ESlint rules.
Like the ESLint rules, these also can also be modified to your preference. See for options in here.
- You can download the files or fork the repo to start a project with this initial setup.
- If you clone the repository, you will not be able to push to this repository.
- By the moment I don't accept PR's to change the basecode.
I hope you find it useful.