Last active
November 16, 2020 02:08
-
-
Save crizant/04d4fa9a592a894c2b184068aa6c4bde to your computer and use it in GitHub Desktop.
Lefthook config file for flutter projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre-commit: | |
piped: true | |
commands: | |
linter: | |
run: flutter analyze lib | |
sort-imports: | |
glob: "*.dart" | |
run: flutter pub run import_sorter:main {staged_files} && git add {staged_files} | |
pretty: | |
glob: "*.dart" | |
run: flutter format {staged_files} && git add {staged_files} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment