Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prettier to format JavaScript file #278

Merged
merged 3 commits into from
Jun 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Move queries to ./queries/scala sub-directory
# Move queries to ./queries/scala sub-directory
889eb65aea8e0f9ce1694ab9ee528df1fa5f75d1

# Formatting using Prettier
0a8ca4c836d7e9f0fd6a0668088c0d82874abc85
6 changes: 6 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ jobs:
npm install
npm run build

- name: Format Javascipt
run: |
npm install
npm run format

- name: Check for changes
uses: tj-actions/verify-changed-files@v13
id: verify-changed-files
with:
files: |
grammar.js
src/grammar.json
src/node-types.json
src/parser.c
Expand Down
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"arrowParens": "avoid"
}
Loading