orca-so / typescript-sdk

The Orca SDK contains a set of simple to use APIs to allow developers to integrate with the Orca platform.
155 stars 49 forks source link

Set up `eslint` and `prettier` #2

Closed oritheorca closed 3 years ago

oritheorca commented 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.

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.

oritheorca commented 3 years ago

cc @rawfalafel @odcheung Can you verify if this works for you?