passsy / dart-lint

An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
Apache License 2.0
277 stars 82 forks source link

Update package v in readme.md #31

Closed maxzod closed 3 years ago

passsy commented 3 years ago

It's not that easy. The correct lint version is picked automatically based on the dart version a project uses.

Dart 2.8.0 -> lint: 1.2.0
Dart 2.9.0 -> lint: 1.3.0 
Dart 2.10.0 -> lint: 1.4.0
Dart 2.12.0-0 -> lint: 1.5.1
Dart 2.12.0 -> lint: 1.5.2

Changing it to 1.5.2 will cause an error for all not yet updated to Dart 2.12.

That's why leaving it at lint: ^1.0.0 is fine, pub picks the latest and greatest that's compatible.