Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
/ bloc_lint Public archive

Set of lint rules for the Flutter BLoC library

License

Notifications You must be signed in to change notification settings

vmichalak/bloc_lint

Repository files navigation

Bloc Lint

⚠️ IMPORTANT NOTICE:

This package have moved to bloc monorepo and will be maintained there.

Please refer to the Bloc monorepo for the latest updates.


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

About

Set of lint rules for the Flutter BLoC library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages