Skip to content

Commit

Permalink
Release for Dart 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Sep 16, 2019
1 parent f0907b4 commit a7f19e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
11 changes: 4 additions & 7 deletions lib/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/passsy/dart-lint

environment:
sdk: '>=2.3.0 <2.4.0'
sdk: '>=2.4.0 <2.5.0'

0 comments on commit a7f19e6

Please sign in to comment.