Recommended lints for Flutter apps, packages and plugins
open sourceBSD-3-Clausefree
flutter_lints is the Flutter team's recommended set of lint rules for Flutter apps, packages and plugins, built on top of Dart's recommended set from package:lints. The Dart analyzer reports the issues, in Dart-enabled IDEs or with flutter analyze. Projects made with flutter create since Flutter 2.3.0 are set up to use it; older ones add it as a dev dependency and include package:flutter_lints/flutter.yaml from analysis_options.yaml, then turn rules on or off there.
Problems it solves
- enforce good coding practices across my Flutter app with the analyzer
- set up the recommended lint rules in an older Flutter project
- customise which lint rules flutter analyze reports
Features
- recommended lint set for Flutter apps, packages and plugins
- built on Dart's recommended lints from package:lints
- enabled by default in projects from flutter create since Flutter 2.3.0
- rules adjustable in analysis_options.yaml
Alternatives
The same job
These do what flutter_lints 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
- lints (Dart) The Dart team's official core and recommended lint sets
- pedantic_mono Stricter recommended lint rules for Flutter and Dart projects
- Very Good Analysis Strict lint rules for Dart and Flutter from Very Good Ventures
- lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects
