fl_common_lint 1.8.0
fl_common_lint: ^1.8.0 copied to clipboard
Common linter configuration for vanyasem's projects.
Changelog #
1.8.0 #
-
Enabled switch_on_type: Avoid switch statements on a 'Type'.
-
Enabled unnecessary_unawaited: Unnecessary use of 'unawaited'.
Linter rules up to date as of 27.08.2025
Dart SDK: 3.9.0
1.7.0 #
-
Enabled unnecessary_ignore: Don't ignore a diagnostic code that is not produced.
-
Enabled use_null_aware_elements: If-elements testing for null can be replaced with null-aware elements.
Linter rules up to date as of 24.05.2025
Dart SDK: 3.8.0
1.6.0 #
-
Enabled specify_nonobvious_property_types: Specify non-obvious type annotations for top-level and static variables.
-
Enabled strict_top_level_inference: Specify type annotations.
-
Enabled unnecessary_async: No await no async.
-
Enabled unnecessary_underscores: Unnecessary underscores can be removed.
-
Enabled unsafe_variance: Unsafe type: Has a type variable in a non-covariant position.
-
Disabled require_trailing_commas: Use trailing commas for all parameter lists and argument lists.
Linter rules up to date as of 09.03.2025
Dart SDK: 3.7.0
1.5.0 #
-
Disabled unsafe_html: Avoid unsafe HTML APIs.
-
Enabled avoid_futureor_void: Avoid using 'FutureOr' as the type of a result.
-
Enabled specify_nonobvious_local_variable_types: Specify non-obvious type annotations for local variables.
-
Enabled use_truncating_division: Use truncating division.
Linter rules up to date as of 14.12.2024
Dart SDK: 3.6.0
1.4.0 #
-
Enabled invalid_runtime_check_with_js_interop_types: Avoid runtime type tests with JS interop types where the result may not be platform-consistent.
-
Enabled unintended_html_in_doc_comment: Use of angle brackets in a doc comment is treated as HTML by Markdown.
-
Enabled document_ignores: Document ignore comments.
Linter rules up to date as of 08.08.2024
Dart SDK: 3.5.0
1.3.0 #
- Enabled unnecessary_library_name:
Don't have a library name in a
librarydeclaration.
Linter rules up to date as of 13.07.2024
Dart SDK: 3.4.0
1.2.0 #
- Enabled annotate_redeclares: Annotate redeclared members.
Linter rules up to date as of 23.11.2023
Dart SDK: 3.2.0
1.1.0 #
-
Enabled no_self_assignments: Don’t assign a variable to itself.
-
Enabled no_wildcard_variable_uses: Don’t use wildcard parameters or variables.
-
Disabled unreachable_from_main: Unreachable top-level members in executable libraries.
-
Disabled one_member_abstracts: Avoid defining a one-member abstract class when a simple function will do.
-
Disabled unnecessary_parenthesis: Unnecessary parentheses can be removed.
Linter rules up to date as of 17.09.2023
Dart SDK: 3.1.0
1.0.0 #
Initial release
Linter rules up to date as of 18.08.2023
Dart SDK: 3.0.6