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 format
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ory/prettier-styles@v1