Skip to content

Commit

Permalink
Update to package:lints v3 (#5267)
Browse files Browse the repository at this point in the history
I'll likely refactor these examples to share an analysis package, but
for now, updates to lints v3.
  • Loading branch information
parlough authored Oct 20, 2023
1 parent dee099e commit 09e96b8
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 30 deletions.
2 changes: 1 addition & 1 deletion examples/analysis/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dependencies:
examples_util: {path: ../util}

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
2 changes: 1 addition & 1 deletion examples/analysis_alt/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
7 changes: 0 additions & 7 deletions examples/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ linter:
- always_declare_return_types
- cancel_subscriptions
- close_sinks
- collection_methods_unrelated_type
- combinators_ordering
- comment_references
- dangling_library_doc_comments
- implicit_call_tearoffs
- invalid_case_patterns
- library_annotations
- one_member_abstracts
Expand All @@ -28,12 +25,8 @@ linter:
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
- type_literal_in_constant_pattern
- unawaited_futures
- unnecessary_breaks
- unnecessary_library_directive
- unnecessary_null_aware_operator_on_extension_on_nullable
- unnecessary_to_list_in_spreads
- use_enums
- use_string_in_part_of_directives
- use_super_parameters
2 changes: 1 addition & 1 deletion examples/async_await/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ dependencies:
examples_util: {path: ../util}

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/build_runner_usage/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ dev_dependencies:
args: ^2.4.0
build_runner: ^2.4.6
build_test: ^2.2.0
lints: ^2.1.0
lints: ^3.0.0
2 changes: 1 addition & 1 deletion examples/concurrency/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/create_libraries/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/extension_methods/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/fetch_data/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies:
http: ^1.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
2 changes: 1 addition & 1 deletion examples/futures/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ dependencies:
examples_util: {path: ../util}

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/html/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
examples_util: {path: ../util}
2 changes: 1 addition & 1 deletion examples/iterables/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ environment:

dev_dependencies:
examples_util: {path: ../util}
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/language/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ dependencies:
examples_util: { path: ../util }

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/misc/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ dependencies:
examples_util: { path: ../util }

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/non_promotion/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ environment:
sdk: ^3.1.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
2 changes: 1 addition & 1 deletion examples/null_safety_codelab/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ environment:

dev_dependencies:
examples_util: {path: ../util}
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/type_system/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ dependencies:
examples_util: {path: ../util}

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
2 changes: 1 addition & 1 deletion examples/util/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies:
test: ^1.24.6

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
2 changes: 1 addition & 1 deletion examples/vector_victor/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ environment:
# path: ^1.8.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6

dependencies:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dev_dependencies:
code_excerpter:
path: site-shared/packages/code_excerpter
linkcheck: ^3.0.0
lints: ^2.1.0
lints: ^3.0.0
6 changes: 3 additions & 3 deletions src/tools/analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,12 @@ linter:
- always_declare_return_types
- cancel_subscriptions
- close_sinks
- collection_methods_unrelated_type
- combinators_ordering
- comment_references
- dangling_library_doc_comments
- implicit_call_tearoffs
- invalid_case_patterns
- library_annotations
- one_member_abstracts
- only_throw_errors
```


Expand Down
2 changes: 1 addition & 1 deletion src/tutorials/libraries/shared-pkgs.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ environment:
# path: ^1.8.0

dev_dependencies:
lints: ^2.1.0
lints: ^3.0.0
test: ^1.24.6
```
Expand Down

0 comments on commit 09e96b8

Please sign in to comment.