chore: code lint

This commit is contained in:
kuloud
2025-03-12 11:03:18 +08:00
parent 7cd7360eb8
commit 19c0c3bae6
21 changed files with 164 additions and 140 deletions

View File

@ -1 +1,21 @@
include: package:lints/recommended.yaml
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:
- "**/*.g.dart"
- "**/*.freezed.dart"
errors:
missing_required_param: error
missing_return: error
invalid_null_aware_operator: error
linter:
rules:
always_specify_types: true
prefer_final_fields: true
prefer_final_in_for_each: true
prefer_const_constructors: true
prefer_const_declarations: true
avoid_print: false
avoid_empty_else: true
sort_child_properties_last: true