Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 698 Bytes

File metadata and controls

22 lines (16 loc) · 698 Bytes

React Style Guide

Overview

We are using this style guide in Roonyx company for React projects.

Pre-requisites

All projects must include following files:

  • style-guide.md - contains project structure description, code style rules and components structure guidelines
  • .eslintrc.json - contains basic set of rules for eslint
  • .prettierrc - prettier config

In order to eslint and prettier work properly it's necessary to install following npm packages:

  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint
  • eslint-config-prettier
  • eslint-plugin-prettier
  • eslint-plugin-react
  • prettier