Skip to content

Commit

Permalink
auto: Update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored and github-actions[bot] committed Mar 1, 2024
1 parent 774abba commit 344c5fb
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/flutter/3.19.2/all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# GENERATED CODE - DO NOT MODIFY BY HAND

include: package:yumemi_lints/dart/3.3.0/all.yaml

linter:
rules:
# Errors
- avoid_print
- avoid_web_libraries_in_flutter
- no_logic_in_create_state
- use_build_context_synchronously
- use_key_in_widget_constructors

# Style
- avoid_unnecessary_containers
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- sized_box_for_whitespace
- sort_child_properties_last
- use_full_hex_values_for_flutter_colors
49 changes: 49 additions & 0 deletions lib/flutter/3.19.2/recommended.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# GENERATED CODE - DO NOT MODIFY BY HAND

include: package:yumemi_lints/flutter/3.19.2/all.yaml

analyzer:
language:
# Increase safety as much as possible.
strict-casts: true
strict-inference: true
strict-raw-types: true
errors:
# By including all.yaml, some rules will conflict.
# These warnings will be addressed within this file.
included_file_warning: ignore

linter:
rules:
# Conflicts with enabling `avoid_types_on_closure_parameters`, `omit_local_variable_types`.
always_specify_types: false

# Conflicts with enabling `strict-raw-types`.
avoid_annotating_with_dynamic: false

# There are cases that are warned but not fixed by `dart fix`.
cascade_invocations: false

# Don't use Flutter-style todos.
flutter_style_todos: false

# May add more methods later.
one_member_abstracts: false

# Conflicts with enabling `prefer_single_quotes`.
prefer_double_quotes: false

# Using `=>` has sometimes to reduce readability.
prefer_expression_function_bodies: false

# Conflicts with enabling `avoid_final_parameters`.
prefer_final_parameters: false

# Conflicts with enabling `always_use_package_imports`.
prefer_relative_imports: false

# Don't often develop package.
public_member_api_docs: false

# Conflicts with enabling `prefer_final_locals`.
unnecessary_final: false

0 comments on commit 344c5fb

Please sign in to comment.