From 37ebcdc6c1f395afd024a1a2513cee71c001a793 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 24 Jun 2024 18:38:24 -0700 Subject: [PATCH] update lints (dart-lang/html#249) --- pkgs/html/lib/dom.dart | 2 +- pkgs/html/lib/dom_parsing.dart | 2 +- pkgs/html/lib/parser.dart | 2 +- pkgs/html/lib/src/list_proxy.dart | 2 +- pkgs/html/lib/src/query_selector.dart | 2 +- pkgs/html/lib/src/token.dart | 2 +- pkgs/html/lib/src/treebuilder.dart | 2 +- pkgs/html/pubspec.yaml | 4 ++-- pkgs/html/test/dom_test.dart | 2 +- pkgs/html/test/parser_feature_test.dart | 2 +- pkgs/html/test/parser_test.dart | 2 +- pkgs/html/test/selectors/level1_baseline_test.dart | 2 +- pkgs/html/test/selectors/level1_lib.dart | 2 +- pkgs/html/test/selectors/selectors.dart | 2 +- pkgs/html/test/support.dart | 2 +- pkgs/html/test/tokenizer_test.dart | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pkgs/html/lib/dom.dart b/pkgs/html/lib/dom.dart index 733362a0e..0c6b38e58 100644 --- a/pkgs/html/lib/dom.dart +++ b/pkgs/html/lib/dom.dart @@ -1,6 +1,6 @@ /// A simple tree API that results from parsing html. Intended to be compatible /// with dart:html, but it is missing many types and APIs. -library dom; +library; // ignore_for_file: constant_identifier_names diff --git a/pkgs/html/lib/dom_parsing.dart b/pkgs/html/lib/dom_parsing.dart index 5cf3cab7f..69b0bbd4d 100644 --- a/pkgs/html/lib/dom_parsing.dart +++ b/pkgs/html/lib/dom_parsing.dart @@ -1,6 +1,6 @@ /// This library contains extra APIs that aren't in the DOM, but are useful /// when interacting with the parse tree. -library dom_parsing; +library; import 'dom.dart'; import 'html_escape.dart'; diff --git a/pkgs/html/lib/parser.dart b/pkgs/html/lib/parser.dart index 3c6340a26..749859890 100644 --- a/pkgs/html/lib/parser.dart +++ b/pkgs/html/lib/parser.dart @@ -11,7 +11,7 @@ /// /// The resulting document you get back has a DOM-like API for easy tree /// traversal and manipulation. -library parser; +library; import 'dart:collection'; import 'dart:math'; diff --git a/pkgs/html/lib/src/list_proxy.dart b/pkgs/html/lib/src/list_proxy.dart index 7fe5e828e..9ed878309 100644 --- a/pkgs/html/lib/src/list_proxy.dart +++ b/pkgs/html/lib/src/list_proxy.dart @@ -1,5 +1,5 @@ /// A [List] proxy that you can subclass. -library list_proxy; +library; import 'dart:collection'; diff --git a/pkgs/html/lib/src/query_selector.dart b/pkgs/html/lib/src/query_selector.dart index 96fe4d2ad..b57b81145 100644 --- a/pkgs/html/lib/src/query_selector.dart +++ b/pkgs/html/lib/src/query_selector.dart @@ -1,5 +1,5 @@ /// Query selector implementation for our DOM. -library html.src.query; +library; import 'package:csslib/parser.dart'; import 'package:csslib/visitor.dart'; diff --git a/pkgs/html/lib/src/token.dart b/pkgs/html/lib/src/token.dart index bbcec2601..1ade790f5 100644 --- a/pkgs/html/lib/src/token.dart +++ b/pkgs/html/lib/src/token.dart @@ -1,5 +1,5 @@ /// This library contains token types used by the html5 tokenizer. -library token; +library; import 'dart:collection'; diff --git a/pkgs/html/lib/src/treebuilder.dart b/pkgs/html/lib/src/treebuilder.dart index a7a8e8290..b63395cd6 100644 --- a/pkgs/html/lib/src/treebuilder.dart +++ b/pkgs/html/lib/src/treebuilder.dart @@ -1,5 +1,5 @@ /// Internals to the tree builders. -library treebuilder; +library; import 'dart:collection'; diff --git a/pkgs/html/pubspec.yaml b/pkgs/html/pubspec.yaml index 5824b768d..64eaed969 100644 --- a/pkgs/html/pubspec.yaml +++ b/pkgs/html/pubspec.yaml @@ -15,6 +15,6 @@ dependencies: source_span: ^1.8.0 dev_dependencies: - dart_flutter_team_lints: ^2.0.0 + dart_flutter_team_lints: ^3.0.0 path: ^1.8.0 - test: ^1.16.0 + test: ^1.16.6 diff --git a/pkgs/html/test/dom_test.dart b/pkgs/html/test/dom_test.dart index df6eb02f7..293443f12 100644 --- a/pkgs/html/test/dom_test.dart +++ b/pkgs/html/test/dom_test.dart @@ -1,5 +1,5 @@ /// Additional feature tests that aren't based on test data. -library dom_test; +library; import 'package:html/dom.dart'; import 'package:html/parser.dart'; diff --git a/pkgs/html/test/parser_feature_test.dart b/pkgs/html/test/parser_feature_test.dart index 64068d062..7156146e0 100644 --- a/pkgs/html/test/parser_feature_test.dart +++ b/pkgs/html/test/parser_feature_test.dart @@ -1,5 +1,5 @@ /// Additional feature tests that aren't based on test data. -library parser_feature_test; +library; import 'package:html/dom.dart'; import 'package:html/parser.dart'; diff --git a/pkgs/html/test/parser_test.dart b/pkgs/html/test/parser_test.dart index 7f717fa17..952c1b2e8 100644 --- a/pkgs/html/test/parser_test.dart +++ b/pkgs/html/test/parser_test.dart @@ -1,5 +1,5 @@ @TestOn('vm') -library parser_test; +library; import 'dart:convert'; diff --git a/pkgs/html/test/selectors/level1_baseline_test.dart b/pkgs/html/test/selectors/level1_baseline_test.dart index b07d1dc43..d5614e960 100644 --- a/pkgs/html/test/selectors/level1_baseline_test.dart +++ b/pkgs/html/test/selectors/level1_baseline_test.dart @@ -5,7 +5,7 @@ /// an iframe, but instead operate over a parsed DOM. @TestOn('vm') -library html.test.selectors.level1_baseline_test; +library; import 'dart:io'; diff --git a/pkgs/html/test/selectors/level1_lib.dart b/pkgs/html/test/selectors/level1_lib.dart index 833e70229..d77aac796 100644 --- a/pkgs/html/test/selectors/level1_lib.dart +++ b/pkgs/html/test/selectors/level1_lib.dart @@ -7,7 +7,7 @@ /// As usual with ports: being faithful to the original style is more important /// than other style goals, as it reduces friction to integrating changes /// from upstream. -library html.test.selectors.level1_lib; +library; import 'package:html/dom.dart'; import 'package:test/test.dart' as unittest; diff --git a/pkgs/html/test/selectors/selectors.dart b/pkgs/html/test/selectors/selectors.dart index 93d91cdd0..81e69c693 100644 --- a/pkgs/html/test/selectors/selectors.dart +++ b/pkgs/html/test/selectors/selectors.dart @@ -1,6 +1,6 @@ /// Test for the Selectors API ported from /// -library html.test.selectors.selectors; +library; // Bit-mapped flags to indicate which tests the selector is suitable for final int testQsaBaseline = diff --git a/pkgs/html/test/support.dart b/pkgs/html/test/support.dart index a74242cce..82f8e62d8 100644 --- a/pkgs/html/test/support.dart +++ b/pkgs/html/test/support.dart @@ -1,5 +1,5 @@ /// Support code for the tests in this directory. -library support; +library; import 'dart:collection'; import 'dart:io'; diff --git a/pkgs/html/test/tokenizer_test.dart b/pkgs/html/test/tokenizer_test.dart index 74a4a48fa..92103ef23 100644 --- a/pkgs/html/test/tokenizer_test.dart +++ b/pkgs/html/test/tokenizer_test.dart @@ -1,5 +1,5 @@ @TestOn('vm') -library tokenizer_test; +library; import 'dart:convert'; import 'dart:io';