flutter_compositions_lints 0.1.1 copy "flutter_compositions_lints: ^0.1.1" to clipboard
flutter_compositions_lints: ^0.1.1 copied to clipboard

Custom lint rules for Flutter Compositions to ensure reactive props usage and best practices.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.1.1 - 2025-11-06 #

  • REFACTOR: remove type safety lint rule and related tests.
  • FIX: configure dart test to exclude fixture files from test runs.
  • FEAT: init project.

0.1.0 - 2025-10-27 #

Added #

  • Initial release of Flutter Compositions Lints
  • Custom lint rules for enforcing Flutter Compositions best practices:
    • flutter_compositions_ensure_reactive_props - Ensures props are accessed via widget() for reactivity
    • flutter_compositions_no_async_setup - Prevents async setup methods
    • flutter_compositions_controller_lifecycle - Ensures proper controller disposal with use* helpers
    • flutter_compositions_no_mutable_fields - Enforces immutable widget fields
    • flutter_compositions_provide_inject_type_match - Warns against common type conflicts in DI
    • flutter_compositions_no_conditional_composition - Prevents conditional composition API calls
  • Comprehensive test coverage using testAnalyzeAndRun()
  • Fixture files for each lint rule
  • Integration tests
  • Documentation for all rules

Documentation #

  • Complete rules documentation in RULES.md
  • Testing guide in test/README.md
  • Example code for good and bad practices

Development #

  • Automated testing with custom_lint_builder
  • All tests passing (18/18)
  • GitHub Actions CI integration
0
likes
140
points
125
downloads

Publisher

verified publisheryokikiyo.com

Weekly Downloads

Custom lint rules for Flutter Compositions to ensure reactive props usage and best practices.

Repository (GitHub)
View/report issues
Contributing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

analyzer, custom_lint_builder

More

Packages that depend on flutter_compositions_lints