Skip to content

Commit 8677785

Browse files
committed
style: stricter linting rules
Closes #48
1 parent c131803 commit 8677785

10 files changed

+16
-17
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Changed
11+
12+
- stricter linting rules — [48](https://github.com/dartoos-dev/json_cache/issues/48).
13+
- bump up dependencies — [49](https://github.com/dartoos-dev/json_cache/issues/49).
14+
1015
## [0.3.4] - 2021-08-26
1116

1217
### Added

lib/src/json_cache_cross_local_storage.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import 'dart:convert';
22

33
import 'package:cross_local_storage/cross_local_storage.dart';
4-
5-
import 'json_cache.dart';
4+
import 'package:json_cache/json_cache.dart';
65

76
/// [JsonCache] on top of the Cross Local Storage package.
87
///

lib/src/json_cache_enc_prefs.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'dart:convert';
22

33
import 'package:encrypted_shared_preferences/encrypted_shared_preferences.dart';
44

5-
import 'json_cache.dart';
5+
import 'package:json_cache/json_cache.dart';
66

77
/// Shared Preferences as encrypted values.
88
///

lib/src/json_cache_hollow.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'json_cache.dart';
1+
import 'package:json_cache/json_cache.dart';
22

33
/// Hollow (empty) [JsonCache] — It is intended to serve as a placeholder for
44
/// [JsonCache] instances.
@@ -13,8 +13,7 @@ import 'json_cache.dart';
1313
/// > - a hollow tube
1414
/// > - Hollow blocks are used because they are lighter
1515
/// > - a hollow log
16-
/// > — [Cambridge
17-
/// Dictionary](https://dictionary.cambridge.org/dictionary/english/hollow)
16+
/// > — [Cambridge Dictionary](https://dictionary.cambridge.org/dictionary/english/hollow)
1817
class JsonCacheHollow implements JsonCache {
1918
/// This const constructor ensures that there will be only one
2019
/// [JsonCacheHollow] instance throughout the program.

lib/src/json_cache_local_storage.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import 'package:json_cache/json_cache.dart';
12
import 'package:localstorage/localstorage.dart';
23

3-
import 'json_cache.dart';
4-
54
/// Implementation on top of the LocalStorage package.
65
///
76
/// See: [local storage](https://pub.dev/packages/localstorage)

lib/src/json_cache_mem.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import 'dart:async';
22

3+
import 'package:json_cache/json_cache.dart';
34
import 'package:mutex/mutex.dart';
45

5-
import 'json_cache.dart';
6-
import 'json_cache_hollow.dart';
7-
86
// ignore_for_file: prefer_void_to_null
97

108
/// [JsonCacheMem.init] initialization error callback.

lib/src/json_cache_prefs.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import 'dart:convert';
22

3+
import 'package:json_cache/json_cache.dart';
34
import 'package:shared_preferences/shared_preferences.dart';
45

5-
import 'json_cache.dart';
6-
76
/// Persistent preferences file cache.
87
class JsonCachePrefs implements JsonCache {
98
/// [_prefs] a [SharedPreferences] instance.

lib/src/json_cache_wrap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'json_cache.dart';
1+
import 'package:json_cache/json_cache.dart';
22

33
/// Decorator Envelope of [JsonCache].
44
///

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ packages:
141141
name: lint
142142
url: "https://pub.dartlang.org"
143143
source: hosted
144-
version: "1.6.0"
144+
version: "1.8.1"
145145
localstorage:
146146
dependency: "direct main"
147147
description:
@@ -372,5 +372,5 @@ packages:
372372
source: hosted
373373
version: "0.2.0"
374374
sdks:
375-
dart: ">=2.14.0 <3.0.0"
375+
dart: ">=2.15.0-7.0.dev <3.0.0"
376376
flutter: ">=2.5.0"

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ dependencies:
2020
dev_dependencies:
2121
flutter_test:
2222
sdk: flutter
23-
lint: ^1.6.0
23+
lint: ^1.8.1

0 commit comments

Comments
 (0)