Skip to content

Commit

Permalink
feat: Add lints introduced in linter version 1.22.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Jul 6, 2022
1 parent 1ad0367 commit 87644f8
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 11 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
## 0.1.1

- Added: (Added together with Dart `2.17.0` in linter version `1.22.0`)
- Core:
- `use_enums`
- `use_super_parameters`
- Flutter:
- `use_colored_box`

## 0.1.0+1

- Removed: (These were added in Linter `1.22.0`, which isn't yet featured in the
stable Dart SDK channel)
- Removed: (These were added in linter version `1.22.0`, which isn't yet
featured in the stable Dart SDK channel)
- `use_enums`
- `use_super_parameters`

## 0.1.0

- Added: (Added together with Dart `2.16.0` in Linter `1.18.0`)
- Added: (Added together with Dart `2.16.0` in linter version `1.18.0`)
- Core:
- `avoid_final_parameters`
- `conditional_uri_does_not_exist`
Expand Down
2 changes: 1 addition & 1 deletion example/EXAMPLE.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This example project uses the core ruleset.
This example project uses the core lint ruleset.
6 changes: 3 additions & 3 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ publish_to: none
name: using_words
version: 0.0.1

description: This is a sample project which uses the 'words' lint ruleset.
description: This is a sample project that uses the 'words' lint ruleset.

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: '>=2.17.0 <3.0.0'

dev_dependencies:
words: ^0.0.2+1
words: ^0.1.1
4 changes: 3 additions & 1 deletion lib/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ linter:
- unnecessary_string_escapes
- unnecessary_string_interpolations
- unnecessary_this
- use_enums
- use_function_type_syntax_for_parameters
- use_if_null_to_convert_nulls_to_bools
- use_is_even_rather_than_modulo
Expand All @@ -175,6 +176,7 @@ linter:
- use_rethrow_when_possible
- use_setters_to_change_properties
- use_string_buffers
- use_super_parameters
- use_test_throws_matchers
- use_to_and_as_if_applicable
- void_checks
Expand All @@ -183,4 +185,4 @@ linter:
- depend_on_referenced_packages
- package_names
- secure_pubspec_urls
- sort_pub_dependencies
- sort_pub_dependencies
2 changes: 1 addition & 1 deletion lib/flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ linter:
- sized_box_for_whitespace
- sized_box_shrink_expand
- sort_child_properties_last
- use_colored_box
- use_decorated_box
- use_full_hex_values_for_flutter_colors

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.0+1
version: 0.1.1

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.16.2 <3.0.0'
sdk: '>=2.17.0 <3.0.0'

0 comments on commit 87644f8

Please sign in to comment.