Skip to content

Conversation

@bkonyi
Copy link
Collaborator

@bkonyi bkonyi commented Nov 10, 2025

Makes the packages in this repo conformant with the recommended set of lints for packages maintained by the Dart and Flutter teams. This is done in preparation for migrating these packages into the Dart SDK.

This change also removes all usages of dynamic, replacing them with Object?.

Makes the packages in this repo conformant with the recommended set of
lints for packages maintained by the Dart and Flutter teams. This is
done in preparation for migrating these packages into the Dart SDK.
Copy link
Member

@parlough parlough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :D

# - avoid-double-slash-imports
- avoid-duplicate-exports
# - avoid-dynamic
# - avoid-Object?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - avoid-Object?
# - avoid-dynamic

Comment on lines 18 to 41
- always_declare_return_types
- avoid_classes_with_only_static_members
- avoid_returning_this
- avoid_unused_constructor_parameters
- avoid_void_async
- cancel_subscriptions
- directives_ordering
- join_return_with_assignment
- library_names
- literal_only_boolean_expressions
- omit_local_variable_types
- only_throw_errors
- package_prefixed_library_names
- prefer_final_in_for_each
- prefer_final_locals
- prefer_single_quotes
# - prefer_relative_imports
- prefer_void_to_null
- test_types_in_equals
- throw_in_finally
- unawaited_futures
- unnecessary_lambdas
- unnecessary_parenthesis
- unnecessary_statements
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing the lints already in dart_flutter_team_lints:

Suggested change
- avoid_classes_with_only_static_members
- avoid_returning_this
- avoid_unused_constructor_parameters
- avoid_void_async
- cancel_subscriptions
- join_return_with_assignment
- library_names
- literal_only_boolean_expressions
- package_prefixed_library_names
- prefer_final_in_for_each
- prefer_final_locals
- prefer_void_to_null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants