Skip to content

Commit

Permalink
chore: use lint_staged
Browse files Browse the repository at this point in the history
  • Loading branch information
hyiso committed Mar 28, 2023
1 parent 2699252 commit dfe70bf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

melos analyze
melos format-check
melos test --no-select
DEBUG=true dart run lint_staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

melos test --no-select
6 changes: 5 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ dev_dependencies:
melos: ^3.0.0
path: ^1.8.0
yaml: ^3.1.0
lint_staged: ^0.2.0

# This allows us to use flutterw on itself during development.
executables:
flutterw: flutterw_local
flutterw: flutterw_local

lint_staged:
'**.dart': dart fix --apply && dart format --fix

0 comments on commit dfe70bf

Please sign in to comment.