Skip to content

Commit 35b15de

Browse files
[flutter_lints] Replace "flutter pub add --dev" with "dev:" (flutter#5260)
This pull request is to replace `�dev` with `dev:`, as this is the newer way and is used in the Flutter documentation. https://dart.dev/tools/pub/cmd/pub-add#dev-dependency https://docs.flutter.dev/data-and-backend/serialization/json#setting-up-json_serializable-in-a-project
1 parent fe4c86b commit 35b15de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/flutter_lints/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.1
2+
3+
* Replaces `flutter pub add --dev` with `dev:` in README.md.
4+
15
## 3.0.0
26

37
* Updated `package:lints` dependency to version 3.0.0, with the following changes:

packages/flutter_lints/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package. Entities created before that version can use these lints by following
1919
these instructions:
2020

2121
1. Depend on this package as a **dev_dependency** by running
22-
`flutter pub add --dev flutter_lints`.
22+
`flutter pub add dev:flutter_lints`.
2323
2. Create an `analysis_options.yaml` file at the root of the package (alongside
2424
the `pubspec.yaml` file) and `include: package:flutter_lints/flutter.yaml`
2525
from it.

packages/flutter_lints/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_lints
22
description: Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.
33
repository: https://github.com/flutter/packages/tree/main/packages/flutter_lints
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_lints%22
5-
version: 3.0.0
5+
version: 3.0.1
66

77
environment:
88
sdk: ^3.0.0

0 commit comments

Comments
 (0)