diff --git a/CHANGELOG.md b/CHANGELOG.md index b88f96f..3e46cfe 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 2.4.0 + +Requires Dart `sdk: '>=3.3.0'` + +- Remove [`iterable_contains_unrelated_type`](https://dart-lang.github.io/linter/lints/iterable_contains_unrelated_type.html) +- Remove [`list_remove_unrelated_type`](https://dart-lang.github.io/linter/lints/list_remove_unrelated_type.html) +- Remove [`always_require_non_null_named_parameters`](https://dart-lang.github.io/linter/lints/always_require_non_null_named_parameters.html) +- Remove [`avoid_returning_null`](https://dart-lang.github.io/linter/lints/avoid_returning_null.html) +- Remove [`avoid_returning_null_for_future`](https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html) + ## 2.3.0 Requires Dart `sdk: '>=3.2.0'` diff --git a/README.md b/README.md index 6309af6..fd4b49a 100755 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ Generally, you can just put `lint: ^2.0.0` in your `pubspec.yaml` and pub get th | Dart Version | Lint Version | |--------------|---------------------------------------------------------------------| +| `3.3` | [`2.4.0`](https://pub.dev/packages/lint/versions/2.4.0/changelog) | | `3.2` | [`2.3.0`](https://pub.dev/packages/lint/versions/2.3.0/changelog) | | `3.1` | [`2.2.0`](https://pub.dev/packages/lint/versions/2.2.0/changelog) | | `3.0` | [`2.1.0`](https://pub.dev/packages/lint/versions/2.1.0/changelog) | diff --git a/lib/casual.yaml b/lib/casual.yaml index db7281f..66d61dd 100755 --- a/lib/casual.yaml +++ b/lib/casual.yaml @@ -44,12 +44,6 @@ linter: # http://dart-lang.github.io/linter/lints/always_declare_return_types.html # - always_put_required_named_parameters_first - # All non nullable named parameters should be and annotated with @required. - # This allows API consumers to get warnings via lint rather than a crash a runtime. - # Might become obsolete with Non-Nullable types - # - # http://dart-lang.github.io/linter/lints/always_require_non_null_named_parameters.html - - always_require_non_null_named_parameters # Always use package: imports. # While both, relative and package imports are fine, package imports are preferred because they allow for easy find @@ -230,20 +224,6 @@ linter: # https://dart-lang.github.io/linter/lints/avoid_return_types_on_setters.html - avoid_return_types_on_setters - # Since nullsafety landed in dart, `int?` is completely fine to return null and `int` can't return `null` at all. - # - # In general there are plenty of valid reasons to return `null`, not a useful rule - # - # Dart SDK: >= 2.0.0 • (Linter v0.1.31) - # - # https://dart-lang.github.io/linter/lints/avoid_returning_null.html - # - avoid_returning_null - - # Don't use `Future?`, therefore never return null instead of a Future. - # Will become obsolete one Non-Nullable types land - # https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html - - avoid_returning_null_for_future - # Use empty returns, don't show off with your knowledge about dart internals. # https://dart-lang.github.io/linter/lints/avoid_returning_null_for_void.html - avoid_returning_null_for_void @@ -516,10 +496,6 @@ linter: # https://dart-lang.github.io/linter/lints/invalid_case_patterns.html - invalid_case_patterns - # Deprecated, replaced by collection_methods_unrelated_type - # - # https://dart-lang.github.io/linter/lints/iterable_contains_unrelated_type.html - # - iterable_contains_unrelated_type # Hint to join return and assignment. # @@ -562,11 +538,6 @@ linter: # https://dart-lang.github.io/linter/lints/lines_longer_than_80_chars.html # - lines_longer_than_80_chars - # Deprecated, replaced by collection_methods_unrelated_type - # - # https://dart-lang.github.io/linter/lints/list_remove_unrelated_type.html - # - list_remove_unrelated_type - # Good for libraries to prevent unnecessary code paths. # False positives may occur for applications when boolean properties are generated by external programs # producing auto-generated source code @@ -616,14 +587,14 @@ linter: # https://dart-lang.github.io/linter/lints/no_runtimeType_toString.html - no_runtimeType_toString - # Don’t assign a variable to itself. + # Don't assign a variable to itself. # # Dart SDK: >= 3.1.0 # # https://dart.dev/tools/linter-rules/no_self_assignments - no_self_assignments - # Don’t use wildcard parameters or variables. Code using this will break in the future. + # Don't use wildcard parameters or variables. Code using this will break in the future. # # Dart SDK: >= 3.1.0 # diff --git a/lib/strict.yaml b/lib/strict.yaml index cfe01a9..e395723 100755 --- a/lib/strict.yaml +++ b/lib/strict.yaml @@ -47,13 +47,6 @@ linter: # http://dart-lang.github.io/linter/lints/always_declare_return_types.html # - always_put_required_named_parameters_first - # All non nullable named parameters should be and annotated with @required. - # This allows API consumers to get warnings via lint rather than a crash a runtime. - # Might become obsolete with Non-Nullable types - # - # http://dart-lang.github.io/linter/lints/always_require_non_null_named_parameters.html - - always_require_non_null_named_parameters - # Always use package: imports. # While both, relative and package imports are fine, package imports are preferred because they allow for easy find # and replace @@ -233,20 +226,6 @@ linter: # https://dart-lang.github.io/linter/lints/avoid_return_types_on_setters.html - avoid_return_types_on_setters - # Since nullsafety landed in dart, `int?` is completely fine to return null and `int` can't return `null` at all. - # - # In general there are plenty of valid reasons to return `null`, not a useful rule - # - # Dart SDK: >= 2.0.0 • (Linter v0.1.31) - # - # https://dart-lang.github.io/linter/lints/avoid_returning_null.html - # - avoid_returning_null - - # Don't use `Future?`, therefore never return null instead of a Future. - # Will become obsolete one Non-Nullable types land - # https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html - - avoid_returning_null_for_future - # Use empty returns, don't show off with your knowledge about dart internals. # https://dart-lang.github.io/linter/lints/avoid_returning_null_for_void.html - avoid_returning_null_for_void @@ -453,7 +432,7 @@ linter: # https://dart-lang.github.io/linter/lints/empty_catches.html - empty_catches - # Removed empty constructor bodies + # Removes empty constructor bodies # # https://dart-lang.github.io/linter/lints/empty_constructor_bodies.html - empty_constructor_bodies @@ -519,11 +498,6 @@ linter: # https://dart-lang.github.io/linter/lints/invalid_case_patterns.html - invalid_case_patterns - # Deprecated, replaced by collection_methods_unrelated_type - # - # https://dart-lang.github.io/linter/lints/iterable_contains_unrelated_type.html - # - iterable_contains_unrelated_type - # Hint to join return and assignment. # # https://dart-lang.github.io/linter/lints/join_return_with_assignment.html @@ -565,11 +539,6 @@ linter: # https://dart-lang.github.io/linter/lints/lines_longer_than_80_chars.html # - lines_longer_than_80_chars - # Deprecated, replaced by collection_methods_unrelated_type - # - # https://dart-lang.github.io/linter/lints/list_remove_unrelated_type.html - # - list_remove_unrelated_type - # Good for libraries to prevent unnecessary code paths. # False positives may occur for applications when boolean properties are generated by external programs # producing auto-generated source code @@ -619,14 +588,14 @@ linter: # https://dart-lang.github.io/linter/lints/no_runtimeType_toString.html - no_runtimeType_toString - # Don’t assign a variable to itself. + # Don't assign a variable to itself. # # Dart SDK: >= 3.1.0 # # https://dart.dev/tools/linter-rules/no_self_assignments - no_self_assignments - # Don’t use wildcard parameters or variables. Code using this will break in the future. + # Don't use wildcard parameters or variables. Code using this will break in the future. # # Dart SDK: >= 3.1.0 # diff --git a/pubspec.yaml b/pubspec.yaml index 6ad8390..5c05ec1 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: lint -version: 2.3.0 +version: 2.4.0 description: An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter repository: https://github.com/passsy/dart-lint issue_tracker: https://github.com/passsy/dart-lint/issues @@ -7,4 +7,4 @@ topics: - lint environment: - sdk: '>=3.2.0 <4.0.0' + sdk: '>=3.3.0 <4.0.0'