bloc_lint 0.1.0 copy "bloc_lint: ^0.1.0" to clipboard
bloc_lint: ^0.1.0 copied to clipboard

Set of lint rules for the Flutter BLoC library.

Bloc Lint #

Custom linter rules for Flutter projects using the bloc library. This package is based on dart_custom_lint package.

Usage #

Add the following to your pubspec.yaml file:

dev_dependencies:
  custom_lint: ^0.7.0
  bloc_lint: ^0.1.0

Add the following to your analysis_options.yaml file:

analyzer:
  plugins:
    - custom_lint

That's it! After running pub get (and possibly restarting their IDE), users should now see our custom lints in their Dart files. You can also run dart pub custom_lint to run the linter in your CLI.

Tests #

The example folder contains a dart project to unit test the rules. (see custom_lint readme for more info)

Implemented Rules #

4
likes
60
points
305
downloads

Publisher

verified publisherbloclibrary.dev

Weekly Downloads

Set of lint rules for the Flutter BLoC library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on bloc_lint