Add prettier support

+ CI to check formatting, and fix the couple of instances that
were not in prettier format (case in HTML clour codes).
This commit is contained in:
David Baker
2022-05-03 14:24:04 +01:00
parent f5c50230a9
commit bad8f36bf5
5 changed files with 30 additions and 1 deletions

18
.github/workflows/prettier.yaml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Prettier
on:
pull_request: {}
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Yarn cache
uses: actions/setup-node@v3
with:
cache: 'yarn'
- name: Install dependencies
run: "yarn install"
- name: Check code style
run: "yarn run prettier:check"