Skip to content

Commit cd04d5f

Browse files
committed
added base lint rules
1 parent 63cd742 commit cd04d5f

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

analysis_options.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
66
# invoked from the command line by running `flutter analyze`.
77

8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
8+
# Core recommended lints from package:lints; additional rules below.
9+
include: package:lints/core.yaml
1010

1111
analyzer:
1212
errors:

pubspec.lock

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@ packages:
137137
url: "https://pub.dev"
138138
source: hosted
139139
version: "0.7.1"
140+
lints:
141+
dependency: "direct dev"
142+
description:
143+
name: lints
144+
sha256: c35bb79562d980e9a453fc715854e1ed39e24e7d0297a880ef54e17f9874a9d7
145+
url: "https://pub.dev"
146+
source: hosted
147+
version: "5.1.1"
140148
logging:
141149
dependency: transitive
142150
description:
@@ -386,4 +394,4 @@ packages:
386394
source: hosted
387395
version: "3.1.2"
388396
sdks:
389-
dart: ">=3.3.0 <4.0.0"
397+
dart: ">=3.6.0 <4.0.0"

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dependencies:
1212
http: ^1.0.0 # Send requests
1313

1414
dev_dependencies:
15+
lints: ^5.0.0
1516
test: ^1.24.0

0 commit comments

Comments
 (0)