add flutter_lints to any pubspec.yaml to fix the 'package:flutter_lints/flutter.yaml' file not found issue 😭

This commit is contained in:
appflowy 2021-07-07 15:17:42 +08:00
parent da2ede37b6
commit 21b95233fc
5 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,8 @@
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
# include: package:flutter_lints/flutter.yaml
include: package:flutter_lints/flutter.yaml
analyzer:
exclude:

View File

@ -16,6 +16,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@ -29,6 +29,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@ -26,6 +26,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
build_runner: '1.12.2'
flutter_lints: ^1.0.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@ -53,10 +53,10 @@ dependencies:
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_lints: ^1.0.0
flutter_test:
sdk: flutter
build_runner:
flutter_lints: ^1.0.0
freezed: '>=0.14.2'