From 87644f8e2a0c2c1200fff1c2e8167721da9ad9f0 Mon Sep 17 00:00:00 2001 From: vxern Date: Wed, 6 Jul 2022 21:21:14 +0100 Subject: [PATCH] feat: Add lints introduced in linter version `1.22.0`. --- CHANGELOG.md | 15 ++++++++++++--- example/EXAMPLE.md | 2 +- example/pubspec.yaml | 6 +++--- lib/core.yaml | 4 +++- lib/flutter.yaml | 2 +- pubspec.yaml | 4 ++-- 6 files changed, 22 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5c108a..6a2f5eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,22 @@ +## 0.1.1 + +- Added: (Added together with Dart `2.17.0` in linter version `1.22.0`) + - Core: + - `use_enums` + - `use_super_parameters` + - Flutter: + - `use_colored_box` + ## 0.1.0+1 -- Removed: (These were added in Linter `1.22.0`, which isn't yet featured in the - stable Dart SDK channel) +- Removed: (These were added in linter version `1.22.0`, which isn't yet + featured in the stable Dart SDK channel) - `use_enums` - `use_super_parameters` ## 0.1.0 -- Added: (Added together with Dart `2.16.0` in Linter `1.18.0`) +- Added: (Added together with Dart `2.16.0` in linter version `1.18.0`) - Core: - `avoid_final_parameters` - `conditional_uri_does_not_exist` diff --git a/example/EXAMPLE.md b/example/EXAMPLE.md index 3ceaf7b..f9a356e 100644 --- a/example/EXAMPLE.md +++ b/example/EXAMPLE.md @@ -1 +1 @@ -This example project uses the core ruleset. \ No newline at end of file +This example project uses the core lint ruleset. \ No newline at end of file diff --git a/example/pubspec.yaml b/example/pubspec.yaml index e237e95..3ea23bd 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -3,10 +3,10 @@ publish_to: none name: using_words version: 0.0.1 -description: This is a sample project which uses the 'words' lint ruleset. +description: This is a sample project that uses the 'words' lint ruleset. environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=2.17.0 <3.0.0' dev_dependencies: - words: ^0.0.2+1 \ No newline at end of file + words: ^0.1.1 \ No newline at end of file diff --git a/lib/core.yaml b/lib/core.yaml index 65d8376..a71ce66 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -166,6 +166,7 @@ linter: - unnecessary_string_escapes - unnecessary_string_interpolations - unnecessary_this + - use_enums - use_function_type_syntax_for_parameters - use_if_null_to_convert_nulls_to_bools - use_is_even_rather_than_modulo @@ -175,6 +176,7 @@ linter: - use_rethrow_when_possible - use_setters_to_change_properties - use_string_buffers + - use_super_parameters - use_test_throws_matchers - use_to_and_as_if_applicable - void_checks @@ -183,4 +185,4 @@ linter: - depend_on_referenced_packages - package_names - secure_pubspec_urls - - sort_pub_dependencies \ No newline at end of file + - sort_pub_dependencies diff --git a/lib/flutter.yaml b/lib/flutter.yaml index 9d4a228..e965f6e 100644 --- a/lib/flutter.yaml +++ b/lib/flutter.yaml @@ -14,6 +14,6 @@ linter: - sized_box_for_whitespace - sized_box_shrink_expand - sort_child_properties_last + - use_colored_box - use_decorated_box - use_full_hex_values_for_flutter_colors - \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 894b0d1..2fbdd75 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: words -version: 0.1.0+1 +version: 0.1.1 description: >- A curated collection of lints for use by Dart packages to ensure @@ -11,4 +11,4 @@ repository: https://github.com/wordcollector/words issue_tracker: https://github.com/wordcollector/words/issues environment: - sdk: '>=2.16.2 <3.0.0' + sdk: '>=2.17.0 <3.0.0'