From 8f5e3969df9a3f5f368b0841c93c58099fc6e133 Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 16 Aug 2024 16:05:20 +0900 Subject: [PATCH 1/5] Delete removed lint --- lib/analysis_options.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index c90388d..4e098ee 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -26,8 +26,6 @@ linter: - avoid_positional_boolean_parameters - avoid_private_typedef_functions - avoid_redundant_argument_values - # deprecated: https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html - # - avoid_returning_null_for_future - avoid_returning_this - avoid_setters_without_getters - avoid_slow_async_io From 56c5c92b6a105e3091a46a7d2bd98843e619389a Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 16 Aug 2024 16:05:35 +0900 Subject: [PATCH 2/5] Bump version --- example/pubspec.yaml | 2 +- pubspec.lock | 10 +++++----- pubspec.yaml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 903488a..ba3a8c4 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -3,7 +3,7 @@ description: A example of pedantic_mono. version: 1.0.0 publish_to: none environment: - sdk: ^3.3.0 + sdk: ^3.5.0 dependencies: flutter: diff --git a/pubspec.lock b/pubspec.lock index 36c5a34..c3eb442 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: "direct main" description: name: flutter_lints - sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7 + sha256: "3f41d009ba7172d5ff9be5f6e6e6abb4300e263aab8866d2a0842ed2a70f8f0c" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "4.0.0" glob: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: lints - sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 + sha256: "976c774dd944a42e83e2467f4cc670daef7eed6295b10b36ae8c85bcbf828235" url: "https://pub.dev" source: hosted - version: "3.0.0" + version: "4.0.0" meta: dependency: transitive description: @@ -146,4 +146,4 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.4.0 <4.0.0" + dart: ">=3.5.0 <4.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index f78ba20..8663f10 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,10 +6,10 @@ funding: - https://github.com/sponsors/mono0926 environment: - sdk: ^3.4.0 + sdk: ^3.5.0 dependencies: - flutter_lints: ^3.0.0 + flutter_lints: ^4.0.0 dev_dependencies: grinder: From 3cb7f81f9a7b77416f1b81613e0a24c2331d9329 Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 16 Aug 2024 16:06:48 +0900 Subject: [PATCH 3/5] Remove duplicated lints --- lib/analysis_options.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 4e098ee..4921c07 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -83,7 +83,6 @@ linter: - unnecessary_breaks - unnecessary_lambdas - unnecessary_library_directive - - unnecessary_library_name - unnecessary_null_aware_operator_on_extension_on_nullable - unnecessary_null_checks - unnecessary_parenthesis From e0ab7dbd7e3d224ba5e4a9c496169b4d6ceef502 Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 16 Aug 2024 16:12:21 +0900 Subject: [PATCH 4/5] Add new lits --- CHANGELOG.md | 7 +++++++ lib/analysis_options.yaml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b51185c..16394fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.28.0 + +- Change minimum Dart version to ^3.5.0 🎯 +- Add `invalid_runtime_check_with_js_interop_types` +- Add `unintended_html_in_doc_comment` +- Remove duplicated lints + ## 1.27.0 - Change minimum Dart version to ^3.4.0 🎯 diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 4921c07..1e25023 100644 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -43,10 +43,12 @@ linter: # - discarded_futures # - do_not_use_environment # - enable_null_safety + # - document_ignores - eol_at_end_of_file - flutter_style_todos - implicit_reopen - invalid_case_patterns + - invalid_runtime_check_with_js_interop_types - join_return_with_assignment - lines_longer_than_80_chars - literal_only_boolean_expressions @@ -79,6 +81,7 @@ linter: - tighten_type_of_initializing_formals - type_annotate_public_apis - unawaited_futures + - unintended_html_in_doc_comment - unnecessary_await_in_return - unnecessary_breaks - unnecessary_lambdas From 4e48f89b6c3624a6b0a31f6f1de62560f77e520b Mon Sep 17 00:00:00 2001 From: mono Date: Fri, 16 Aug 2024 16:12:58 +0900 Subject: [PATCH 5/5] Bump --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 8663f10..fa2a3c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: pedantic_mono description: '[mono edition] Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices.' -version: 1.27.0 +version: 1.28.0 repository: https://github.com/mono0926/pedantic_mono funding: - https://github.com/sponsors/mono0926