Skip to content

Commit bb459ab

Browse files
authored
Fix newly enforced package:pedantic lints (dart-archive/html#111)
- always_declare_return_types - annotate_overrides - omit_local_variable_types - prefer_conditional_assignment - prefer_if_null_operators - prefer_single_quotes - use_function_type_syntax_for_parameters Ignore prefer_collection_literals lints since they would require incorrect code where a `{}` (statically a `Map`) is assigned to a static `LinkedHashMap`. See https://github.com/dart-lang/linter/issues/1649
1 parent b66bc50 commit bb459ab

22 files changed

+5188
-4929
lines changed

pkgs/html/analysis_options.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
include: package:pedantic/analysis_options.yaml
22
analyzer:
33
errors:
4+
# https://github.com/dart-lang/linter/issues/1649
5+
prefer_collection_literals: ignore
46
unused_element: error
57
unused_import: error
68
unused_local_variable: error

0 commit comments

Comments
 (0)