lint
2.14.0, released 3 months ago by pascalwelsch.com
A collection of opinionated lint rules for Dart and Flutter projects.
What it does
Provides a set of strict, community‑driven lint rules that enforce the Effective Dart style guide. It can replace the older pedantic or lints packages with a more comprehensive rule set.
AI-written summary of version 2.14.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Enforce coding style in production apps
- Run CI checks for code quality
- Standardize lint rules across teams
Skip it when
- Very small scripts or prototypes that need minimal linting
- Projects that already use a different lint configuration and cannot merge rules
Strengths
- Strict yet balanced rule set
- Community‑driven and regularly updated
- Supports multiple rule sets (strict, casual, package)
Weaknesses
- May be too strict for some teams
- Requires Dart 3.13+ for latest version
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dev_dependencies: lint: ^2.0.0 and include package:lint/strict.yaml in analysis_options.yaml
dev_dependencies:\n lint: ^2.0.0\n\n# analysis_options.yaml\ninclude: package:lint/strict.yamlAlternatives
Packages that do the same job and could replace lint.
- lints
Official Dart linter rules with a more permissive default set
86Compare - flutter_lints
Flutter‑specific lint rules with a stricter default set
83Compare
Works with
Packages commonly used together with lint: ones it builds on, ones built on it, and its own family.