The Dart team's official core and recommended lint sets
open sourceBSD-3-Clausefree
lints is the Dart team's official set of linter rules for Dart code. It holds two sets: core lints, which catch issues likely to cause problems when running or using Dart code, and recommended lints, which add further checks and enforce one idiomatic style. A project includes one of them in its analysis_options.yaml and the Dart analyzer reports the rules. flutter_lints builds on the recommended set for Flutter apps.
Problems it solves
- set up the standard lint rules for a new Dart project
- make our Dart code follow the style the Dart team recommends
- catch likely bugs in Dart code with static analysis
Features
- core lint set for critical issues
- recommended lint set for idiomatic style
- used by the Dart analyzer through analysis_options.yaml
Alternatives
The same job
These do what lints (Dart) does.
- extra_pedantic Stricter Dart analyzer lint settings
- Lint Hard Every non-clashing Dart lint plus strict type checks, as a drop-in lints package
- flutter_lints Recommended lints for Flutter apps, packages and plugins
- lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects
- golangci-lint Fast linters runner for Go
- Very Good Analysis Strict lint rules for Dart and Flutter from Very Good Ventures
