Better Lints

Better Lints Build Pub Dev Documentation

A curated set of lint rules for Dart and Flutter projects to ensure consistency, maintainability, and best practices.

✨ Features

  • Enforces a consistent coding style.
  • Helps prevent common errors and anti-patterns.
  • Based on Dart's official lints and flutter_lints, with additional enhancements.
  • Easy integration into new and existing projects.

📦 Installation & Usage

Add better_lints as a dev dependency in your pubspec.yaml:

flutter pub add dev:better_lints

Then, add a ruleset to your analysis_options.yaml. This package contains a Dart ruleset & a Flutter ruleset.

To use the Dart specifc ruleset:

include: package:better_lints/dart.yaml

To use the Flutter ruleset:

include: package:better_lints/flutter.yaml

Libraries