Skip to content

Commit 202fb32

Browse files
authored
[flutter_lints] version 2.0 (#1165)
1 parent 68b7eb9 commit 202fb32

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

.cirrus.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ task:
9191
- echo "$CIRRUS_CHANGE_MESSAGE" > "$CHANGE_DESC"
9292
- ./script/tool_runner.sh version-check --check-for-missing-changes --change-description-file="$CHANGE_DESC"
9393
- fi
94-
publishable_script: ./script/tool_runner.sh publish-check
94+
publishable_script: ./script/tool_runner.sh publish-check --allow-pre-release
9595
depends_on:
9696
- format+analyze
9797
- name: test

packages/flutter_lints/CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 2.0.0
2+
3+
* Added the following lints:
4+
* `sort_child_properties_last`
5+
* `use_build_context_synchronously`
6+
* Updated `package:lints` dependency to version 2.0.0, which added the following lints:
7+
* `depend_on_referenced_packages`
8+
* `library_private_types_in_public_api`
9+
* `no_leading_underscores_for_library_prefixes`
10+
* `no_leading_underscores_for_local_identifiers`
11+
* `null_check_on_nullable_type_parameter`
12+
* `prefer_interpolation_to_compose_strings`
13+
* `unnecessary_constructor_name`
14+
* `unnecessary_late`
15+
* `unnecessary_null_aware_assignments`
16+
* `unnecessary_nullable_for_final_variable_declarations`
17+
* Bumped the minimum required Dart SDK version to 2.17
18+
119
## 1.0.4
220

321
* Small update to readme

packages/flutter_lints/lib/flutter.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ linter:
1313
- prefer_const_declarations
1414
- prefer_const_literals_to_create_immutables
1515
- sized_box_for_whitespace
16+
- sort_child_properties_last
17+
- use_build_context_synchronously
1618
- use_full_hex_values_for_flutter_colors
1719
- use_key_in_widget_constructors

packages/flutter_lints/pubspec.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ 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: 1.0.4
5+
version: 2.0.0
66

77
environment:
8-
sdk: '>=2.12.0 <3.0.0'
8+
sdk: '>=2.17.0-0 <3.0.0'
99

1010
dependencies:
11-
lints: ^1.0.0
11+
lints: ^2.0.0
1212
# Code is not allowed in this package. Do not add any dependencies or dev_dependencies.

0 commit comments

Comments
 (0)