Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eslint-plugin-prettier 4.2.1 → 5.1.3 (major) #6430

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions integration-tests/tests/src/tests/sync/mongo-db-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ describe.skipIf(environment.missingServer, "MongoDB Client", function () {
// Used as a flag for knowing when to stop watching.
const lastDocument = { _id: numInserts, isLast: true };

function assertIsInsert<
T extends Document = TestDocument,
>(event: ChangeEvent<T>): asserts event is InsertEvent<T> {
function assertIsInsert<T extends Document = TestDocument>(
event: ChangeEvent<T>,
): asserts event is InsertEvent<T> {
if (event.operationType !== "insert") {
throw new Error(`Expected an insert event, got ${event.operationType}.`);
}
Expand Down
799 changes: 136 additions & 663 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"clang-format": "^1.8.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-jsdoc": "^48.0.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-native": "^4.0.0",
"node-addon-api": "^7.1.0",
"prettier": "2.8.8",
"prettier": "3.2.4",
"react-native": "0.73.2",
"rollup": "^4.9.5",
"rollup-plugin-dts": "^6.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/realm-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"babel-plugin-module-resolver": "^5.0.0",
"fb-watchman": "^2.0.1",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.73.2",
"react-test-renderer": "18.2.0",
Expand Down
14 changes: 12 additions & 2 deletions packages/realm/bindgen/src/js-passes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ function addSharedPtrMethods(spec: BoundSpec) {
}

class CustomProperty extends Property {
constructor(on: Class, public readonly name: string, type: Type, public call: MethodCallSig) {
constructor(
on: Class,
public readonly name: string,
type: Type,
public call: MethodCallSig,
) {
assert(name.startsWith("$"));
super(on, "DOLLAR_" + name.slice(1), type);
}
Expand All @@ -82,7 +87,12 @@ class CustomProperty extends Property {
}

class CustomInstanceMethod extends InstanceMethod {
constructor(on: Class, public name: string, sig: Func, public call: MethodCallSig) {
constructor(
on: Class,
public name: string,
sig: Func,
public call: MethodCallSig,
) {
assert(name.startsWith("$"));
const unique_name = "DOLLAR_" + name.slice(1);
super(on, name, unique_name, unique_name, sig);
Expand Down
6 changes: 5 additions & 1 deletion packages/realm/bindgen/src/templates/jsi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ function tryWrap(body: string) {
}

class CppJsiFunc extends CppFunc {
constructor(private addon: JsiAddon, name: string, props?: CppFuncProps) {
constructor(
private addon: JsiAddon,
name: string,
props?: CppFuncProps,
) {
super(name, "jsi::Value", jsi_callback_args, props);
}

Expand Down
6 changes: 5 additions & 1 deletion packages/realm/bindgen/src/templates/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ function tryWrap(body: string) {
}

class CppNodeFunc extends CppFunc {
constructor(private addon: NodeAddon, name: string, props?: CppFuncProps) {
constructor(
private addon: NodeAddon,
name: string,
props?: CppFuncProps,
) {
super(name, "Napi::Value", [node_callback_info], props);
}

Expand Down
5 changes: 4 additions & 1 deletion packages/realm/src/ObjectListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export class ObjectListeners<T> {
*/
private internal!: binding.ObjectNotifier | null;

constructor(private realm: binding.Realm, private object: RealmObject<T>) {
constructor(
private realm: binding.Realm,
private object: RealmObject<T>,
) {
this.properties = getClassHelpers(this.object.constructor as typeof RealmObject).properties;
}

Expand Down
5 changes: 4 additions & 1 deletion packages/realm/src/RealmListeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ class RealmListeners {
* Keeps tracked of registered listener callbacks for Realm class notifications.
*/

constructor(private realm: Realm, private eventType: RealmEvent) {
constructor(
private realm: Realm,
private eventType: RealmEvent,
) {
this.eventType = eventType;
}
private listeners = new Set<RealmListenerCallback>();
Expand Down
5 changes: 4 additions & 1 deletion packages/realm/src/app-services/SubscriptionSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ import {
*/
export class SubscriptionSet extends BaseSubscriptionSet {
/** @internal */
constructor(/** @internal */ private realm: Realm, internal: binding.SyncSubscriptionSet) {
constructor(
/** @internal */ private realm: Realm,
internal: binding.SyncSubscriptionSet,
) {
super(internal);

Object.defineProperty(this, "realm", {
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/src/app-services/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class User<
* @returns An array of {@link UserIdentity} objects.
*/
get identities(): UserIdentity[] {
return this.internal.identities.map(({ id, providerType }) => ({ id, providerType } as UserIdentity));
return this.internal.identities.map(({ id, providerType }) => ({ id, providerType }) as UserIdentity);
}

/**
Expand Down
6 changes: 5 additions & 1 deletion packages/realm/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export class TypeAssertionError extends AssertionError {
}

/** @internal */
constructor(/** @internal */ private expected: string, /** @internal */ private value: unknown, target?: string) {
constructor(
/** @internal */ private expected: string,
/** @internal */ private value: unknown,
target?: string,
) {
super(TypeAssertionError.message(expected, value, target));
}

Expand Down
Loading