1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Add flutter_lints to add_to_app/fullscreen/flutter_module (#810)

This commit is contained in:
Brett Morgan
2021-06-08 08:14:46 +10:00
committed by GitHub
parent 40abd00a45
commit 55e02d6e4d
5 changed files with 56 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
include: package:flutter_lints/flutter.yaml
analyzer:
strong-mode:
implicit-casts: false
implicit-dynamic: false
linter:
rules:
avoid_types_on_closure_parameters: true
avoid_void_async: true
cancel_subscriptions: true
close_sinks: true
directives_ordering: true
package_api_docs: true
package_prefixed_library_names: true
test_types_in_equals: true
throw_in_finally: true
unnecessary_statements: true