From a7f19e6a96fe7f0393c07f5f6ae0fdf7060b8ddf Mon Sep 17 00:00:00 2001 From: Pascal Welsch Date: Mon, 16 Sep 2019 14:38:50 +0200 Subject: [PATCH] Release for Dart 2.4 --- CHANGELOG.md | 9 ++++++++- lib/analysis_options.yaml | 11 ++++------- pubspec.yaml | 4 ++-- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae640ba..ac707ea 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,15 @@ # Changlog +## 0.2.2 + +- Release for Dart 2.4 enables + - `prefer_if_null_operators` + - `sort_child_properties_last` + - `unsafe_html` + ## 0.2.1 -- Release for Dart 2.3. Enables +- Release for Dart 2.3 enables - `prefer_for_elements_to_map_fromIterable` - `prefer_if_elements_to_conditional_expressions` - `prefer_inlined_adds` diff --git a/lib/analysis_options.yaml b/lib/analysis_options.yaml index 6f65aac..2cf0fe5 100755 --- a/lib/analysis_options.yaml +++ b/lib/analysis_options.yaml @@ -115,7 +115,7 @@ linter: # Don't call print in production code # https://dart-lang.github.io/linter/lints/avoid_print.html - # dart 2.3 incompatible + # dart 2.4 incompatible #- avoid_print # Always prefer function references over typedefs. @@ -467,8 +467,7 @@ linter: # Dart has a special operator for this, use it # https://dart-lang.github.io/linter/lints/prefer_if_null_operators.html - # dart 2.3 incompatible - #- prefer_if_null_operators + - prefer_if_null_operators # Terser code # https://dart-lang.github.io/linter/lints/prefer_initializing_formals.html @@ -541,8 +540,7 @@ linter: # Flutter only, always put child last # https://dart-lang.github.io/linter/lints/sort_child_properties_last.html - # dart 2.3 incompatible - #- sort_child_properties_last + - sort_child_properties_last # Might not be perfect but results in consistent code # https://dart-lang.github.io/linter/lints/sort_constructors_first.html @@ -644,8 +642,7 @@ linter: # Web only # https://dart-lang.github.io/linter/lints/unsafe_html.html - # dart 2.3 incompatible - #- unsafe_html + - unsafe_html # Use rethrow to preserve the original stacktrace. # https://dart.dev/guides/language/effective-dart/usage#do-use-rethrow-to-rethrow-a-caught-exception diff --git a/pubspec.yaml b/pubspec.yaml index e7a9ba9..26fd397 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,8 +1,8 @@ name: lint -version: 0.2.1 +version: 0.2.2 description: An opiniated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter author: Pascal Welsch homepage: https://github.com/passsy/dart-lint environment: - sdk: '>=2.3.0 <2.4.0' + sdk: '>=2.4.0 <2.5.0'