lints
Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team.
6.1.0
9.1M downloads/mo
#46 most downloaded on pub.dev
dart-lang/core
What this package is like to depend on
Last release 6 months ago
30 Jan 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 13 of 14 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
17 releases · first in 2021
1 release in the last 12 months
see the full history below
Release timeline
17 releases · Apr 2021 to Jan 2026Releases
latest 17-
6.1.030 Jan 2026Release notes
Open source →recommended:- Run
dart formatwith the new style.
[use_null_aware_elements]: https://dart.dev/lints/use_null_aware_elements
[no_wildcard_variable_uses]: https://dart.dev/lints/no_wildcard_variable_uses
Release notes
Open source →recommended:- added use_null_aware_elements (https://github.com/dart-lang/core/issues/899)
- Run
dart formatwith the new style.
Release notes
Open source →recommended:- added use_null_aware_elements (https://github.com/dart-lang/core/issues/899)
- added no_wildcard_variable_uses (https://github.com/dart-lang/core/issues/832)
- Run
dart formatwith the new style.
-
6.0.015 Apr 2025Release notes
Open source →core:- added strict_top_level_inference (#836)
recommended:- added unnecessary_underscores (#856)
- Require Dart 3.8.
Release notes
Open source →core:- added strict_top_level_inference (https://github.com/dart-lang/core/issues/836)
recommended:- added unnecessary_underscores (https://github.com/dart-lang/core/issues/856)
- Require Dart 3.8.
-
5.1.120 Dec 2024 -
5.1.025 Sep 2024Release notes
Open source →core:- added unintended_html_in_doc_comment (https://github.com/dart-lang/lints/issues/192)
- Updated the SDK lower bound to 3.6 (dev).
-
5.0.025 Sep 2024Release notes
Open source →recommended:- added invalid_runtime_check_with_js_interop_types (https://github.com/dart-lang/lints/issues/188)
- added unnecessary_library_name (https://github.com/dart-lang/lints/issues/181)
- removed avoid_null_checks_in_equality_operators (https://github.com/dart-lang/lints/issues/200)
- Updated the SDK lower-bound to 3.5.
-
4.0.009 May 2024Release notes
Open source →core:- added
library_annotations(https://github.com/dart-lang/lints/issues/177) - added
no_wildcard_variable_uses(https://github.com/dart-lang/lints/issues/139) - removed
package_prefixed_library_names(https://github.com/dart-lang/lints/issues/172)
- added
recommended:- removed
library_names(https://github.com/dart-lang/lints/issues/181)
- removed
- Updated the SDK lower-bound to 3.1.
- Add a section on upgrading to the latest lint set to the readme.
-
3.0.018 Oct 2023Release notes
Open source →core:- added
collection_methods_unrelated_type - added
dangling_library_doc_comments - added
implicit_call_tearoffs - added
secure_pubspec_urls - added
type_literal_in_constant_pattern - added
use_string_in_part_of_directives - removed
iterable_contains_unrelated_type - removed
list_remove_unrelated_type
- added
recommended:- added
unnecessary_to_list_in_spreads - added
use_super_parameters - removed
prefer_equal_for_default_values - removed
prefer_void_to_null
- added
- Add info about which lints have quick fixes to the package's readme.
- Move the list of lint rules from the readme to a separate rules.md file.
-
3.0.0-beta.228 Sep 2023 pre-releaseNothing published for this version
-
3.0.0-beta26 Sep 2023 pre-releaseNothing published for this version
-
2.1.102 Jun 2023Release notes
Open source →- Added the
analysisandlintstopics to the pubspec file. - Update the package's readme to include the list of lint rules that
package:lints/core.yamlandpackage:lints/recommended.yamlinclude.
- Added the
-
2.1.026 Apr 2023Release notes
Open source →- Updated the SDK lower-bound to 3.0.
- Removed
always_require_non_null_named_parametersfromrecommended.yamlas it is only relevant in Dart pre 2.12 and with Dart 3.0, libraries can no longer be opted back that far.
-
2.0.120 Oct 2022Release notes
Open source →- Updated documentation for the
lib/core.yamlandlib/recommended.yamlanalysis configurations.
- Updated documentation for the
-
2.0.017 Mar 2022Release notes
Open source →- Added the following lints to core.yaml:
depend_on_referenced_packagesnull_check_on_nullable_type_parameter
- Added the following lints to recommended.yaml:
library_private_types_in_public_apino_leading_underscores_for_library_prefixesno_leading_underscores_for_local_identifiersprefer_interpolation_to_compose_stringsunnecessary_constructor_nameunnecessary_lateunnecessary_null_aware_assignmentsunnecessary_nullable_for_final_variable_declarations
- Bumped the minimum required Dart SDK version to 2.17
- Added the following lints to core.yaml:
-
1.0.112 May 2021 -
1.0.012 May 2021 -
1.0.0-dev.005 May 2021 pre-releaseNothing published for this version
-
0.1.027 Apr 2021Nothing published for this version