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:
18
.github/workflows/prettier.yaml
vendored
Normal file
18
.github/workflows/prettier.yaml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user