We are using this style guide in Roonyx company for React projects.
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 foreslint.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/parsereslinteslint-config-prettiereslint-plugin-prettiereslint-plugin-reactprettier