Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 0cce0b8

Browse files
committed
Add lints for Flutter apps and packages
1 parent 3c1672f commit 0cce0b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lib/flutter.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Lints recommended for Flutter apps and packages.
2+
#
3+
# This file is meant to be used in combination with the lints defined in
4+
# core.yaml and recommend.yaml. Consider importing all three files in your
5+
# project's analysis_options.yaml file.
6+
linter:
7+
rules:
8+
- avoid_print
9+
- avoid_unnecessary_containers
10+
- avoid_web_libraries_in_flutter
11+
- no_logic_in_create_state
12+
- prefer_const_constructors
13+
- prefer_const_constructors_in_immutables
14+
- prefer_const_declarations
15+
- prefer_const_literals_to_create_immutables
16+
- prefer_if_elements_to_conditional_expressions
17+
- sized_box_for_whitespace
18+
- use_full_hex_values_for_flutter_colors
19+
- use_key_in_widget_constructors

0 commit comments

Comments
 (0)