Commit 3418286
chore: add dart format to pre-commit check and CI (#296)
* chore: add dart format to pre-commit check and CI
Adds a `format` mise task (`dart format .`) and includes it in the
`check` pre-commit gate. CI gains a `dart format --set-exit-if-changed .`
step before `flutter analyze` so unformatted code is a hard failure on
PRs rather than a silent auto-fix.
The local task reformats in place; CI uses `--set-exit-if-changed` to
fail the build without modifying files.
* style: apply dart format to entire codebase
Bulk-format all Dart files with `dart format .`. No logic changes —
line wrapping, trailing whitespace, and indentation only.
* docs: document dart format --no-deps usage in AGENTS.md
* chore: add dart:format, prettier:format and mise:format tasks
Splits the single `format` task into three named sub-tasks:
- `dart:format` — dart format . (use --no-deps for speed after Dart changes)
- `prettier:format` — Prettier for JS/TS/MJS files
- `mise:format` — mise fmt for mise.toml
The top-level `format` task now depends on all three. CI check
formatting step expanded to cover all three. Prettier added to root
package.json; .prettierignore excludes build/, android/, ios/.
* style: apply prettier to JS/TS/MJS files
* fix: correct CI format check and dart:format task ordering
- Add --output=none to dart format CI check so it doesn't modify
files (--set-exit-if-changed alone still writes)
- Remove mise fmt --check from CI: mise is not installed in the CI
environment (setup-flutter-app uses subosito/flutter-action directly)
- Make dart:format depend on generate so mock files are formatted
after codegen, not before
* style: format files introduced by PR #295 bug fixes
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent e3fdb5c commit 3418286
89 files changed
Lines changed: 3467 additions & 2289 deletions
File tree
- .github/workflows
- cloudflare-worker
- test
- functions
- [festivalId]/drink/[category]
- _lib
- test
- lib
- domain/services
- models
- providers
- screens
- services
- utils
- widgets
- scripts
- test-e2e
- test
- domain
- repositories
- services
- utils
- widgets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments