Skip to content

Commit 5d7aee3

Browse files
authored
chore(deps): update dev dependency flutter_lints to 5.0.0, solve warnings (singerdmx#2292)
* chore(deps): update dev dependency flutter_lints to 5.0.0, solve warnings * chore: remove redundant analysis error ignore * chore: add avoid_web_libraries_in_flutter rule, remove empty analyzer declaration
1 parent 38c9b0f commit 5d7aee3

File tree

16 files changed

+16
-24
lines changed

16 files changed

+16
-24
lines changed

analysis_options.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
include: package:flutter_lints/flutter.yaml
22

3-
analyzer:
4-
errors:
5-
undefined_prefixed_name: ignore
6-
unsafe_html: ignore
73
linter:
84
rules:
95
always_declare_return_types: true
@@ -33,3 +29,4 @@ linter:
3329
unnecessary_lambdas: true
3430
unnecessary_parenthesis: true
3531
unnecessary_string_interpolations: true
32+
avoid_web_libraries_in_flutter: true

dart_quill_delta/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ dependencies:
1515
quiver: ^3.2.1
1616

1717
dev_dependencies:
18+
# TODO: Using 4.0.0 to not require higher version of Dart SDK
1819
lints: ^4.0.0
1920
test: ^1.24.0

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependency_overrides:
6666
dev_dependencies:
6767
flutter_test:
6868
sdk: flutter
69-
flutter_lints: ^4.0.0
69+
flutter_lints: ^5.0.0
7070
build_runner: ^2.4.8
7171
flutter_gen_runner: ^5.4.0
7272

flutter_quill_extensions/analysis_options.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
include: package:flutter_lints/flutter.yaml
22

3-
analyzer:
4-
errors:
5-
undefined_prefixed_name: ignore
6-
unsafe_html: ignore
73
linter:
84
rules:
95
always_declare_return_types: true
@@ -34,3 +30,4 @@ linter:
3430
unnecessary_lambdas: true
3531
unnecessary_parenthesis: true
3632
unnecessary_string_interpolations: true
33+
avoid_web_libraries_in_flutter: true

flutter_quill_extensions/lib/flutter_quill_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library flutter_quill_extensions;
1+
library;
22

33
// ignore: implementation_imports
44
import 'package:flutter_quill/src/editor_toolbar_controller_shared/clipboard/clipboard_service_provider.dart';

flutter_quill_extensions/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dependencies:
5151
dev_dependencies:
5252
flutter_test:
5353
sdk: flutter
54-
flutter_lints: ^4.0.0
54+
flutter_lints: ^5.0.0
5555

5656
flutter:
5757
uses-material-design: true

flutter_quill_test/analysis_options.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
include: package:flutter_lints/flutter.yaml
22

3-
analyzer:
4-
errors:
5-
undefined_prefixed_name: ignore
6-
unsafe_html: ignore
73
linter:
84
rules:
95
always_declare_return_types: true
@@ -34,3 +30,4 @@ linter:
3430
unnecessary_lambdas: true
3531
unnecessary_parenthesis: true
3632
unnecessary_string_interpolations: true
33+
avoid_web_libraries_in_flutter: true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
library flutter_quill_test;
1+
library;
22

33
export 'src/test/widget_tester_extension.dart';

flutter_quill_test/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies:
3333
sdk: flutter
3434

3535
dev_dependencies:
36-
flutter_lints: ^4.0.0
36+
flutter_lints: ^5.0.0
3737

3838
flutter:
3939
uses-material-design: true

lib/extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'to expose certain internal APIs and should not be used directly, as it is subject to breaking changes.\n'
44
'The replacement is flutter_quill_internal.dart which is also for internal use only.',
55
)
6-
library flutter_quill.extensions;
6+
library;
77

88
// This file contains exports that are meant to be used
99
// internally and are not part of the public API as

0 commit comments

Comments
 (0)