Skip to content

Commit 51377c1

Browse files
authored
Merge pull request #278 from eed3si9n/wip/format
Use prettier to format JavaScript file
2 parents e714736 + c340535 commit 51377c1

File tree

5 files changed

+1296
-1293
lines changed

5 files changed

+1296
-1293
lines changed

.git-blame-ignore-revs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
# Move queries to ./queries/scala sub-directory
1+
# Move queries to ./queries/scala sub-directory
22
889eb65aea8e0f9ce1694ab9ee528df1fa5f75d1
3+
4+
# Formatting using Prettier
5+
0a8ca4c836d7e9f0fd6a0668088c0d82874abc85

.github/workflows/sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ jobs:
2121
npm install
2222
npm run build
2323
24+
- name: Format Javascipt
25+
run: |
26+
npm install
27+
npm run format
28+
2429
- name: Check for changes
2530
uses: tj-actions/verify-changed-files@v13
2631
id: verify-changed-files
2732
with:
2833
files: |
34+
grammar.js
2935
src/grammar.json
3036
src/node-types.json
3137
src/parser.c

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"arrowParens": "avoid"
3+
}

0 commit comments

Comments
 (0)