Skip to content

Commit

Permalink
Add dart 3.2 lint rule (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
robiness authored Nov 7, 2023
1 parent e2088be commit 3b7b49c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.3.0

Requires Dart `sdk: '>=3.2.0'`

- Enable [`annotate_redeclares`](https://dart.dev/tools/linter-rules/annotate_redeclares.html)

## 2.2.0

Requires Dart `sdk: '>=3.1.0'`
Expand Down
7 changes: 7 additions & 0 deletions lib/casual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ linter:
# http://dart-lang.github.io/linter/lints/annotate_overrides.html
- annotate_overrides

# Annotate redeclared members. Experimental.
#
# Dart SDK: >= 3.2.0
#
# https://dart.dev/tools/linter-rules/annotate_redeclares.html
- annotate_redeclares

# All methods should define a return type. dynamic is no exception.
# Violates Effective Dart "PREFER annotating with dynamic instead of letting inference fail"
#
Expand Down
7 changes: 7 additions & 0 deletions lib/strict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ linter:
# http://dart-lang.github.io/linter/lints/annotate_overrides.html
- annotate_overrides

# Annotate redeclared members. Experimental.
#
# Dart SDK: >= 3.2.0
#
# https://dart.dev/tools/linter-rules/annotate_redeclares.html
- annotate_redeclares

# All methods should define a return type. dynamic is no exception.
# Violates Effective Dart "PREFER annotating with dynamic instead of letting inference fail"
#
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: lint
version: 2.2.0
version: 2.3.0
description: An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
repository: https://github.com/passsy/dart-lint
issue_tracker: https://github.com/passsy/dart-lint/issues
topics:
- lint

environment:
sdk: '>=3.1.0 <4.0.0'
sdk: '>=3.2.0 <4.0.0'

0 comments on commit 3b7b49c

Please sign in to comment.