A custom lint package for the Ecco state management framework in Flutter.
ecco_lint provides custom lint rules and assists to help developers use the Ecco framework correctly and efficiently:
avoid_dynamic_ecco_notifier
: Warns against using dynamic types for EccoNotifier.missing_ecco_provider
: Ensures EccoBuilder and EccoConsumer are used within an EccoProvider.invalid_ripple_usage
: Checks for correct usage of the ripple method in EccoNotifier.
wrap_with_ecco_builder
: Helps wrap a widget with EccoBuilder.wrap_with_ecco_consumer
: Helps wrap a widget with EccoConsumer.
Run this command in the root of your Flutter project:
flutter pub add -d ecco_lint custom_lint
Then edit your analysis_options.yaml
file and add these lines of code:
analyzer:
plugins:
- custom_lint
Then run:
flutter clean
flutter pub get
dart run custom_lint
This will enable all the lint rules provided by ecco_lint
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.