diff --git a/CHANGELOG.md b/CHANGELOG.md index a4adef4..0d0f53e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +## 0.4.0 + +- Add: + - Core: (Added together with Dart `3.0.0` in linter version `1.35.0`) + - `implicit_reopen` + - `unnecessary_breaks` + - `type_literal_in_constant_pattern` + - `invalid_case_patterns` + - Core: (Missing) + - `unawaited_futures` +- Remove: + - Core: (Removed in linter version `1.35.0`) + - `enable_null_safety` + - `invariant_booleans` + - Core: (Annoying) + - `avoid_catching_errors` (There are valid reasons to catch `TypeError`, for + example) + - `directives_ordering` (Some people may arrange their imports differently) + ## 0.3.2 - Relicense package as `MIT` from `AGPL-3.0`. diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 6c18748..6280679 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.19.0 <4.0.0' + sdk: '>=3.0.0 <4.0.0' dev_dependencies: - words: ^0.3.2 \ No newline at end of file + words: ^0.4.0 \ No newline at end of file diff --git a/lib/core.yaml b/lib/core.yaml index 2430954..f71861b 100644 --- a/lib/core.yaml +++ b/lib/core.yaml @@ -22,7 +22,8 @@ linter: - discarded_futures - empty_statements - hash_and_equals - - invariant_booleans + - implicit_reopen + - invalid_case_patterns - iterable_contains_unrelated_type - list_remove_unrelated_type - literal_only_boolean_expressions @@ -44,7 +45,6 @@ linter: - annotate_overrides - avoid_bool_literals_in_conditional_expressions - avoid_catches_without_on_clauses - - avoid_catching_errors - avoid_classes_with_only_static_members - avoid_double_and_int_checks - avoid_equals_and_hash_code_on_mutable_classes @@ -80,11 +80,9 @@ linter: - curly_braces_in_flow_control_structures - dangling_library_doc_comments - deprecated_consistency - - directives_ordering - do_not_use_environment - empty_catches - empty_constructor_bodies - - enable_null_safety - eol_at_end_of_file - exhaustive_cases - file_names @@ -157,8 +155,11 @@ linter: - tighten_type_of_initializing_formals - type_annotate_public_apis - type_init_formals + - type_literal_in_constant_pattern + - unawaited_futures - unnecessary_await_in_return - unnecessary_brace_in_string_interps + - unnecessary_breaks - unnecessary_const - unnecessary_getters_setters # You tell 'em (C#, Java), Dart! - unnecessary_lambdas diff --git a/pubspec.yaml b/pubspec.yaml index 6a97b79..a37301b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: words -version: 0.3.2 +version: 0.4.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.19.0 <4.0.0' + sdk: '>=3.0.0 <4.0.0'