Closed oritheorca closed 3 years ago
This PR sets up the eslint for this repo to extend the react-app and prettier eslint configs. .prettierrc is deliberately left empty, so the linting/formatting behavior should exactly match the web repo.
react-app
prettier
.prettierrc
With this configuration, you can autoformat your code using the Prettier VS Code extension.
Alternatively, you can run yarn run prettier-format to format all the code in the repo.
yarn run prettier-format
The next follow-up step would be to add auto-formatting using a husky pre-commit hook, like in the web repo.
cc @rawfalafel @odcheung Can you verify if this works for you?
This PR sets up the eslint for this repo to extend the
react-app
andprettier
eslint configs..prettierrc
is deliberately left empty, so the linting/formatting behavior should exactly match the web repo.With this configuration, you can autoformat your code using the Prettier VS Code extension.
Alternatively, you can run
yarn run prettier-format
to format all the code in the repo.The next follow-up step would be to add auto-formatting using a husky pre-commit hook, like in the web repo.