Skip to content

Commit d333069

Browse files
committed
Add prettier code formatter
1 parent 0aa26b3 commit d333069

File tree

4 files changed

+124
-223
lines changed

4 files changed

+124
-223
lines changed

.github/workflows/action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ jobs:
2323
- name: Install npm packages
2424
run: npm install
2525

26+
- name: Run formatter
27+
run: npm run check_format
28+
2629
- name: Run tests
2730
run: npm test

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,17 @@ npm install
3535
npm test
3636
```
3737

38-
5. (Optional) Update the tests (useful when contributing):
38+
5. Run the code formatter:
39+
```sh
40+
npm run format
41+
```
42+
43+
6. (Optional) Update the tests (useful when contributing):
3944
```sh
4045
npm run update_test
4146
```
4247

43-
6. (Optional) Run the web playground (requires Docker):
48+
7. (Optional) Run the web playground (requires Docker):
4449
```sh
4550
npm run playground
4651
```

0 commit comments

Comments
 (0)