lint
An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
2.8.0
197K downloads/mo
#853 most downloaded on pub.dev
passsy/dart-lint
What this package is like to depend on
Last release 1 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 1.2 years
Most releases are documented
notes for 39 of 44 stable releases
1 version withdrawn
withdrawn after publishing
7 years old
49 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
49 releases · Sep 2019 to Feb 2025Releases
latest 49-
2.8.024 Feb 2025Release notes
Open source →Requires Dart
sdk: '>=3.7.0'- Disable
require_trailing_commas - Enable
unnecessary_underscores - Enable
strict_top_level_inference - Enable
unnecessary_async - Remove deprecated and now removed
package_api_docsfrompackage.yaml. You can enablepublic_member_api_docsas a way stricter replacement. - Remove
unsafe_html - Remove deprecated
avoid_null_checks_in_equality_operators
Release notes
Open source →Requires Dart sdk: '>=3.7.0'
-
Disable require_trailing_commas
-
Enable unnecessary_underscores
-
Enable strict_top_level_inference
-
Enable unnecessary_async
-
Remove deprecated and now removed package_api_docs from package.yaml . You can enable public_member_api_docs as a way stricter replacement.
-
Remove unsafe_html
-
Remove deprecated avoid_null_checks_in_equality_operators
- Disable
-
2.7.024 Feb 2025 -
2.6.223 Feb 2025 -
2.6.115 Feb 2025Release notes
Open source →Requires Dart
sdk: '>=3.5.0'- Enable
document_ignoresfor strict mode - Enable
invalid_runtime_check_with_js_interop_types - Enable
unintended_html_in_doc_comment
Release notes
Open source →Requires Dart
sdk: '>=3.5.0'- Enable
document_ignoresfor strict mode - Enable
invalid_runtime_check_with_js_interop_types - Enable
unintended_html_in_doc_comment
Release notes
Open source →Requires Dart sdk: '>=3.5.0'
-
Enable document_ignores for strict mode
-
Enable invalid_runtime_check_with_js_interop_types
-
Enable unintended_html_in_doc_comment
- Enable
-
2.6.015 Feb 2025 withdrawnRelease notes
Open source →Failed release, accidentally published Dart 3.6 rules with Dart 3.5 SDK constraints. Redacted. Use 2.6.1 instead.
-
2.5.015 Feb 2025Release notes
Open source →Requires Dart sdk: '>=3.4.0'
-
Enable unnecessary_library_name
-
Enable missing_code_block_language_in_doc_comment
-
-
2.4.014 Feb 2025Release notes
Open source →Requires Dart
sdk: '>=3.3.0'- Remove
iterable_contains_unrelated_type - Remove
list_remove_unrelated_type - Remove
always_require_non_null_named_parameters - Remove
avoid_returning_null - Remove
avoid_returning_null_for_future
Release notes
Open source →Requires Dart
sdk: '>=3.3.0'- Remove
iterable_contains_unrelated_type - Remove
list_remove_unrelated_type - Remove
always_require_non_null_named_parameters - Remove
avoid_returning_null - Remove
avoid_returning_null_for_future
Release notes
Open source →Requires Dart sdk: '>=3.3.0'
-
Remove iterable_contains_unrelated_type
-
Remove list_remove_unrelated_type
-
Remove always_require_non_null_named_parameters
-
Remove avoid_returning_null
-
Remove avoid_returning_null_for_future
- Remove
-
2.3.022 Dec 2023 -
2.2.007 Nov 2023Release notes
Open source →Requires Dart
sdk: '>=3.1.0'- Disable
unnecessary_await_in_returndue to false positives and almost no benefit - Enable
no_wildcard_variable_uses - Enable
no_self_assignments
Release notes
Open source →Requires Dart
sdk: '>=3.1.0'- Disable
unnecessary_await_in_returndue to false positives and almost no benefit - Enable
no_wildcard_variable_uses - Enable
no_self_assignments
Release notes
Open source →Requires Dart sdk: '>=3.1.0'
-
Disable unnecessary_await_in_return due to false positives and almost no benefit
-
Enable no_wildcard_variable_uses
-
Enable no_self_assignments
- Disable
-
2.1.212 May 2023Release notes
Open source →Requires Dart
sdk: '>=3.0.0'- Remove
prefer_equal_for_default_values - Enable
unnecessary_breaks - Enable
invalid_case_patterns - Enable
implicit_reopenfor package mode - Enable
type_literal_in_constant_pattern - Include all rules from
v2.0.20
Release notes
Open source →Requires Dart
sdk: '>=3.0.0'- Remove
prefer_equal_for_default_values - Enable
unnecessary_breaks - Enable
invalid_case_patterns - Enable
implicit_reopenfor package mode - Enable
type_literal_in_constant_pattern - Include all rules from
v2.0.20
Release notes
Open source →Requires Dart sdk: '>=3.0.0'
-
Remove prefer_equal_for_default_values
-
Enable unnecessary_breaks
-
Enable invalid_case_patterns
-
Enable implicit_reopen for package mode
-
Enable type_literal_in_constant_pattern
-
Include all rules from v2.0.20
- Remove
-
2.1.127 Feb 2023Release notes
Open source →- Disable
avoid_positional_boolean_parametersdue to new false positives in Dart 3.0
Release notes
Open source →- Disable avoid_positional_boolean_parameters due to new false positives in Dart 3.0
- Disable
-
2.1.027 Feb 2023Release notes
Open source →Requires Dart
sdk: '>=3.0.0-0'- Remove
implicit-casts: false - Enable
strict-casts: true
Release notes
Open source →Requires Dart sdk: '>=3.0.0-0'
-
Remove implicit-casts: false
-
Enable strict-casts: true
- Remove
-
2.0.2011 May 2023Release notes
Open source →Requires Dart
sdk: '>=2.19.0'- Enable
combinators_orderingfor strict - Enable
use_string_in_part_of_directives - Enable
unreachable_from_mainfor strict - Enable
dangling_library_doc_commentsfor strict - Enable
collection_methods_unrelated_type - Enable
implicit_call_tearoffs - Enable
unnecessary_library_directive - Enable
library_annotations
Release notes
Open source →Requires Dart sdk: '>=2.19.0'
-
Enable combinators_ordering for strict
-
Enable use_string_in_part_of_directives
-
Enable unreachable_from_main for strict
-
Enable dangling_library_doc_comments for strict
-
Enable collection_methods_unrelated_type
-
Enable implicit_call_tearoffs
-
Enable unnecessary_library_directive
-
Enable library_annotations
- Enable
-
2.0.130 Nov 2022 -
2.0.030 Nov 2022Release notes
Open source →Requires Dart
sdk: '>=2.18.0'- New
package:lint/strict.yaml - New
package:lint/casual.yaml - New
package:lint/package.yaml - Deprecate
package:lint/analysis_options.yaml(usesstrict.yaml) - Deprecate
package:lint/analysis_options_package.yaml(usespackage.yaml) - Disable
use_decorated_box - Enable
unnecessary_null_aware_operator_on_extension_on_nullable - Enable
unnecessary_to_list_in_spreads
Release notes
Open source →Requires Dart sdk: '>=2.18.0'
-
New package:lint/strict.yaml
-
New package:lint/casual.yaml
-
New package:lint/package.yaml
-
Deprecate package:lint/analysis_options.yaml (uses strict.yaml )
-
Deprecate package:lint/analysis_options_package.yaml (uses package.yaml )
-
Disable use_decorated_box
-
Enable unnecessary_null_aware_operator_on_extension_on_nullable
-
Enable unnecessary_to_list_in_spreads
- New
-
1.10.026 Jul 2022 -
1.9.026 Jul 2022Release notes
Open source →Requires Dart
sdk: '>=2.16.0 <3.0.0'- Enable
unnecessary_late - Remove strict pana rules from
analysis_options_package.yamllines_longer_than_80_charsprefer_single_quotes
Release notes
Open source →Requires Dart sdk: '>=2.16.0 <3.0.0'
-
Enable unnecessary_late
-
Remove strict pana rules from analysis_options_package.yaml
-
lines_longer_than_80_chars
-
prefer_single_quotes
- Enable
-
1.8.219 Jan 2022Release notes
Open source →pana lint rules have been relaxed. No need for those two rules in the
packageversion:- Remove
lines_longer_than_80_charsfromanalysis_options_package.yaml - Remove
prefer_single_quotesfromanalysis_options_package.yaml
Release notes
Open source →pana lint rules have been relaxed. No need for those two rules in the package version:
-
Remove lines_longer_than_80_chars from analysis_options_package.yaml
-
Remove prefer_single_quotes from analysis_options_package.yaml
- Remove
-
1.8.112 Dec 2021Release notes
Open source →Requires Dart
sdk: '>=2.15.0-7.0.dev <3.0.0'- Enable
always_use_package_imports - Enable
avoid_double_and_int_checks - Enable
use_is_even_rather_than_modulo parameter_assignmentsis now a warning (was hint)missing_required_paramis now a error (was warning)missing_returnis now an error (was warning)- ignore any errors in auto-generated flutter file
lib/generated_plugin_registrant.dart
Package
- Enable
library_private_types_in_public_api - Enable
lines_longer_than_80_chars - Enable
prefer_single_quotes
Big thanks to @rydmike for comparing all popular lint packages, identifying missing rules for this
lintRelease notes
Open source →Requires Dart sdk: '>=2.15.0-7.0.dev <3.0.0'
-
Enable always_use_package_imports
-
Enable avoid_double_and_int_checks
-
Enable use_is_even_rather_than_modulo
-
parameter_assignments is now a warning (was hint)
-
missing_required_param is now a error (was warning)
-
missing_return is now an error (was warning)
-
ignore any errors in auto-generated flutter file lib/generated_plugin_registrant.dart
Package
-
Enable library_private_types_in_public_api
-
Enable lines_longer_than_80_chars
-
Enable prefer_single_quotes
Big thanks to @rydmike for comparing all popular lint packages, identifying missing rules for this lint
- Enable
-
1.8.012 Dec 2021 -
1.7.316 Jan 2023 -
1.7.216 Aug 2021Release notes
Open source →Requires Dart
sdk: '>=2.14.0-360.0.dev <3.0.0'- Enable
eol_at_end_of_file
Release notes
Open source →Requires Dart sdk: '>=2.14.0-360.0.dev <3.0.0'
- Enable eol_at_end_of_file
- Enable
-
1.7.116 Aug 2021Release notes
Open source →Requires Dart
sdk: '>=2.14.0-172.0.dev <3.0.0'- Enable
depend_on_referenced_packages - Enable
noop_primitive_operations - Enable
prefer_final_parameters - Enable
use_test_throws_matchers
Release notes
Open source →Requires Dart sdk: '>=2.14.0-172.0.dev <3.0.0'
-
Enable depend_on_referenced_packages
-
Enable noop_primitive_operations
-
Enable prefer_final_parameters
-
Enable use_test_throws_matchers
- Enable
-
1.7.016 Aug 2021Release notes
Open source →Requires Dart
sdk: '>=2.14.0-2.0.dev <3.0.0'- Enable
prefer_null_aware_method_calls - Enable
require_trailing_commas
Release notes
Open source →Requires Dart sdk: '>=2.14.0-2.0.dev <3.0.0'
-
Enable prefer_null_aware_method_calls
-
Enable require_trailing_commas
- Enable
-
1.6.016 Aug 2021Release notes
Open source →Requires Dart
sdk: >=2.13.0 <3.0.0- Enable
avoid_multiple_declarations_per_line - Enable
deprecated_consistency - Enable
use_if_null_to_convert_nulls_to_bools - Enable
use_build_context_synchronously - Enable
use_named_constants
Release notes
Open source →Requires Dart sdk: >=2.13.0 <3.0.0
-
Enable avoid_multiple_declarations_per_line
-
Enable deprecated_consistency
-
Enable use_if_null_to_convert_nulls_to_bools
-
Enable use_build_context_synchronously
-
Enable use_named_constants
- Enable
-
1.5.306 Mar 2021Release notes
Open source →- Remove avoid_dynamic_calls, which is not part of the stable Dart 2.12 release
Release notes
Open source →- Remove avoid_dynamic_calls , which is not part of the stable Dart 2.12 release
-
1.5.203 Mar 2021Release notes
Open source →Release for stable Dart
2.12.0- Enable avoid_dynamic_calls
- Enable avoid_type_to_string
- Enable cast_nullable_to_non_nullable
- Enable null_check_on_nullable_type_parameter
- Enable tighten_type_of_initializing_formals
- Enable unnecessary_null_checks
Release notes
Open source →Release for stable Dart 2.12.0
-
Enable avoid_dynamic_calls
-
Enable avoid_type_to_string
-
Enable cast_nullable_to_non_nullable
-
Enable null_check_on_nullable_type_parameter
-
Enable tighten_type_of_initializing_formals
-
Enable unnecessary_null_checks
-
1.5.119 Nov 2020Release notes
Open source →Min SDK is
2.12.0-0Widen SDK contraints as long as nnbd is still in beta.
Release notes
Open source →Min SDK is 2.12.0-0
Widen SDK contraints as long as nnbd is still in beta.
-
1.5.019 Nov 2020 -
1.4.0-dev.d210.127 Sep 2020 pre-releaseRelease notes
Open source →Release for Dart 2.10.0 with Linter v0.1.118
Min SDK is 2.10.0-5.0.dev
-
Enable use_late_for_private_fields_and_variables
-
Enable unnecessary_nullable_for_final_variable_declarations
-
-
1.3.027 Sep 2020Release notes
Open source →Release for Dart 2.9.0 with Linter v0.1.117
Min SDK is
2.9.0-16.0.dev- Enable
sized_box_for_whitespace - Enable
exhaustive_cases
Release notes
Open source →Release for Dart 2.9.0 with Linter v0.1.117
Min SDK is 2.9.0-16.0.dev
-
Enable sized_box_for_whitespace
-
Enable exhaustive_cases
- Enable
-
1.3.0-dev.d29.107 May 2020 pre-releaseRelease notes
Open source →Dart SDK: >= 2.9.0-4.0.dev • (Linter v0.1.115)
- Enable
sized_box_for_whitespace
Release notes
Open source →Dart SDK: >= 2.9.0-4.0.dev • (Linter v0.1.115)
- Enable sized_box_for_whitespace
- Enable
-
1.2.007 May 2020Release notes
Open source →Release for Dart 2.8.1 with Linter v0.1.114
Min SDK is
2.8.0-dev.16.0-
Enable
no_runtimeType_toString -
Enable
unnecessary_raw_strings -
Enable
unnecessary_string_escapes -
Enable
use_key_in_widget_constructorsfor packages
Release notes
Open source →Release for Dart 2.8.1 with Linter v0.1.114
Min SDK is 2.8.0-dev.16.0
Enable avoid_redundant_argument_values
Enable missing_whitespace_between_adjacent_strings
Enable no_runtimeType_toString
Enable unnecessary_string_interpolations
Enable unnecessary_raw_strings
Enable unnecessary_string_escapes
Enable leading_newlines_in_multiline_strings
Enable use_key_in_widget_constructors for packages
-
1.2.0-dev.d28.229 Mar 2020 pre-release -
1.2.0-dev.d28.129 Mar 2020 pre-releaseRelease notes
Open source →- Dart 2.8 pre-release
- Enable
avoid_redundant_argument_values - Enable
missing_whitespace_between_adjacent_strings - Enable
no_runtimeType_toString - Enable
unnecessary_string_interpolations - Enable
unnecessary_raw_strings - Enable
unnecessary_string_escapes - Enable
leading_newlines_in_multiline_strings
Release notes
Open source →-
Dart 2.8 pre-release
-
Enable avoid_redundant_argument_values
-
Enable missing_whitespace_between_adjacent_strings
-
Enable no_runtimeType_toString
-
Enable unnecessary_string_interpolations
-
Enable unnecessary_raw_strings
-
Enable unnecessary_string_escapes
-
Enable leading_newlines_in_multiline_strings
-
1.1.110 Jan 2020 -
1.1.013 Dec 2019Release notes
Open source →Release for Dart 2.7
- Enable
prefer_is_not_operator - Enable
avoid_unnecessary_containers
Release notes
Open source →Release for Dart 2.7
-
Enable prefer_is_not_operator
-
Enable avoid_unnecessary_containers
- Enable
-
1.0.013 Dec 2019 -
0.3.2+dart20504 Oct 2019Nothing published for this version
-
0.3.1+dart20504 Oct 2019Nothing published for this version
-
0.3.0+dart20204 Oct 2019Nothing published for this version
-
0.3.0+dart20304 Oct 2019Nothing published for this version
-
0.3.0+dart20504 Oct 2019Nothing published for this version
-
0.2.316 Sep 2019 -
0.2.216 Sep 2019Release notes
Open source →- Release for Dart 2.4 enables
prefer_if_null_operatorssort_child_properties_lastunsafe_html
Release notes
Open source →-
Release for Dart 2.4 enables
-
prefer_if_null_operators
-
sort_child_properties_last
-
unsafe_html
- Release for Dart 2.4 enables
-
0.2.116 Sep 2019Release notes
Open source →- Release for Dart 2.3 enables
prefer_for_elements_to_map_fromIterableprefer_if_elements_to_conditional_expressionsprefer_inlined_addsprefer_spread_collections
Release notes
Open source →-
Release for Dart 2.3 enables
-
prefer_for_elements_to_map_fromIterable
-
prefer_if_elements_to_conditional_expressions
-
prefer_inlined_adds
-
prefer_spread_collections
- Release for Dart 2.3 enables
-
0.2.016 Sep 2019Release notes
Open source →- Fix
analysis_options_package.yaml(wrong import) - Release for Dart 2.2. All incompatible rules are removed
Release notes
Open source →-
Fix analysis_options_package.yaml (wrong import)
-
Release for Dart 2.2. All incompatible rules are removed
- Fix
-
0.1.116 Sep 2019 -
0.1.016 Sep 2019Release notes
Open source →- app rule set
analysis_options_package.yaml - package rule set
analysis_options_package.yaml
Release notes
Open source →-
app rule set analysis_options_package.yaml
-
package rule set analysis_options_package.yaml
863
likes
160
points
193k
downloads
Documentation
API reference
Publisher
pascalwelsch.com
Weekly Downloads
Metadata
An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
Repository (GitHub)
View/report issues
Topics
#lint
License
Apache-2.0 ( license )
More
Packages that depend on lint
← Metadata
863
likes
160
points
193k
downloads
Documentation
API reference
Publisher
pascalwelsch.com
Weekly Downloads
Metadata
An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
Repository (GitHub)
View/report issues
Topics
#lint
License
Apache-2.0 ( license )
More
Packages that depend on lint
Back
- app rule set