[flutter_lints] version 2.0 (#1165)
diff --git a/.cirrus.yml b/.cirrus.yml
index 834aacd..bce57a1 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -91,7 +91,7 @@
- echo "$CIRRUS_CHANGE_MESSAGE" > "$CHANGE_DESC"
- ./script/tool_runner.sh version-check --check-for-missing-changes --change-description-file="$CHANGE_DESC"
- fi
- publishable_script: ./script/tool_runner.sh publish-check
+ publishable_script: ./script/tool_runner.sh publish-check --allow-pre-release
depends_on:
- format+analyze
- name: test
diff --git a/packages/flutter_lints/CHANGELOG.md b/packages/flutter_lints/CHANGELOG.md
index 2d31e20..d0613c5 100644
--- a/packages/flutter_lints/CHANGELOG.md
+++ b/packages/flutter_lints/CHANGELOG.md
@@ -1,3 +1,21 @@
+## 2.0.0
+
+* Added the following lints:
+ * `sort_child_properties_last`
+ * `use_build_context_synchronously`
+* Updated `package:lints` dependency to version 2.0.0, which added the following lints:
+ * `depend_on_referenced_packages`
+ * `library_private_types_in_public_api`
+ * `no_leading_underscores_for_library_prefixes`
+ * `no_leading_underscores_for_local_identifiers`
+ * `null_check_on_nullable_type_parameter`
+ * `prefer_interpolation_to_compose_strings`
+ * `unnecessary_constructor_name`
+ * `unnecessary_late`
+ * `unnecessary_null_aware_assignments`
+ * `unnecessary_nullable_for_final_variable_declarations`
+* Bumped the minimum required Dart SDK version to 2.17
+
## 1.0.4
* Small update to readme
diff --git a/packages/flutter_lints/lib/flutter.yaml b/packages/flutter_lints/lib/flutter.yaml
index 05276da..bcad70f 100644
--- a/packages/flutter_lints/lib/flutter.yaml
+++ b/packages/flutter_lints/lib/flutter.yaml
@@ -13,5 +13,7 @@
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- sized_box_for_whitespace
+ - sort_child_properties_last
+ - use_build_context_synchronously
- use_full_hex_values_for_flutter_colors
- use_key_in_widget_constructors
diff --git a/packages/flutter_lints/pubspec.yaml b/packages/flutter_lints/pubspec.yaml
index 35fb238..35a2aea 100644
--- a/packages/flutter_lints/pubspec.yaml
+++ b/packages/flutter_lints/pubspec.yaml
@@ -2,11 +2,11 @@
description: Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.
repository: https://github.com/flutter/packages/tree/main/packages/flutter_lints
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_lints%22
-version: 1.0.4
+version: 2.0.0
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0-0 <3.0.0'
dependencies:
- lints: ^1.0.0
+ lints: ^2.0.0
# Code is not allowed in this package. Do not add any dependencies or dev_dependencies.