Back to Bloc

README

packages/bloc_lint/README.md

latest5.4 KB
Original Source
<p align="center"> </p> <p align="center"> <a href="https://pub.dev/packages/bloc_lint"></a> <a href="https://github.com/felangel/bloc/actions"></a> <a href="https://codecov.io/gh/felangel/bloc"></a> <a href="https://github.com/felangel/bloc"></a> <a href="https://pub.dev/packages/bloc_lint"></a> <a href="https://flutter.dev/docs/development/data-and-backend/state-mgmt/options#bloc--rx"></a> <a href="https://github.com/Solido/awesome-flutter#standard"></a> <a href="https://fluttersamples.com"></a> <a href="https://opensource.org/licenses/MIT"></a> <a href="https://discord.gg/bloc"></a> <a href="https://github.com/felangel/bloc"></a> </p>

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]

<table style="background-color: white; border: 1px solid black"> <tbody> <tr> <td align="center" style="border: 1px solid black"> <a href="https://shorebird.dev"></a> </td> <td align="center" style="border: 1px solid black"> <a href="https://getstream.io/chat/flutter/tutorial/?utm_source=Github&utm_medium=Github_Repo_Content_Ad&utm_content=Developer&utm_campaign=Github_Jan2022_FlutterChat&utm_term=bloc"></a> </td> <td align="center" style="border: 1px solid black"> <a href="https://rettelgame.com/"></a> </td> </tr> </tbody> </table>

Quick Start

  1. Install the bloc command-line tools

    sh
    dart pub global activate bloc_tools
    
  2. Install the bloc_lint package

    sh
    dart pub add --dev bloc_lint
    
  3. Add an analysis_options.yaml to the root of your project with the recommended rules

    yaml
    include: package:bloc_lint/recommended.yaml
    
  4. Run the linter

    sh
    bloc lint .
    

For more information, check out the official documentation

All Lint Rules

Dart Versions

  • Dart 3: >= 3.7.0

Maintainers