Every non-clashing Dart lint plus strict type checks, as a drop-in lints package
open sourceMITfree
Lint Hard (the lint_hard package) is a Dart and Flutter lint set that turns on every Dart lint that doesn't clash with another, plus the analyzer's strict-casts, strict-inference and strict-raw-types checks, so more runtime errors become compile-time errors. It's a drop-in replacement for pedantic, lints and flutter_lints, and adds its own analyzer plugin lints, such as checking that thrown exceptions are documented and that fields come before constructors.
Problems it solves
- turn on the strictest sensible set of lints for my Dart or Flutter project
- catch more type errors at compile time in Dart instead of at runtime
- make sure the exceptions my Dart functions throw are documented
Features
- every non-clashing Dart lint in package:lint_hard/all.yaml
- strict-casts, strict-inference and strict-raw-types turned on
- analyzer plugin lints for documented thrown exceptions and field-then-constructor order
- drop-in replacement for pedantic, lints and flutter_lints
Alternatives
The same job
These do what Lint Hard does.
- flutter_lints Recommended lints for Flutter apps, packages and plugins
- lints (Dart) The Dart team's official core and recommended lint sets
- extra_pedantic Stricter Dart analyzer lint settings
- lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects
- pedantic_mono Stricter recommended lint rules for Flutter and Dart projects