Skip to content

Commit

Permalink
Add Prettier to "format" check (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Aug 7, 2023
1 parent 419c75c commit 88799d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ jobs:
with:
sdk: beta

- name: Format
- name: Install Prettier
run: npm install --global [email protected]

- name: Format (Dart)
run: dart format --set-exit-if-changed $(find lib -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" \) )

- name: Format (Prettier)
run: prettier . --check

test:
# We need to use macOS because of the golden tests, see
# https://github.com/flutter/flutter/issues/36667#issuecomment-521335243.
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
macos/Pods/**
macos/Runner/**
build/**

0 comments on commit 88799d4

Please sign in to comment.