Skip to content

Commit

Permalink
Upgrade linting for all packages in a non-breaking manner
Browse files Browse the repository at this point in the history
  • Loading branch information
geoextra committed Jul 29, 2024
1 parent 7cd7ab5 commit fcdcdf3
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 25 deletions.
2 changes: 1 addition & 1 deletion packages/functions_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
yet_another_json_isolate: 2.0.1

dev_dependencies:
lints: ^2.1.1
lints: ^3.0.0
test: ^1.16.4
5 changes: 2 additions & 3 deletions packages/gotrue/lib/src/types/auth_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AuthException implements Exception {
}

class AuthPKCEGrantCodeExchangeError extends AuthException {
AuthPKCEGrantCodeExchangeError(String message) : super(message);
AuthPKCEGrantCodeExchangeError(super.message);
}

class AuthSessionMissingException extends AuthException {
Expand All @@ -38,8 +38,7 @@ class AuthRetryableFetchException extends AuthException {
}

class AuthApiException extends AuthException {
AuthApiException(String message, {String? statusCode})
: super(message, statusCode: statusCode);
AuthApiException(super.message, {super.statusCode});
}

class AuthUnknownException extends AuthException {
Expand Down
10 changes: 5 additions & 5 deletions packages/gotrue/lib/src/types/user_attributes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ class AdminUserAttributes extends UserAttributes {
final String? banDuration;

AdminUserAttributes({
String? email,
String? phone,
String? password,
Object? data,
super.email,
super.phone,
super.password,
super.data,
this.userMetadata,
this.appMetadata,
this.emailConfirm,
this.phoneConfirm,
this.banDuration,
}) : super(email: email, phone: phone, password: password, data: data);
});

@override
Map<String, dynamic> toJson() {
Expand Down
2 changes: 1 addition & 1 deletion packages/gotrue/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
dev_dependencies:
dart_jsonwebtoken: ^2.4.1
dotenv: ^4.1.0
lints: ^2.1.1
lints: ^3.0.0
test: ^1.16.4
otp: ^3.1.3

Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest/lib/src/postgrest_filter_builder.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of 'postgrest_builder.dart';

class PostgrestFilterBuilder<T> extends PostgrestTransformBuilder<T> {
PostgrestFilterBuilder(PostgrestBuilder<T, T, T> builder) : super(builder);
PostgrestFilterBuilder(super.builder);

@override
PostgrestFilterBuilder<T> copyWithUrl(Uri url) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/postgrest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dependencies:

dev_dependencies:
collection: ^1.16.0
lints: ^2.1.1
lints: ^3.0.0
test: ^1.21.4
2 changes: 1 addition & 1 deletion packages/realtime_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ dependencies:
web_socket_channel: '>=2.3.0 <4.0.0'

dev_dependencies:
lints: ^4.0.0
lints: ^3.0.0
mocktail: ^1.0.0
test: ^1.16.5
9 changes: 3 additions & 6 deletions packages/storage_client/lib/src/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,10 @@ class SignedUploadURLResponse extends SignedUrl {
final String token;

const SignedUploadURLResponse({
required String signedUrl,
required String path,
required super.signedUrl,
required super.path,
required this.token,
}) : super(
signedUrl: signedUrl,
path: path,
);
});
}

class StorageException implements Exception {
Expand Down
2 changes: 1 addition & 1 deletion packages/storage_client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ dependencies:

dev_dependencies:
test: ^1.21.4
lints: ^2.1.1
lints: ^3.0.0
path: ^1.8.2
2 changes: 1 addition & 1 deletion packages/supabase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ dependencies:
yet_another_json_isolate: 2.0.1

dev_dependencies:
lints: ^4.0.0
lints: ^3.0.0
test: ^1.17.9
web_socket_channel: '>=2.3.0 <4.0.0'
2 changes: 1 addition & 1 deletion packages/supabase_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^1.0.4
flutter_lints: ^3.0.1

flutter:
uses-material-design: true
2 changes: 1 addition & 1 deletion packages/supabase_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dev_dependencies:
dart_jsonwebtoken: ^2.4.1
flutter_test:
sdk: flutter
flutter_lints: ^2.0.2
flutter_lints: ^3.0.1
path: ^1.8.3

platforms:
Expand Down
2 changes: 1 addition & 1 deletion packages/supabase_flutter/test/widget_test_stubs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:supabase_flutter/supabase_flutter.dart';
import 'utils.dart';

class MockWidget extends StatefulWidget {
const MockWidget({Key? key}) : super(key: key);
const MockWidget({super.key});

@override
State<MockWidget> createState() => _MockWidgetState();
Expand Down
2 changes: 1 addition & 1 deletion packages/yet_another_json_isolate/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ dependencies:
async: ^2.8.0

dev_dependencies:
lints: ^2.1.1
lints: ^3.0.0
test: ^1.16.0

0 comments on commit fcdcdf3

Please sign in to comment.