Official lint rules for development when using the bloc state management library.
Learn more at bloclibrary.dev!
This package is built to work with:
Sponsors
Our top sponsors are shown below! [Become a Sponsor]
![]() |
![]() |
![]() |
Quick Start
-
Install the bloc command-line tools
dart pub global activate bloc_tools
-
Install the bloc_lint package
dart pub add --dev bloc_lint:^0.2.0
-
Add an
analysis_options.yaml
to the root of your project with the recommended rulesinclude: package:bloc_lint/recommended.yaml
-
Run the linter
bloc lint .
For more information, check out the official documentation
All Lint Rules
Dart Versions
- Dart 3: >= 3.7.0