From ea2419fdc3610cbc90a9525c5208fd5f100de3e3 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 11 Dec 2024 14:23:51 -0600 Subject: [PATCH] Move to latest dart_flutter_team_lints (#1667) --- pkgs/source_maps/CHANGELOG.md | 2 ++ pkgs/source_maps/lib/builder.dart | 2 +- pkgs/source_maps/lib/parser.dart | 2 +- pkgs/source_maps/lib/printer.dart | 2 +- pkgs/source_maps/lib/refactor.dart | 2 +- pkgs/source_maps/lib/source_maps.dart | 2 +- pkgs/source_maps/lib/src/utils.dart | 2 +- pkgs/source_maps/lib/src/vlq.dart | 2 +- pkgs/source_maps/pubspec.yaml | 4 ++-- pkgs/source_maps/test/common.dart | 2 +- pkgs/source_maps/test/utils_test.dart | 2 +- 11 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/source_maps/CHANGELOG.md b/pkgs/source_maps/CHANGELOG.md index ae7711e57..b06ac72ea 100644 --- a/pkgs/source_maps/CHANGELOG.md +++ b/pkgs/source_maps/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.10.14-wip + ## 0.10.13 * Require Dart 3.3 diff --git a/pkgs/source_maps/lib/builder.dart b/pkgs/source_maps/lib/builder.dart index 54ba7433f..9043c6326 100644 --- a/pkgs/source_maps/lib/builder.dart +++ b/pkgs/source_maps/lib/builder.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Contains a builder object useful for creating source maps programatically. -library source_maps.builder; +library; // TODO(sigmund): add a builder for multi-section mappings. diff --git a/pkgs/source_maps/lib/parser.dart b/pkgs/source_maps/lib/parser.dart index b699ac728..590dfc682 100644 --- a/pkgs/source_maps/lib/parser.dart +++ b/pkgs/source_maps/lib/parser.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Contains the top-level function to parse source maps version 3. -library source_maps.parser; +library; import 'dart:convert'; diff --git a/pkgs/source_maps/lib/printer.dart b/pkgs/source_maps/lib/printer.dart index 17733cdd3..32523d62f 100644 --- a/pkgs/source_maps/lib/printer.dart +++ b/pkgs/source_maps/lib/printer.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Contains a code printer that generates code by recording the source maps. -library source_maps.printer; +library; import 'package:source_span/source_span.dart'; diff --git a/pkgs/source_maps/lib/refactor.dart b/pkgs/source_maps/lib/refactor.dart index 98e0c9345..a518a0ce4 100644 --- a/pkgs/source_maps/lib/refactor.dart +++ b/pkgs/source_maps/lib/refactor.dart @@ -6,7 +6,7 @@ /// /// [TextEditTransaction] supports making a series of changes to a text buffer. /// [guessIndent] helps to guess the appropriate indentiation for the new code. -library source_maps.refactor; +library; import 'package:source_span/source_span.dart'; diff --git a/pkgs/source_maps/lib/source_maps.dart b/pkgs/source_maps/lib/source_maps.dart index 58f805a3a..244dee7a9 100644 --- a/pkgs/source_maps/lib/source_maps.dart +++ b/pkgs/source_maps/lib/source_maps.dart @@ -24,7 +24,7 @@ /// var mapping = parse(json); /// mapping.spanFor(outputSpan1.line, outputSpan1.column) /// ``` -library source_maps; +library; import 'package:source_span/source_span.dart'; diff --git a/pkgs/source_maps/lib/src/utils.dart b/pkgs/source_maps/lib/src/utils.dart index f70531e95..ba04fbb0f 100644 --- a/pkgs/source_maps/lib/src/utils.dart +++ b/pkgs/source_maps/lib/src/utils.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Utilities that shouldn't be in this package. -library source_maps.utils; +library; /// Find the first entry in a sorted [list] that matches a monotonic predicate. /// Given a result `n`, that all items before `n` will not match, `n` matches, diff --git a/pkgs/source_maps/lib/src/vlq.dart b/pkgs/source_maps/lib/src/vlq.dart index 61b476839..3b0562d82 100644 --- a/pkgs/source_maps/lib/src/vlq.dart +++ b/pkgs/source_maps/lib/src/vlq.dart @@ -10,7 +10,7 @@ /// represented by using the least significant bit of the value as the sign bit. /// /// For more details see the source map [version 3 documentation](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?usp=sharing). -library source_maps.src.vlq; +library; import 'dart:math'; diff --git a/pkgs/source_maps/pubspec.yaml b/pkgs/source_maps/pubspec.yaml index 8518fa756..32cbf4fb7 100644 --- a/pkgs/source_maps/pubspec.yaml +++ b/pkgs/source_maps/pubspec.yaml @@ -1,5 +1,5 @@ name: source_maps -version: 0.10.13 +version: 0.10.14-wip description: A library to programmatically manipulate source map files. repository: https://github.com/dart-lang/tools/tree/main/pkgs/source_maps @@ -10,6 +10,6 @@ dependencies: source_span: ^1.8.0 dev_dependencies: - dart_flutter_team_lints: ^2.0.0 + dart_flutter_team_lints: ^3.0.0 term_glyph: ^1.2.0 test: ^1.16.0 diff --git a/pkgs/source_maps/test/common.dart b/pkgs/source_maps/test/common.dart index f6139de47..e225ff5a4 100644 --- a/pkgs/source_maps/test/common.dart +++ b/pkgs/source_maps/test/common.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Common input/output used by builder, parser and end2end tests -library test.common; +library; import 'package:source_maps/source_maps.dart'; import 'package:source_span/source_span.dart'; diff --git a/pkgs/source_maps/test/utils_test.dart b/pkgs/source_maps/test/utils_test.dart index 4abdce298..2516d1e47 100644 --- a/pkgs/source_maps/test/utils_test.dart +++ b/pkgs/source_maps/test/utils_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. /// Tests for the binary search utility algorithm. -library test.utils_test; +library; import 'package:source_maps/src/utils.dart'; import 'package:test/test.dart';