talira

flutter_lints

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.

  1. extra_pedantic Stricter Dart analyzer lint settings
  2. Lint Hard Every non-clashing Dart lint plus strict type checks, as a drop-in lints package
  3. lints (Dart) The Dart team's official core and recommended lint sets
  4. pedantic_mono Stricter recommended lint rules for Flutter and Dart projects
  5. Very Good Analysis Strict lint rules for Dart and Flutter from Very Good Ventures
  6. lint (Dart) Stricter, hand-picked lint rules for Dart and Flutter projects

Compare flutter_lints with the top 3