Skip to content

Commit

Permalink
feat: Bump SDK version to 2.18.0 and add new lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jan 4, 2023
1 parent 87644f8 commit 9a7fbd2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`)
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.17.0 <3.0.0'
sdk: '>=2.18.0 <3.0.0'

dev_dependencies:
words: ^0.1.1
words: ^0.2.0
3 changes: 3 additions & 0 deletions lib/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ linter:
- close_sinks
- comment_references
- control_flow_in_finally
- discarded_futures
- empty_statements
- hash_and_equals
- invariant_booleans
Expand Down Expand Up @@ -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
Expand All @@ -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
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.1.1
version: 0.2.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.17.0 <3.0.0'
sdk: '>=2.18.0 <3.0.0'

0 comments on commit 9a7fbd2

Please sign in to comment.