Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

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

appflowy21b95233fc20
diff --git a/app_flowy/analysis_options.yaml b/app_flowy/analysis_options.yaml
index b1c2bbe481..78091118c0 100644
--- a/app_flowy/analysis_options.yaml
+++ b/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:
diff --git a/app_flowy/packages/flowy_logger/pubspec.yaml b/app_flowy/packages/flowy_logger/pubspec.yaml
index ec49706247..fa4740ba0f 100644
--- a/app_flowy/packages/flowy_logger/pubspec.yaml
+++ b/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
diff --git a/app_flowy/packages/flowy_sdk/example/pubspec.yaml b/app_flowy/packages/flowy_sdk/example/pubspec.yaml
index 33fd1b7f2e..dbee825038 100644
--- a/app_flowy/packages/flowy_sdk/example/pubspec.yaml
+++ b/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
diff --git a/app_flowy/packages/flowy_sdk/pubspec.yaml b/app_flowy/packages/flowy_sdk/pubspec.yaml
index 54237e247c..4690011abf 100644
--- a/app_flowy/packages/flowy_sdk/pubspec.yaml
+++ b/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
diff --git a/app_flowy/pubspec.yaml b/app_flowy/pubspec.yaml
index 9655f6414f..42b01d5452 100644
--- a/app_flowy/pubspec.yaml
+++ b/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'