Skip to content

worqhealth/dart-format-pre-commit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dart Format pre-commit

pre-commit hook for formatting Dart files.

Add the following in your .pre-commit-config.yaml:

- repo: https://github.com/Cretezy/dart-format-pre-commit
  rev: "master"
  hooks:
    - id: dart-format

You can also only include/exclude some files (defaults to only .dart, is a pattern):

- repo: https://github.com/Cretezy/dart-format-pre-commit
  rev: "master"
  hooks:
    - id: dart-format
      files: lib/* # Only format source files
      exclude: lib/src/utils.dart # Exclude utils

Flutter

Also see Flutter Format pre-commit for formatting Flutter code.

About

Format Dart code with pre-commit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%