Skip to content

Commit

Permalink
feat: Bump SDK version to 3.0.0 and add lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed May 13, 2023
1 parent 2badc97 commit 03f5cae
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
words: ^0.4.0
9 changes: 5 additions & 4 deletions lib/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'

0 comments on commit 03f5cae

Please sign in to comment.