From bf85bf5927fa424732574ff28d0d262770c37b5e Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 21 Apr 2022 18:34:29 +0700 Subject: [PATCH] TF-495 Add `flutter_lints` for app to encourage good coding practices --- analysis_options.yaml | 2 ++ pubspec.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/analysis_options.yaml b/analysis_options.yaml index 0bb32ed6b..61b6c4de1 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -7,6 +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 + linter: # The lint rules applied to this project can be customized in the # section below to disable rules from the `package:flutter_lints/flutter.yaml` diff --git a/pubspec.yaml b/pubspec.yaml index 0da73ec2a..b6a6df2ed 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -152,6 +152,8 @@ dev_dependencies: mockito: 5.0.17 hive_generator: 1.1.1 + + flutter_lints: 1.0.4 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec