diff --git a/CHANGELOG.md b/CHANGELOG.md index eb39ceb..68f3629 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.9.0 +* Update minimum Dart SDK version to 3.5 +* Add lints: + * [`document_ignores`](https://dart.dev/tools/linter-rules/document_ignores) + * [`invalid_runtime_check_with_js_interop_types`](https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types) + * [`unnecessary_library_name`](https://dart.dev/tools/linter-rules/unnecessary_library_name) + ## 1.8.1 * Remove lints: * [`unintended_html_in_doc_comment`](https://dart.dev/tools/linter-rules/unintended_html_in_doc_comment) diff --git a/README.md b/README.md index 5c8e38e..d0af10b 100644 --- a/README.md +++ b/README.md @@ -5,25 +5,29 @@ This package contains a recommended set of lints for Flutter apps, packages, and ## Install Add `carapacik_lints` as dev dependency to your `pubspec.yaml`. + ```yaml dev_dependencies: - carapacik_lints: ^1.8.1 + carapacik_lints: ^1.9.0 ``` Create an `analysis_options.yaml` file at the root of the project with the following content: + ```yaml include: package:carapacik_lints/core.yaml ``` ## Package versions table -| Flutter | Dart | Package | -|:--------|:-------|:--------| -| 2.10.x | 2.16.x | 1.0.8 | -| 3.0.x | 2.17.x | 1.1.7 | -| 3.3.x | 2.18.x | 1.2.3 | -| 3.7.x | 2.19.x | 1.3.2 | -| 3.10.x | 3.0.x | 1.4.2 | -| 3.13.x | 3.1.x | 1.5.1 | -| 3.16.x | 3.2.x | 1.6.0 | -| 3.19.x | 3.3.x | 1.7.0 | -| 3.22.x | 3.4.x | 1.8.1 | + +| Flutter | Dart | Package | +|:-------:|:------:|:-------:| +| 2.10.x | 2.16.x | 1.0.8 | +| 3.0.x | 2.17.x | 1.1.7 | +| 3.3.x | 2.18.x | 1.2.3 | +| 3.7.x | 2.19.x | 1.3.2 | +| 3.10.x | 3.0.x | 1.4.2 | +| 3.13.x | 3.1.x | 1.5.1 | +| 3.16.x | 3.2.x | 1.6.0 | +| 3.19.x | 3.3.x | 1.7.0 | +| 3.22.x | 3.4.x | 1.8.1 | +| 3.24.x | 3.5.x | 1.9.0 | diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 192d637..839477f 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -2,7 +2,7 @@ name: example description: A project that showcases how to enable lints for Flutter apps. publish_to: none environment: - sdk: ^3.4.0 + sdk: ^3.5.0 dev_dependencies: - carapacik_lints: ^1.8.1 + carapacik_lints: ^1.9.0 diff --git a/lib/carapacik_lints.dart b/lib/carapacik_lints.dart index 3590117..f29a51f 100644 --- a/lib/carapacik_lints.dart +++ b/lib/carapacik_lints.dart @@ -4,11 +4,11 @@ /// 1. Add it to your dev_dependencies /// ```yaml /// dev_dependencies: -/// carapacik_lints: ^1.8.1 +/// carapacik_lints: ^1.9.0 /// ``` /// /// 2. Include the rules into your `analysis_options.yaml` /// ```yaml /// include: package:carapacik_lints/core.yaml /// ``` -library carapacik_lints; +library; diff --git a/lib/core.yaml b/lib/core.yaml index 7eaac11..f0bce2f 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -39,6 +39,7 @@ linter: - hash_and_equals - implicit_reopen - invalid_case_patterns + - invalid_runtime_check_with_js_interop_types - literal_only_boolean_expressions - missing_code_block_language_in_doc_comment - no_adjacent_strings_in_list @@ -49,6 +50,7 @@ linter: - prefer_void_to_null - test_types_in_equals - throw_in_finally + - unintended_html_in_doc_comment - unnecessary_statements - unrelated_type_equality_checks - unsafe_html @@ -102,6 +104,7 @@ linter: - dangling_library_doc_comments - deprecated_consistency - directives_ordering + - document_ignores - empty_catches - empty_constructor_bodies - eol_at_end_of_file diff --git a/pubspec.yaml b/pubspec.yaml index 60ea839..e3cf137 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: carapacik_lints description: The most necessary lints for Flutter to encourage good coding practices -version: 1.8.1 +version: 1.9.0 repository: https://github.com/Carapacik/carapacik_lints topics: - analysis @@ -8,4 +8,4 @@ topics: - lints - linter environment: - sdk: ^3.4.0 + sdk: ^3.5.0