Add lints for v2.0 (dart-lang/lints#72)
diff --git a/pkgs/lints/CHANGELOG.md b/pkgs/lints/CHANGELOG.md
index 32a1793..9201fe6 100644
--- a/pkgs/lints/CHANGELOG.md
+++ b/pkgs/lints/CHANGELOG.md
@@ -1,3 +1,19 @@
+## 2.0.0
+
+- Added the following lints to core.yaml:
+ - `depend_on_referenced_packages`
+ - `null_check_on_nullable_type_parameter`
+- Added the following lints to recommended.yaml:
+ - `library_private_types_in_public_api`
+ - `no_leading_underscores_for_library_prefixes`
+ - `no_leading_underscores_for_local_identifiers`
+ - `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.1
- Documentation updates
@@ -5,7 +21,3 @@
## 1.0.0
- Initial stable version
-
-## 1.0.0-dev.0
-
-- Initial version
diff --git a/pkgs/lints/lib/core.yaml b/pkgs/lints/lib/core.yaml
index 96ac12d..b5e8cd2 100644
--- a/pkgs/lints/lib/core.yaml
+++ b/pkgs/lints/lib/core.yaml
@@ -8,6 +8,7 @@
- camel_case_extensions
- camel_case_types
- curly_braces_in_flow_control_structures
+ - depend_on_referenced_packages
- empty_catches
- file_names
- hash_and_equals
@@ -15,6 +16,7 @@
- list_remove_unrelated_type
- no_duplicate_case_values
- non_constant_identifier_names
+ - null_check_on_nullable_type_parameter
- package_prefixed_library_names
- prefer_generic_function_type_aliases
- prefer_is_empty
diff --git a/pkgs/lints/lib/recommended.yaml b/pkgs/lints/lib/recommended.yaml
index 4b875a2..13999d1 100644
--- a/pkgs/lints/lib/recommended.yaml
+++ b/pkgs/lints/lib/recommended.yaml
@@ -19,6 +19,9 @@
- implementation_imports
- library_names
- library_prefixes
+ - library_private_types_in_public_api
+ - no_leading_underscores_for_library_prefixes
+ - no_leading_underscores_for_local_identifiers
- null_closures
- overridden_fields
- package_names
@@ -33,6 +36,7 @@
- prefer_if_null_operators
- prefer_initializing_formals
- prefer_inlined_adds
+ - prefer_interpolation_to_compose_strings
- prefer_is_not_operator
- prefer_null_aware_operators
- prefer_spread_collections
@@ -42,9 +46,13 @@
- type_init_formals
- unnecessary_brace_in_string_interps
- unnecessary_const
+ - unnecessary_constructor_name
- unnecessary_getters_setters
+ - unnecessary_late
- unnecessary_new
+ - unnecessary_null_aware_assignments
- unnecessary_null_in_if_null_operators
+ - unnecessary_nullable_for_final_variable_declarations
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
diff --git a/pkgs/lints/pubspec.yaml b/pkgs/lints/pubspec.yaml
index 0398d8c..3d19220 100644
--- a/pkgs/lints/pubspec.yaml
+++ b/pkgs/lints/pubspec.yaml
@@ -2,10 +2,10 @@
description: Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team.
homepage: https://github.com/dart-lang/lints
repository: https://github.com/dart-lang/lints
-version: 1.0.1
+version: 2.0.0
environment:
- sdk: '>=2.12.0 <3.0.0'
+ sdk: '>=2.17.0-206.0.dev <3.0.0'
# dependencies:
# dev_dependencies: