From d18cac180da3b5804c44b9b07585b3c7d32f0243 Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Mon, 24 Jun 2024 15:32:05 -0700 Subject: [PATCH] update lints --- lib/dom.dart | 2 +- lib/dom_parsing.dart | 2 +- lib/parser.dart | 2 +- lib/src/list_proxy.dart | 2 +- lib/src/query_selector.dart | 2 +- lib/src/token.dart | 2 +- lib/src/treebuilder.dart | 2 +- pubspec.yaml | 4 ++-- test/dom_test.dart | 2 +- test/parser_feature_test.dart | 2 +- test/parser_test.dart | 2 +- test/selectors/level1_baseline_test.dart | 2 +- test/selectors/level1_lib.dart | 2 +- test/selectors/selectors.dart | 2 +- test/support.dart | 2 +- test/tokenizer_test.dart | 2 +- 16 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/dom.dart b/lib/dom.dart index 733362a..0c6b38e 100644 --- a/lib/dom.dart +++ b/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/lib/dom_parsing.dart b/lib/dom_parsing.dart index 5cf3cab..69b0bbd 100644 --- a/lib/dom_parsing.dart +++ b/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/lib/parser.dart b/lib/parser.dart index 3c6340a..7498598 100644 --- a/lib/parser.dart +++ b/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/lib/src/list_proxy.dart b/lib/src/list_proxy.dart index 7fe5e82..9ed8783 100644 --- a/lib/src/list_proxy.dart +++ b/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/lib/src/query_selector.dart b/lib/src/query_selector.dart index 96fe4d2..b57b811 100644 --- a/lib/src/query_selector.dart +++ b/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/lib/src/token.dart b/lib/src/token.dart index bbcec26..1ade790 100644 --- a/lib/src/token.dart +++ b/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/lib/src/treebuilder.dart b/lib/src/treebuilder.dart index a7a8e82..b63395c 100644 --- a/lib/src/treebuilder.dart +++ b/lib/src/treebuilder.dart @@ -1,5 +1,5 @@ /// Internals to the tree builders. -library treebuilder; +library; import 'dart:collection'; diff --git a/pubspec.yaml b/pubspec.yaml index 5824b76..64eaed9 100644 --- a/pubspec.yaml +++ b/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/test/dom_test.dart b/test/dom_test.dart index df6eb02..293443f 100644 --- a/test/dom_test.dart +++ b/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/test/parser_feature_test.dart b/test/parser_feature_test.dart index 64068d0..7156146 100644 --- a/test/parser_feature_test.dart +++ b/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/test/parser_test.dart b/test/parser_test.dart index 7f717fa..952c1b2 100644 --- a/test/parser_test.dart +++ b/test/parser_test.dart @@ -1,5 +1,5 @@ @TestOn('vm') -library parser_test; +library; import 'dart:convert'; diff --git a/test/selectors/level1_baseline_test.dart b/test/selectors/level1_baseline_test.dart index b07d1dc..d5614e9 100644 --- a/test/selectors/level1_baseline_test.dart +++ b/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/test/selectors/level1_lib.dart b/test/selectors/level1_lib.dart index 833e702..d77aac7 100644 --- a/test/selectors/level1_lib.dart +++ b/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/test/selectors/selectors.dart b/test/selectors/selectors.dart index 93d91cd..81e69c6 100644 --- a/test/selectors/selectors.dart +++ b/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/test/support.dart b/test/support.dart index a74242c..82f8e62 100644 --- a/test/support.dart +++ b/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/test/tokenizer_test.dart b/test/tokenizer_test.dart index 74a4a48..92103ef 100644 --- a/test/tokenizer_test.dart +++ b/test/tokenizer_test.dart @@ -1,5 +1,5 @@ @TestOn('vm') -library tokenizer_test; +library; import 'dart:convert'; import 'dart:io';