Skip to content

Commit a7f19e6

Browse files
committed
Release for Dart 2.4
1 parent f0907b4 commit a7f19e6

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Changlog
22

3+
## 0.2.2
4+
5+
- Release for Dart 2.4 enables
6+
- `prefer_if_null_operators`
7+
- `sort_child_properties_last`
8+
- `unsafe_html`
9+
310
## 0.2.1
411

5-
- Release for Dart 2.3. Enables
12+
- Release for Dart 2.3 enables
613
- `prefer_for_elements_to_map_fromIterable`
714
- `prefer_if_elements_to_conditional_expressions`
815
- `prefer_inlined_adds`

lib/analysis_options.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ linter:
115115

116116
# Don't call print in production code
117117
# https://dart-lang.github.io/linter/lints/avoid_print.html
118-
# dart 2.3 incompatible
118+
# dart 2.4 incompatible
119119
#- avoid_print
120120

121121
# Always prefer function references over typedefs.
@@ -467,8 +467,7 @@ linter:
467467

468468
# Dart has a special operator for this, use it
469469
# https://dart-lang.github.io/linter/lints/prefer_if_null_operators.html
470-
# dart 2.3 incompatible
471-
#- prefer_if_null_operators
470+
- prefer_if_null_operators
472471

473472
# Terser code
474473
# https://dart-lang.github.io/linter/lints/prefer_initializing_formals.html
@@ -541,8 +540,7 @@ linter:
541540

542541
# Flutter only, always put child last
543542
# https://dart-lang.github.io/linter/lints/sort_child_properties_last.html
544-
# dart 2.3 incompatible
545-
#- sort_child_properties_last
543+
- sort_child_properties_last
546544

547545
# Might not be perfect but results in consistent code
548546
# https://dart-lang.github.io/linter/lints/sort_constructors_first.html
@@ -644,8 +642,7 @@ linter:
644642

645643
# Web only
646644
# https://dart-lang.github.io/linter/lints/unsafe_html.html
647-
# dart 2.3 incompatible
648-
#- unsafe_html
645+
- unsafe_html
649646

650647
# Use rethrow to preserve the original stacktrace.
651648
# https://dart.dev/guides/language/effective-dart/usage#do-use-rethrow-to-rethrow-a-caught-exception

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: lint
2-
version: 0.2.1
2+
version: 0.2.2
33
description: An opiniated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
44
author: Pascal Welsch <[email protected]>
55
homepage: https://github.com/passsy/dart-lint
66

77
environment:
8-
sdk: '>=2.3.0 <2.4.0'
8+
sdk: '>=2.4.0 <2.5.0'

0 commit comments

Comments
 (0)