浏览代码

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

appflowy 3 年之前
父节点
当前提交
21b95233fc

+ 2 - 1
app_flowy/analysis_options.yaml

@@ -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:

+ 1 - 0
app_flowy/packages/flowy_logger/pubspec.yaml

@@ -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

+ 1 - 0
app_flowy/packages/flowy_sdk/example/pubspec.yaml

@@ -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

+ 1 - 0
app_flowy/packages/flowy_sdk/pubspec.yaml

@@ -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

+ 1 - 1
app_flowy/pubspec.yaml

@@ -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'