From 9a7fbd21cb14a477d758e561b56bb114ef339b69 Mon Sep 17 00:00:00 2001 From: vxern Date: Wed, 4 Jan 2023 00:31:55 +0000 Subject: [PATCH] feat: Bump SDK version to `2.18.0` and add new lints. --- CHANGELOG.md | 8 ++++++++ example/pubspec.yaml | 4 ++-- lib/core.yaml | 3 +++ pubspec.yaml | 4 ++-- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a2f5eb..bf5ab94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.2.0 + +- Added: (Added together with Dart `2.18.0` in linter version `1.25.0`) + - Core: + - `discarded_futures` + - `unnecessary_null_aware_operator_on_extension_on_nullable` + - `unnecessary_to_list_in_spreads` + ## 0.1.1 - Added: (Added together with Dart `2.17.0` in linter version `1.22.0`) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3ea23bd..5255aae 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,7 +6,7 @@ version: 0.0.1 description: This is a sample project that uses the 'words' lint ruleset. environment: - sdk: '>=2.17.0 <3.0.0' + sdk: '>=2.18.0 <3.0.0' dev_dependencies: - words: ^0.1.1 \ No newline at end of file + words: ^0.2.0 \ No newline at end of file diff --git a/lib/core.yaml b/lib/core.yaml index a71ce66..63af301 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -17,6 +17,7 @@ linter: - close_sinks - comment_references - control_flow_in_finally + - discarded_futures - empty_statements - hash_and_equals - invariant_booleans @@ -157,6 +158,7 @@ linter: - unnecessary_late - unnecessary_new - unnecessary_null_aware_assignments + - unnecessary_null_aware_operator_on_extension_on_nullable - unnecessary_null_checks - unnecessary_null_in_if_null_operators - unnecessary_nullable_for_final_variable_declarations @@ -166,6 +168,7 @@ linter: - unnecessary_string_escapes - unnecessary_string_interpolations - unnecessary_this + - unnecessary_to_list_in_spreads - use_enums - use_function_type_syntax_for_parameters - use_if_null_to_convert_nulls_to_bools diff --git a/pubspec.yaml b/pubspec.yaml index 2fbdd75..1138381 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: words -version: 0.1.1 +version: 0.2.0 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.17.0 <3.0.0' + sdk: '>=2.18.0 <3.0.0'