lint 1.8.0 lint: ^1.8.0 copied to clipboard
An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
Changlog #
1.8.0 #
Requires Dart sdk: '>=2.15.0-7.0.dev <3.0.0'
- Enable
avoid_dynamic_calls
1.7.2 #
Requires Dart sdk: '>=2.14.0-360.0.dev <3.0.0'
- Enable
eol_at_end_of_file
1.7.1 #
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
1.7.0 #
Requires Dart sdk: '>=2.14.0-2.0.dev <3.0.0'
- Enable
prefer_null_aware_method_calls
- Enable
require_trailing_commas
1.6.0 #
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
1.5.3 #
- Remove avoid_dynamic_calls, which is not part of the stable Dart 2.12 release
1.5.2 #
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.1 #
Min SDK is 2.12.0-0
Widen SDK contraints as long as nnbd is still in beta.
1.5.0 #
Min SDK is 2.12.0
- NNBD support
1.4.0-dev.d210.1 #
Release for Dart 2.10.0 with Linter v0.1.118
Min SDK is 2.10.0-5.0.dev
1.3.0 #
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
1.3.0-dev.d29.1 #
Dart SDK: >= 2.9.0-4.0.dev • (Linter v0.1.115)
- Enable
sized_box_for_whitespace
1.2.0 #
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_constructors
for packages
1.2.0-dev.d28.2 #
Raise min sdk to 2.8.0-dev.16.0
1.2.0-dev.d28.1 #
- 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.0 #
Release for Dart 2.7
- Enable
prefer_is_not_operator
- Enable
avoid_unnecessary_containers
1.0.0 #
Release for Dart 2.6
- Enable
camel_case_extensions
0.3.1 #
- Add
Example
tab to https://pub.dev/packages/lint
0.3.0 #
New version schema:
0.3.0+dart202
: Dart 2.2 Releasesdk: '>=2.2.0 <2.3.0'
0.3.0+dart203
: Dart 2.3 Releasesdk: '>=2.3.0 <2.4.0'
0.3.0+dart204
: Dart 2.4 Releasesdk: '>=2.4.0 <2.5.0'
0.3.0+dart205
: Dart 2.5 Releasesdk: '>=2.5.0 <3.0.0'
0.2.3 #
- Release for Dart 2.5 enables
avoid_print
0.2.2 #
- Release for Dart 2.4 enables
prefer_if_null_operators
sort_child_properties_last
unsafe_html
0.2.1 #
- Release for Dart 2.3 enables
prefer_for_elements_to_map_fromIterable
prefer_if_elements_to_conditional_expressions
prefer_inlined_adds
prefer_spread_collections
0.2.0 #
- Fix
analysis_options_package.yaml
(wrong import) - Release for Dart 2.2. All incompatible rules are removed
0.1.1 #
pubspec.yaml
homepage
fix
0.1.0 #
- app rule set
analysis_options_package.yaml
- package rule set
analysis_options_package.yaml