Skip to content

Commit 707e4a0

Browse files
authored
Move to dart_flutter_team_lints with associated cleanup (google#1282)
1 parent d49a5f2 commit 707e4a0

File tree

7 files changed

+10
-24
lines changed

7 files changed

+10
-24
lines changed

_test_yaml/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ dev_dependencies:
1010
build_runner: ^2.0.0
1111
build_verify: ^3.0.0
1212
checked_yaml: any
13+
dart_flutter_team_lints: ^0.1.0
1314
json_annotation: ^4.7.0
1415
json_serializable: any
15-
lints: ^2.0.0
1616
path: ^1.8.2
1717
test: ^1.6.0
1818
yaml: ^3.0.0

analysis_options.yaml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
include: package:lints/recommended.yaml
1+
# See https://dart.dev/guides/language/analysis-options
2+
include: package:dart_flutter_team_lints/analysis_options.yaml
23

34
analyzer:
45
language:
56
strict-casts: true
67

78
linter:
89
rules:
9-
- always_declare_return_types
10-
- avoid_catching_errors
11-
- avoid_dynamic_calls
1210
- avoid_private_typedef_functions
1311
- avoid_redundant_argument_values
1412
- avoid_returning_null
@@ -20,38 +18,24 @@ linter:
2018
- combinators_ordering
2119
- comment_references
2220
- dangling_library_doc_comments
23-
- directives_ordering
2421
- implicit_call_tearoffs
2522
- join_return_with_assignment
2623
- library_annotations
27-
- lines_longer_than_80_chars
2824
- literal_only_boolean_expressions
2925
- missing_whitespace_between_adjacent_strings
3026
- no_runtimeType_toString
31-
- omit_local_variable_types
32-
- only_throw_errors
3327
- package_api_docs
34-
- prefer_asserts_in_initializer_lists
3528
- prefer_const_constructors
3629
- prefer_const_declarations
3730
- prefer_expression_function_bodies
3831
- prefer_final_locals
3932
- prefer_relative_imports
40-
- prefer_single_quotes
4133
- sort_child_properties_last
42-
- sort_pub_dependencies
4334
- test_types_in_equals
44-
- throw_in_finally
45-
- type_annotate_public_apis
46-
- unawaited_futures
47-
- unnecessary_lambdas
4835
- unnecessary_library_directive
49-
- unnecessary_parenthesis
50-
- unnecessary_statements
5136
- unreachable_from_main
5237
- unsafe_html
5338
- use_full_hex_values_for_flutter_colors
54-
- use_is_even_rather_than_modulo
5539
- use_string_buffers
5640
- use_string_in_part_of_directives
5741
- use_super_parameters

checked_yaml/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ dependencies:
1616
dev_dependencies:
1717
build_runner: ^2.0.0
1818
build_verify: ^3.0.0
19+
dart_flutter_team_lints: ^0.1.0
1920
json_serializable: ^6.0.0
20-
lints: ^2.0.0
2121
path: ^1.0.0
2222
test: ^1.16.0
2323
test_process: ^2.0.0

example/pubspec.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ dev_dependencies:
1818
# Used by tests. Not required to use `json_serializable`.
1919
build_verify: ^3.0.0
2020

21+
# Not required to use `json_serializable`.
22+
dart_flutter_team_lints: ^0.1.0
23+
2124
# REQUIRED!
2225
json_serializable: ^6.6.0
2326

2427
# Not required to use `json_serializable`.
25-
lints: ^2.0.0
2628
path: ^1.8.0
2729
test: ^1.16.0
2830

json_annotation/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
meta: ^1.4.0
1313

1414
dev_dependencies:
15-
lints: ^2.0.0
15+
dart_flutter_team_lints: ^0.1.0
1616
# When changing JsonSerializable class.
1717
# build_runner: ^2.0.0
1818
# json_serializable: any

json_serializable/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ dev_dependencies:
2929
path: ../shared_test
3030
build_runner: ^2.0.0
3131
build_verify: ^3.0.0
32+
dart_flutter_team_lints: ^0.1.0
3233
dart_style: ^2.0.0
33-
lints: ^2.0.0
3434
logging: ^1.0.0
3535
source_gen_test: ^1.0.0
3636
test: ^1.16.0

shared_test/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ dependencies:
88
test: ^1.6.0
99

1010
dev_dependencies:
11-
lints: ^2.0.0
11+
dart_flutter_team_lints: ^0.1.0

0 commit comments

Comments
 (0)