Skip to content

Commit fcdcdf3

Browse files
committed
Upgrade linting for all packages in a non-breaking manner
1 parent 7cd7ab5 commit fcdcdf3

File tree

14 files changed

+21
-25
lines changed

14 files changed

+21
-25
lines changed

packages/functions_client/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies:
1313
yet_another_json_isolate: 2.0.1
1414

1515
dev_dependencies:
16-
lints: ^2.1.1
16+
lints: ^3.0.0
1717
test: ^1.16.4

packages/gotrue/lib/src/types/auth_exception.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AuthException implements Exception {
2222
}
2323

2424
class AuthPKCEGrantCodeExchangeError extends AuthException {
25-
AuthPKCEGrantCodeExchangeError(String message) : super(message);
25+
AuthPKCEGrantCodeExchangeError(super.message);
2626
}
2727

2828
class AuthSessionMissingException extends AuthException {
@@ -38,8 +38,7 @@ class AuthRetryableFetchException extends AuthException {
3838
}
3939

4040
class AuthApiException extends AuthException {
41-
AuthApiException(String message, {String? statusCode})
42-
: super(message, statusCode: statusCode);
41+
AuthApiException(super.message, {super.statusCode});
4342
}
4443

4544
class AuthUnknownException extends AuthException {

packages/gotrue/lib/src/types/user_attributes.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ class AdminUserAttributes extends UserAttributes {
7777
final String? banDuration;
7878

7979
AdminUserAttributes({
80-
String? email,
81-
String? phone,
82-
String? password,
83-
Object? data,
80+
super.email,
81+
super.phone,
82+
super.password,
83+
super.data,
8484
this.userMetadata,
8585
this.appMetadata,
8686
this.emailConfirm,
8787
this.phoneConfirm,
8888
this.banDuration,
89-
}) : super(email: email, phone: phone, password: password, data: data);
89+
});
9090

9191
@override
9292
Map<String, dynamic> toJson() {

packages/gotrue/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
dev_dependencies:
2121
dart_jsonwebtoken: ^2.4.1
2222
dotenv: ^4.1.0
23-
lints: ^2.1.1
23+
lints: ^3.0.0
2424
test: ^1.16.4
2525
otp: ^3.1.3
2626

packages/postgrest/lib/src/postgrest_filter_builder.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part of 'postgrest_builder.dart';
22

33
class PostgrestFilterBuilder<T> extends PostgrestTransformBuilder<T> {
4-
PostgrestFilterBuilder(PostgrestBuilder<T, T, T> builder) : super(builder);
4+
PostgrestFilterBuilder(super.builder);
55

66
@override
77
PostgrestFilterBuilder<T> copyWithUrl(Uri url) =>

packages/postgrest/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ dependencies:
1515

1616
dev_dependencies:
1717
collection: ^1.16.0
18-
lints: ^2.1.1
18+
lints: ^3.0.0
1919
test: ^1.21.4

packages/realtime_client/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ dependencies:
1515
web_socket_channel: '>=2.3.0 <4.0.0'
1616

1717
dev_dependencies:
18-
lints: ^4.0.0
18+
lints: ^3.0.0
1919
mocktail: ^1.0.0
2020
test: ^1.16.5

packages/storage_client/lib/src/types.dart

+3-6
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,10 @@ class SignedUploadURLResponse extends SignedUrl {
212212
final String token;
213213

214214
const SignedUploadURLResponse({
215-
required String signedUrl,
216-
required String path,
215+
required super.signedUrl,
216+
required super.path,
217217
required this.token,
218-
}) : super(
219-
signedUrl: signedUrl,
220-
path: path,
221-
);
218+
});
222219
}
223220

224221
class StorageException implements Exception {

packages/storage_client/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies:
1717

1818
dev_dependencies:
1919
test: ^1.21.4
20-
lints: ^2.1.1
20+
lints: ^3.0.0
2121
path: ^1.8.2

packages/supabase/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ dependencies:
1919
yet_another_json_isolate: 2.0.1
2020

2121
dev_dependencies:
22-
lints: ^4.0.0
22+
lints: ^3.0.0
2323
test: ^1.17.9
2424
web_socket_channel: '>=2.3.0 <4.0.0'

packages/supabase_flutter/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev_dependencies:
1717
flutter_test:
1818
sdk: flutter
1919

20-
flutter_lints: ^1.0.4
20+
flutter_lints: ^3.0.1
2121

2222
flutter:
2323
uses-material-design: true

packages/supabase_flutter/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dev_dependencies:
2626
dart_jsonwebtoken: ^2.4.1
2727
flutter_test:
2828
sdk: flutter
29-
flutter_lints: ^2.0.2
29+
flutter_lints: ^3.0.1
3030
path: ^1.8.3
3131

3232
platforms:

packages/supabase_flutter/test/widget_test_stubs.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import 'package:supabase_flutter/supabase_flutter.dart';
1010
import 'utils.dart';
1111

1212
class MockWidget extends StatefulWidget {
13-
const MockWidget({Key? key}) : super(key: key);
13+
const MockWidget({super.key});
1414

1515
@override
1616
State<MockWidget> createState() => _MockWidgetState();

packages/yet_another_json_isolate/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ dependencies:
1010
async: ^2.8.0
1111

1212
dev_dependencies:
13-
lints: ^2.1.1
13+
lints: ^3.0.0
1414
test: ^1.16.0

0 commit comments

Comments
 (0)