Skip to content

Commit 3d1b1b2

Browse files
authored
refactor: update linting rules
Closes #162
1 parent 935f1fd commit 3d1b1b2

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- update linting rules —
13+
[162](https://github.com/dartoos-dev/json_cache/issues/154).
14+
15+
1016
## [3.0.2] - 2024-08-19
1117

1218
### Changed

analysis_options.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
include: package:lint/package.yaml
22

33
analyzer:
4-
strong-mode:
5-
implicit-casts: false
6-
4+
exclude:
5+
- '**.freezed.dart'
6+
- '**.g.dart'
77
linter:
88
rules:
99
# Make constructors the first thing in every class
10+
sort_unnamed_constructors_first: true
1011
sort_constructors_first: true
12+
avoid_catches_without_on_clauses: true
13+
avoid_equals_and_hash_code_on_mutable_classes: true
14+
cancel_subscriptions: true
1115
# Good packages document everything
1216
public_member_api_docs: true
13-
always_declare_return_types: true
14-
cancel_subscriptions: true
15-
close_sinks: true
16-
only_throw_errors: true
17-
package_api_docs: true
17+
package_api_docs: true

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ dev_dependencies:
2222
flutter_test:
2323
sdk: flutter
2424
hive_test: ^1.0.1
25-
lint: ^2.0.1
25+
lint: ^2.3.0
2626
mocktail: ^1.0.0
2727
test: ^1.24.9

0 commit comments

Comments
 (0)