We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lint_staged
1 parent 2699252 commit dfe70bfCopy full SHA for dfe70bf
.husky/pre-commit
@@ -1,6 +1,4 @@
1
#!/usr/bin/env sh
2
. "$(dirname -- "$0")/_/husky.sh"
3
4
-melos analyze
5
-melos format-check
6
-melos test --no-select
+DEBUG=true dart run lint_staged
.husky/pre-push
@@ -0,0 +1,4 @@
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
+
+melos test --no-select
pubspec.yaml
@@ -11,7 +11,11 @@ dev_dependencies:
11
melos: ^3.0.0
12
path: ^1.8.0
13
yaml: ^3.1.0
14
+ lint_staged: ^0.2.0
15
16
# This allows us to use flutterw on itself during development.
17
executables:
- flutterw: flutterw_local
18
+ flutterw: flutterw_local
19
20
+lint_staged:
21
+ '**.dart': dart fix --apply && dart format --fix
0 commit comments