Based off the AirBnB javascript style guide: A mostly reasonable approach to JavaScript
-
Read through the Guides and familiarise yourself with the content there.
-
Perform the Setups steps on your project
Install the relevant packages listed below and copy the .eslintrc.json
, .editorconfig
and .prettierrc
files to your project root.
If you have a mono-repo setup you will need to copy these files to the package roots as well.
CRA comes with eslint and some relevant packages already installed
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-airbnb eslint-config-prettier eslint-config-react eslint-plugin-prettier
yarn add -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-airbnb eslint-config-prettier eslint-plugin-prettier
Remove the references to React in the .eslintrc.json
file
Please send feedback via slack!