Skip to content

Commit 1af3979

Browse files
committed
Adds a Prettier workflow
1 parent 8e4088d commit 1af3979

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/prettier.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Prettier
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Prettify code
18+
uses: creyD/prettier_action@v4.6

.prettierrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"tabWidth": 4,
33
"bracketSameLine": true,
4-
"printWidth": 160
4+
"printWidth": 160,
5+
"semi": true,
6+
"singleQuote": false
57
}

0 commit comments

Comments
 (0)