From e765f9081521c7cf2a641f82776b7a9f1e6d8451 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Mon, 16 Dec 2024 10:48:48 -0800 Subject: [PATCH] [dart_flutter_team_lints] add strict_top_level_inference --- .github/workflows/dart_flutter_team_lints.yml | 2 +- pkgs/dart_flutter_team_lints/CHANGELOG.md | 5 +++++ pkgs/dart_flutter_team_lints/lib/analysis_options.yaml | 1 + pkgs/dart_flutter_team_lints/pubspec.yaml | 4 ++-- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dart_flutter_team_lints.yml b/.github/workflows/dart_flutter_team_lints.yml index 61594501..bcc54756 100644 --- a/.github/workflows/dart_flutter_team_lints.yml +++ b/.github/workflows/dart_flutter_team_lints.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [stable, dev] + sdk: [dev] # TODO: add back in stable steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 diff --git a/pkgs/dart_flutter_team_lints/CHANGELOG.md b/pkgs/dart_flutter_team_lints/CHANGELOG.md index 79ec3813..8d4179f3 100644 --- a/pkgs/dart_flutter_team_lints/CHANGELOG.md +++ b/pkgs/dart_flutter_team_lints/CHANGELOG.md @@ -1,3 +1,8 @@ +# 3.3.0 + +- Added `strict_top_level_inference`. +- Require Dart `3.7`. + ## 3.2.1 - Depend on the `5.0.0` release of `package:lints`. diff --git a/pkgs/dart_flutter_team_lints/lib/analysis_options.yaml b/pkgs/dart_flutter_team_lints/lib/analysis_options.yaml index 5a383334..08526631 100644 --- a/pkgs/dart_flutter_team_lints/lib/analysis_options.yaml +++ b/pkgs/dart_flutter_team_lints/lib/analysis_options.yaml @@ -45,6 +45,7 @@ linter: - comment_references - conditional_uri_does_not_exist - only_throw_errors + - strict_top_level_inference - test_types_in_equals - throw_in_finally - type_annotate_public_apis diff --git a/pkgs/dart_flutter_team_lints/pubspec.yaml b/pkgs/dart_flutter_team_lints/pubspec.yaml index 34ffc5fd..d0b983d6 100644 --- a/pkgs/dart_flutter_team_lints/pubspec.yaml +++ b/pkgs/dart_flutter_team_lints/pubspec.yaml @@ -1,10 +1,10 @@ name: dart_flutter_team_lints description: An analysis rule set used by the Dart and Flutter teams. -version: 3.2.1 +version: 3.3.0 repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/dart_flutter_team_lints environment: - sdk: ^3.5.0 + sdk: ^3.7.0-0 dependencies: lints: ^5.0.0