Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 764844c

Browse files
committed
Fix lint issues
1 parent 2fc2262 commit 764844c

22 files changed

Lines changed: 71 additions & 32 deletions

src/debugger/adapter/DebugAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { DebuggerError } from "./../common/DebuggerError.js";
2525

2626
/* An implementation of an debugger adapter adhering to the VSCode Debug protocol
2727
* The adapter is responsible for communication between the UI and Prepack
28-
*/
28+
*/
2929
class PrepackDebugSession extends DebugSession {
3030
/**
3131
* Creates a new debug adapter that is used for one debug session.

src/debugger/mock-ui/UISession.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const TWO_CRLF = "\r\n\r\n";
2929
/* Represents one debugging session in the CLI.
3030
* Read in user input from the command line, parses the input into commands,
3131
* sends the commands to the adapter and process any responses
32-
*/
32+
*/
3333
export class UISession {
3434
constructor(proc: Process, args: DebuggerCLIArguments) {
3535
this._proc = proc;

src/debugger/mock-ui/debugger-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { UISession } from "./UISession.js";
1313
import type { DebuggerCLIArguments } from "./UISession.js";
1414
/* The entry point to start up the debugger CLI
1515
* Reads in command line arguments and starts up a UISession
16-
*/
16+
*/
1717

1818
function run(process, console) {
1919
let args = readCLIArguments(process, console);

src/methods/get.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ export function OrdinaryGet(
234234
let descValue = !desc
235235
? realm.intrinsics.undefined
236236
: desc.value === undefined
237-
? realm.intrinsics.undefined
238-
: desc.value;
237+
? realm.intrinsics.undefined
238+
: desc.value;
239239
invariant(descValue instanceof Value);
240240

241241
// 3. If desc is undefined, then

src/methods/hash.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export function hashUnary(op: BabelUnaryOperator, x: Hashable): number {
7676
return (hashString(op) * 13) ^ x.getHash();
7777
}
7878

79-
interface Equatable { equals(x: any): boolean }
79+
interface Equatable {
80+
equals(x: any): boolean;
81+
}
8082

8183
export class HashSet<T: Equatable & Hashable> {
8284
constructor(expectedEntries?: number = 32 * 1024) {

src/methods/properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ export class PropertiesImplementation {
407407
let existingDescValue = !existingDescriptor
408408
? realm.intrinsics.undefined
409409
: existingDescriptor.value === undefined
410-
? realm.intrinsics.undefined
411-
: existingDescriptor.value;
410+
? realm.intrinsics.undefined
411+
: existingDescriptor.value;
412412
invariant(existingDescValue instanceof Value);
413413

414414
// d. If existingDescriptor is not undefined, then

src/react/reconcilation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ export class Reconciler {
201201
let effects;
202202
try {
203203
this.realm.react.activeReconciler = this;
204-
effects = this.realm.wrapInGlobalEnv(
205-
() => (this.realm.isInPureScope() ? funcCall() : this.realm.evaluateWithPureScope(funcCall))
204+
effects = this.realm.wrapInGlobalEnv(() =>
205+
this.realm.isInPureScope() ? funcCall() : this.realm.evaluateWithPureScope(funcCall)
206206
);
207207
} catch (e) {
208208
this._handleComponentTreeRootFailure(e, evaluatedRootNode);

src/utils/logger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export class Logger {
9696
let message = object.properties.get("message");
9797
console.error(
9898
message &&
99-
message.descriptor &&
100-
message.descriptor instanceof PropertyDescriptor &&
101-
message.descriptor.value instanceof StringValue
99+
message.descriptor &&
100+
message.descriptor instanceof PropertyDescriptor &&
101+
message.descriptor.value instanceof StringValue
102102
? message.descriptor.value.value
103103
: "(no message available)"
104104
);

src/values/AbstractObjectValue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ export default class AbstractObjectValue extends AbstractValue {
417417
Desc.configurable !== undefined
418418
? Desc.configurable
419419
: firstExistingDesc
420-
? firstExistingDesc.configurable
421-
: false,
420+
? firstExistingDesc.configurable
421+
: false,
422422
});
423423
let newVal = desc.value;
424424
if (this.kind === "conditional") {

test/react/FBMocks/fb8.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ module.exports = this.__evaluatePureFunction(() => {
3838
function App() {
3939
return (
4040
<span>
41-
This contains a ReactRelay container:<WrappedApp />
41+
This contains a ReactRelay container:
42+
<WrappedApp />
4243
</span>
4344
);
4445
}

0 commit comments

Comments
 (0)