talira

lint (Dart)

Stricter, hand-picked lint rules for Dart and Flutter projects

open sourceApache-2.0free

lint (the pub.dev package lint) is a community-driven set of analyzer lint rules for Dart and Flutter projects that follows the Effective Dart style guide. It's a stricter replacement for package:lints and the discontinued pedantic, and comes in three sets: strict for production app code, casual for prototypes and samples, and package for packages with a public API. You add it as a dev dependency and include its rule set from analysis_options.yaml.

Problems it solves

  • make the Dart analyzer stricter for my Flutter app
  • pick a set of lint rules for a Dart package
  • replace the discontinued pedantic lint rules

Features

  • strict, casual and package rule sets
  • follows the Effective Dart style guide
  • drop-in replacement for package:lints and pedantic
  • configured from analysis_options.yaml

Alternatives

The same job

These do what lint (Dart) does.

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

Compare lint (Dart) with the top 3