The Prettier configuration used by all ORY projects.
To use the Prettier configuration without modifications, add this line to your package.json file:
"prettier": "ory-prettier-styles",To use the Prettier configuration with modifications, create a file .prettierrc.js with this content:
module.exports={
...require("ory-prettier-styles"),// your custom Prettier settings here}This also defines a GitHub action to use for format checking. Usage similar to:
name: Check formaton:
push:
branches:
- masterpull_request:
branches:
- masterjobs:
format-check:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- uses: ory/prettier-styles@v1