From 7e11b89445c9f1ceef93cc54e3678c8e85d8b67f Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Thu, 15 Dec 2022 18:54:24 -0600 Subject: [PATCH] Move to using analyzer strict modes instead of deprecated strong mode (#1531) The strong mode options were already deprecated and are being removed in Dart 3. --- analysis_options.yaml | 6 +++--- web/samples_index/analysis_options.yaml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 455dedfa4..847745812 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,9 +1,9 @@ include: package:flutter_lints/flutter.yaml analyzer: - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-casts: true + strict-inference: true linter: rules: diff --git a/web/samples_index/analysis_options.yaml b/web/samples_index/analysis_options.yaml index d28c30e05..d7eb49106 100644 --- a/web/samples_index/analysis_options.yaml +++ b/web/samples_index/analysis_options.yaml @@ -3,9 +3,9 @@ include: package:flutter_lints/flutter.yaml analyzer: exclude: - lib/src/data.g.dart - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-casts: true + strict-inference: true linter: rules: