Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created February 4, 2017 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vjeux/510742148b0a011d0375f23f260bf859 to your computer and use it in GitHub Desktop.
Save vjeux/510742148b0a011d0375f23f260bf859 to your computer and use it in GitHub Desktop.
diff --git a/pkg/commons-atom/AutocompleteCacher.js b/pkg/commons-atom/AutocompleteCacher.js
index 8c64580..c040e56 100644
--- a/pkg/commons-atom/AutocompleteCacher.js
+++ b/pkg/commons-atom/AutocompleteCacher.js
@@ -14,9 +14,8 @@ export type AutocompleteCacherConfig<T> = {|
// verifying that the cursor has only moved by one column since the last request.
shouldFilter?: (
lastRequest: atom$AutocompleteRequest,
- currentRequest: atom$AutocompleteRequest,
- ) => /* TODO pass originalResult here if any client requires it*/
- boolean,
+ currentRequest: atom$AutocompleteRequest /* TODO pass originalResult here if any client requires it*/,
+ ) => boolean,
|};
type AutocompleteSession<T> = {
diff --git a/pkg/commons-atom/createPackage.js b/pkg/commons-atom/createPackage.js
index 623e19b..64ca928 100644
--- a/pkg/commons-atom/createPackage.js
+++ b/pkg/commons-atom/createPackage.js
@@ -34,7 +34,7 @@ export default function createPackage(Activation: Class<any>): Object {
if (property === 'activate') {
throw new Error(
'Your activation class contains an "activate" method, but that work should be done in the' +
- ' constructor.',
+ ' constructor.',
);
}
if (property === 'deactivate') {
diff --git a/pkg/commons-atom/debounced.js b/pkg/commons-atom/debounced.js
index 099c03b..01bea2c 100644
--- a/pkg/commons-atom/debounced.js
+++ b/pkg/commons-atom/debounced.js
@@ -53,10 +53,7 @@ export function editorChangesDebounced(
debounceInterval: number = DEFAULT_EDITOR_DEBOUNCE_INTERVAL_MS,
): Observable<void> {
return observableFromSubscribeFunction(callback =>
- editor.onDidChange(
- callback,
- ))// Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
- // configurable.
+ editor.onDidChange(callback))// configurable.
.debounceTime(debounceInterval);
}
diff --git a/pkg/commons-atom/projects.js b/pkg/commons-atom/projects.js
index fa3d13c..7669438 100644
--- a/pkg/commons-atom/projects.js
+++ b/pkg/commons-atom/projects.js
@@ -26,7 +26,7 @@ function getValidProjectPaths(): Array<string> {
// isn't yet ready for consumption.
if (
nuclideUri.isRemote(directory.getPath()) &&
- directory instanceof Directory
+ directory instanceof Directory
) {
return false;
}
diff --git a/pkg/commons-atom/spec/createPackage-spec.js b/pkg/commons-atom/spec/createPackage-spec.js
index a1232c7..212699c 100644
--- a/pkg/commons-atom/spec/createPackage-spec.js
+++ b/pkg/commons-atom/spec/createPackage-spec.js
@@ -17,7 +17,7 @@ describe('createPackage', () => {
}
expect(() => createPackage(Activation)).toThrow(
'Your activation class contains an "activate" method, but that work should be done in the' +
- ' constructor.',
+ ' constructor.',
);
});
diff --git a/pkg/commons-atom/vcs.js b/pkg/commons-atom/vcs.js
index 502d835..4dfdecd 100644
--- a/pkg/commons-atom/vcs.js
+++ b/pkg/commons-atom/vcs.js
@@ -231,10 +231,9 @@ async function hgActionToPath(
export function getHgRepositories(): Set<HgRepositoryClient> {
return new Set(
- (arrayCompact(
- atom.project.getRepositories(),
- )// Flow doesn't understand that this filters to hg repositories only, so cast through `any`
- .filter(repository => repository.getType() === 'hg'): Array<any>),
+ (arrayCompact(atom.project.getRepositories()).filter(
+ repository => repository.getType() === 'hg',
+ ): Array<any>),
);
}
diff --git a/pkg/commons-node/Dispatcher.js b/pkg/commons-node/Dispatcher.js
index a4f68a7..f19b13b 100644
--- a/pkg/commons-node/Dispatcher.js
+++ b/pkg/commons-node/Dispatcher.js
@@ -167,7 +167,7 @@ export default class Dispatcher<TPayload> {
invariant(
this._isHandled[id],
'Dispatcher.waitFor(...): Circular dependency detected while ' +
- 'waiting for `%s`.',
+ 'waiting for `%s`.',
id,
);
continue;
diff --git a/pkg/commons-node/collection.js b/pkg/commons-node/collection.js
index 4a1f538..d311961 100644
--- a/pkg/commons-node/collection.js
+++ b/pkg/commons-node/collection.js
@@ -300,7 +300,7 @@ export function objectEntries<T>(obj: {[key: string]: T}): Array<[string, T]> {
for (const key in obj) {
if (
obj.hasOwnProperty(key) &&
- Object.prototype.propertyIsEnumerable.call(obj, key)
+ Object.prototype.propertyIsEnumerable.call(obj, key)
) {
entries.push([key, obj[key]]);
}
diff --git a/pkg/commons-node/nuclideUri.js b/pkg/commons-node/nuclideUri.js
index e918168..07c1684 100644
--- a/pkg/commons-node/nuclideUri.js
+++ b/pkg/commons-node/nuclideUri.js
@@ -123,7 +123,7 @@ function parseRemoteUri(remoteUri: NuclideUri): ParsedRemoteUrl {
`Remote Nuclide URIs must contain hostnames, '${maybeToString(
parsedUri.hostname,
)}' found ` +
- `while parsing '${remoteUri}'`,
+ `while parsing '${remoteUri}'`,
);
// Explicitly copying object properties appeases Flow's "maybe" type handling. Using the `...`
@@ -192,7 +192,7 @@ function relative(uri: NuclideUri, other: NuclideUri): string {
const remote = isRemote(uri);
if (
remote !== isRemote(other) ||
- remote && getHostname(uri) !== getHostname(other)
+ remote && getHostname(uri) !== getHostname(other)
) {
throw new Error(
`Cannot relative urls on different hosts: ${uri} and ${other}`,
diff --git a/pkg/commons-node/process.js b/pkg/commons-node/process.js
index 1b659d6..345aacf 100644
--- a/pkg/commons-node/process.js
+++ b/pkg/commons-node/process.js
@@ -616,7 +616,7 @@ export async function checkOutput(
: `error: ${maybeToString(result.errorMessage)}`;
throw new Error(
`asyncExecute "${command}" failed with ${reason}, ` +
- `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
+ `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
);
}
return result;
diff --git a/pkg/commons-node/scheduleIdleCallback.js b/pkg/commons-node/scheduleIdleCallback.js
index abdcafc..8ef853a 100644
--- a/pkg/commons-node/scheduleIdleCallback.js
+++ b/pkg/commons-node/scheduleIdleCallback.js
@@ -22,9 +22,8 @@
import invariant from 'assert';
-export default (global.requestIdleCallback
- ? // Using Browser API
- // Is guaranteed to resolve after `timeout` milliseconds.
+export default (global.requestIdleCallback // Using Browser API
+ ? // Is guaranteed to resolve after `timeout` milliseconds.
(function scheduleIdleCallback(
callback_: () => void,
options?: {
@@ -40,7 +39,7 @@ export default (global.requestIdleCallback
function fn(deadline) {
if (
deadline.timeRemaining() >= afterRemainingTime ||
- Date.now() - startTime >= timeout
+ Date.now() - startTime >= timeout
) {
invariant(callback != null);
callback(deadline);
@@ -60,9 +59,8 @@ export default (global.requestIdleCallback
}
},
};
- })
- : // Using Node API
- (function scheduleIdleCallback(
+ }) // Using Node API
+ : (function scheduleIdleCallback(
callback: () => void,
options?: {
afterRemainingTime?: 30 | 40 | 49,
diff --git a/pkg/commons-node/spec/nice-spec.js b/pkg/commons-node/spec/nice-spec.js
index 649a640..6e4439b 100644
--- a/pkg/commons-node/spec/nice-spec.js
+++ b/pkg/commons-node/spec/nice-spec.js
@@ -41,7 +41,7 @@ describe('nice', () => {
whichSpy = spyOn(require('../which'), 'default').andCallFake(command => {
if (
shouldFindNiceCommand && command === 'nice' ||
- shouldFindIoniceCommand && command === 'ionice'
+ shouldFindIoniceCommand && command === 'ionice'
) {
return command;
} else {
diff --git a/pkg/commons-node/spec/wootr-spec.js b/pkg/commons-node/spec/wootr-spec.js
index 554726a..5d3db38 100644
--- a/pkg/commons-node/spec/wootr-spec.js
+++ b/pkg/commons-node/spec/wootr-spec.js
@@ -171,7 +171,7 @@ describe('wootr', () => {
it(
'should be the same wstrings when you ' +
- 'insert 4 length 1 chars and 1 length 4 char',
+ 'insert 4 length 1 chars and 1 length 4 char',
() => {
const wstring = new WString(1);
const wstring2 = new WString(2);
diff --git a/pkg/commons-node/wootr.js b/pkg/commons-node/wootr.js
index f4b2b74..5d61918 100644
--- a/pkg/commons-node/wootr.js
+++ b/pkg/commons-node/wootr.js
@@ -125,9 +125,9 @@ export class WString {
// [begin][id:1,1; len: 2, vis: 1;][id:1,4; len: 1, vis: 1;][id:1,3; len: 2, vis: 1;][end]
if (
leftHalf.startId.site === c.startId.site &&
- leftHalf.startId.h === c.startId.h - leftHalf.length &&
- offset === leftHalf.length &&
- c.visible === leftHalf.visible
+ leftHalf.startId.h === c.startId.h - leftHalf.length &&
+ offset === leftHalf.length &&
+ c.visible === leftHalf.visible
) {
leftHalf.length += c.length;
} else if (offset === leftHalf.length) {
@@ -181,7 +181,7 @@ export class WString {
) {
if (
this._string[originalIndex].length > offset &&
- this._string[originalIndex].visible
+ this._string[originalIndex].visible
) {
break;
}
@@ -240,9 +240,9 @@ export class WString {
const currentRun = this._string[i];
if (
currentRun.startId.site === c.id.site &&
- currentRun.startId.h <= c.id.h &&
- currentRun.startId.h + currentRun.length > c.id.h &&
- (!visibleOnly || this._string[i].visible)
+ currentRun.startId.h <= c.id.h &&
+ currentRun.startId.h + currentRun.length > c.id.h &&
+ (!visibleOnly || this._string[i].visible)
) {
return currentOffset + (c.id.h - currentRun.startId.h);
}
@@ -271,7 +271,7 @@ export class WString {
for (i = 0; i < this._string.length; i++) {
if (
this._string[i].length > offset &&
- (!visibleOnly || this._string[i].visible)
+ (!visibleOnly || this._string[i].visible)
) {
break;
}
diff --git a/pkg/nuclide-adb-logcat/lib/Activation.js b/pkg/nuclide-adb-logcat/lib/Activation.js
index 3a2f074..47526ad 100644
--- a/pkg/nuclide-adb-logcat/lib/Activation.js
+++ b/pkg/nuclide-adb-logcat/lib/Activation.js
@@ -25,8 +25,7 @@ export default class Activation {
constructor(state: ?Object) {
const message$ = Observable.defer(() => createMessageStream(
- createProcessStream()// Retry 3 times (unless we get a ENOENT)
- .retryWhen(errors => errors.scan(
+ createProcessStream().retryWhen(errors => errors.scan(
(errCount, err) => {
if (isNoEntError(err) || errCount >= 2) {
throw err;
diff --git a/pkg/nuclide-adb-logcat/lib/createMessageStream.js b/pkg/nuclide-adb-logcat/lib/createMessageStream.js
index 2dfc6c8..45a86fb 100644
--- a/pkg/nuclide-adb-logcat/lib/createMessageStream.js
+++ b/pkg/nuclide-adb-logcat/lib/createMessageStream.js
@@ -95,7 +95,7 @@ function filter(messages: Observable<Message>): Observable<Message> {
} catch (err) {
atom.notifications.addError(
'The nuclide-adb-logcat.whitelistedTags setting contains an invalid regular expression' +
- ' string. Fix it in your Atom settings.',
+ ' string. Fix it in your Atom settings.',
);
return /.*/;
}
diff --git a/pkg/nuclide-arcanist/lib/ArcBuildSystem.js b/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
index 5af58c7..4e5b53b 100644
--- a/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
+++ b/pkg/nuclide-arcanist/lib/ArcBuildSystem.js
@@ -52,7 +52,7 @@ export default class ArcBuildSystem {
.filter(
model =>
model.isArcSupported() !== null &&
- model.getActiveProjectPath() === path,
+ model.getActiveProjectPath() === path,
);
const enabledObservable = storeReady
diff --git a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
index 459df7a..192f902 100644
--- a/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
+++ b/pkg/nuclide-arcanist/lib/ArcanistDiagnosticsProvider.js
@@ -124,10 +124,10 @@ export class ArcanistDiagnosticsProvider {
const maybeProperties = {};
if (
diagnostic.original != null &&
- diagnostic.replacement != null &&
- // Sometimes linters set original and replacement to the same value. Obviously that won't
- // fix anything.
- diagnostic.original !== diagnostic.replacement
+ diagnostic.replacement != null &&
+ // Sometimes linters set original and replacement to the same value. Obviously that won't
+ // fix anything.
+ diagnostic.original !== diagnostic.replacement
) {
// Copy the object so the type refinements hold...
maybeProperties.fix = this._getFix({...diagnostic});
diff --git a/pkg/nuclide-arcanist/lib/openArcDeepLink.js b/pkg/nuclide-arcanist/lib/openArcDeepLink.js
index 9ee5379..c38bce7 100644
--- a/pkg/nuclide-arcanist/lib/openArcDeepLink.js
+++ b/pkg/nuclide-arcanist/lib/openArcDeepLink.js
@@ -56,8 +56,8 @@ export async function openArcDeepLink(
if (matches.length === 0) {
throw new Error(
`The file you are trying to open is in the \`${project}\` project ` +
- 'but you do not have the project open.<br />' +
- 'Please add the project manually and try again.',
+ 'but you do not have the project open.<br />' +
+ 'Please add the project manually and try again.',
);
}
diff --git a/pkg/nuclide-arcanist/lib/tryReopenProject.js b/pkg/nuclide-arcanist/lib/tryReopenProject.js
index dade89a..434263d 100644
--- a/pkg/nuclide-arcanist/lib/tryReopenProject.js
+++ b/pkg/nuclide-arcanist/lib/tryReopenProject.js
@@ -27,11 +27,11 @@ export default (async function tryReopenProject(
{
description: (
`You tried to open a file in the \`${projectId}\` project, but it doesn't ` +
- 'seem to be in your open projects.<br />' +
- `You last had it open at \`${nuclideUri.nuclideUriToDisplayString(
- lastPath,
- )}\`.<br />` +
- 'Would you like to try re-opening it?'
+ 'seem to be in your open projects.<br />' +
+ `You last had it open at \`${nuclideUri.nuclideUriToDisplayString(
+ lastPath,
+ )}\`.<br />` +
+ 'Would you like to try re-opening it?'
),
dismissable: true,
buttons: [
diff --git a/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js b/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
index b0544ee..44a8e4e 100644
--- a/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
+++ b/pkg/nuclide-blame-provider-hg/lib/HgBlameProvider.js
@@ -20,11 +20,11 @@ function canProvideBlameForEditor(editor: atom$TextEditor): boolean {
if (editor.isModified()) {
atom.notifications.addInfo(
'There is Hg blame information for this file, but only for saved changes. ' +
- 'Save, then try again.',
+ 'Save, then try again.',
);
logger.info(
'nuclide-blame: Could not open Hg blame due to unsaved changes in file: ' +
- String(editor.getPath()),
+ String(editor.getPath()),
);
return false;
}
diff --git a/pkg/nuclide-blame/lib/BlameGutter.js b/pkg/nuclide-blame/lib/BlameGutter.js
index 05738e4..bc7e8e5 100644
--- a/pkg/nuclide-blame/lib/BlameGutter.js
+++ b/pkg/nuclide-blame/lib/BlameGutter.js
@@ -116,7 +116,7 @@ export default class BlameGutter {
} catch (error) {
atom.notifications.addError(
'Failed to fetch blame to display. ' +
- 'The file is empty or untracked or the repository cannot be reached.',
+ 'The file is empty or untracked or the repository cannot be reached.',
{detail: error},
);
atom.commands.dispatch(
@@ -326,10 +326,10 @@ class GutterElement extends React.Component {
const tooltip = {
title: (
escapeHTML(revision.title) +
- '<br />' +
- escapeHTML(unixname) +
- ' &middot; ' +
- escapeHTML(revision.date.toDateString())
+ '<br />' +
+ escapeHTML(unixname) +
+ ' &middot; ' +
+ escapeHTML(revision.date.toDateString())
),
delay: 0,
placement: 'right',
diff --git a/pkg/nuclide-blame/lib/main.js b/pkg/nuclide-blame/lib/main.js
index a5bc073..7e19995 100644
--- a/pkg/nuclide-blame/lib/main.js
+++ b/pkg/nuclide-blame/lib/main.js
@@ -135,7 +135,7 @@ class Activation {
getLogger().info(
'nuclide-blame: Could not open blame: no blame provider currently available for this ' +
- `file: ${String(editor.getPath())}`,
+ `file: ${String(editor.getPath())}`,
);
}
}
diff --git a/pkg/nuclide-bookshelf/lib/accumulateState.js b/pkg/nuclide-bookshelf/lib/accumulateState.js
index 3214436..30238dd 100644
--- a/pkg/nuclide-bookshelf/lib/accumulateState.js
+++ b/pkg/nuclide-bookshelf/lib/accumulateState.js
@@ -172,7 +172,7 @@ function accumulateUpdatePaneItemState(
[repositoryPath, repositoryState],
) => {
const fileList = (repositoryPathToEditors.get(repositoryPath) ||
- []).map(textEditor => textEditor.getPath() || '');
+ []).map(textEditor => textEditor.getPath() || '');
return [
repositoryPath,
accumulateRepositoryStateUpdatePaneItemState(
diff --git a/pkg/nuclide-bookshelf/lib/utils.js b/pkg/nuclide-bookshelf/lib/utils.js
index bd94549..f0e8240 100644
--- a/pkg/nuclide-bookshelf/lib/utils.js
+++ b/pkg/nuclide-bookshelf/lib/utils.js
@@ -61,7 +61,7 @@ export function deserializeBookShelfState(
): BookShelfState {
if (
serializedBookShelfState == null ||
- serializedBookShelfState.repositoryPathToState == null
+ serializedBookShelfState.repositoryPathToState == null
) {
return getEmptBookShelfState();
}
@@ -132,7 +132,7 @@ export function shortHeadChangedNotification(
{
detail: (
'Would you like to open the files you had active then?\n \n' +
- "ProTip: Change the default behavior from 'Nuclide Settings>IDE Settings>Book Shelf'"
+ "ProTip: Change the default behavior from 'Nuclide Settings>IDE Settings>Book Shelf'"
),
dismissable: true,
buttons: [
diff --git a/pkg/nuclide-buck-rpc/lib/BuckService.js b/pkg/nuclide-buck-rpc/lib/BuckService.js
index fe45928..46b97c0 100644
--- a/pkg/nuclide-buck-rpc/lib/BuckService.js
+++ b/pkg/nuclide-buck-rpc/lib/BuckService.js
@@ -579,7 +579,7 @@ export async function buildRuleTypeFor(
// Don't prepend this for aliases though (aliases will not have colons or .)
if (
(canonicalName.indexOf(':') !== -1 || canonicalName.indexOf('.') !== -1) &&
- !canonicalName.startsWith('//')
+ !canonicalName.startsWith('//')
) {
canonicalName = '//' + canonicalName;
}
diff --git a/pkg/nuclide-buck/lib/BuckBuildSystem.js b/pkg/nuclide-buck/lib/BuckBuildSystem.js
index 11fb5f3..d68a961 100644
--- a/pkg/nuclide-buck/lib/BuckBuildSystem.js
+++ b/pkg/nuclide-buck/lib/BuckBuildSystem.js
@@ -230,7 +230,7 @@ export class BuckBuildSystem {
...task,
disabled: (
state.isLoadingPlatforms ||
- !shouldEnableTask(task.type, buildRuleType, target)
+ !shouldEnableTask(task.type, buildRuleType, target)
),
}));
});
@@ -271,8 +271,7 @@ export class BuckBuildSystem {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((err, stream) => {
+ ).catch((err, stream) => {
getLogger().error(err);
return stream;
});
@@ -289,9 +288,9 @@ export class BuckBuildSystem {
runTask(taskType: string): Task {
invariant(
taskType === 'build' ||
- taskType === 'test' ||
- taskType === 'run' ||
- taskType === 'debug',
+ taskType === 'test' ||
+ taskType === 'run' ||
+ taskType === 'debug',
'Invalid task type',
);
@@ -351,9 +350,9 @@ export class BuckBuildSystem {
let outputPath;
if (
output == null ||
- output[0] == null ||
- output[0]['buck.outputPath'] == null ||
- (outputPath = output[0]['buck.outputPath'].trim()) === ''
+ output[0] == null ||
+ output[0]['buck.outputPath'] == null ||
+ (outputPath = output[0]['buck.outputPath'].trim()) === ''
) {
throw new Error(
"Couldn't determine binary path from Buck output!",
diff --git a/pkg/nuclide-buck/lib/BuckEventStream.js b/pkg/nuclide-buck/lib/BuckEventStream.js
index 672351c..38972e5 100644
--- a/pkg/nuclide-buck/lib/BuckEventStream.js
+++ b/pkg/nuclide-buck/lib/BuckEventStream.js
@@ -108,9 +108,9 @@ export function getEventsFromSocket(
const progressEvents = eventStream.switchMap(event => {
if (
event.type === 'progress' &&
- event.progress != null &&
- event.progress > 0 &&
- event.progress < 1
+ event.progress != null &&
+ event.progress > 0 &&
+ event.progress < 1
) {
return log(`Building... [${Math.round(event.progress * 100)}%]`);
}
diff --git a/pkg/nuclide-buck/lib/HyperclickProvider.js b/pkg/nuclide-buck/lib/HyperclickProvider.js
index 6c64985..cf33a93 100644
--- a/pkg/nuclide-buck/lib/HyperclickProvider.js
+++ b/pkg/nuclide-buck/lib/HyperclickProvider.js
@@ -105,11 +105,11 @@ export async function findTargetLocation(target: Target): Promise<any> {
const lines = data.split('\n');
const regex = new RegExp(
'^\\s*' + // beginning of the line
- 'name\\s*=\\s*' + // name =
- '[\'"]' + // opening quotation mark
- escapeStringRegExp(target.name) + // target name
- '[\'"]' + // closing quotation mark
- ',?$', // optional trailling comma
+ 'name\\s*=\\s*' + // name =
+ '[\'"]' + // opening quotation mark
+ escapeStringRegExp(target.name) + // target name
+ '[\'"]' + // closing quotation mark
+ ',?$', // optional trailling comma
);
let lineIndex = 0;
diff --git a/pkg/nuclide-buck/lib/observeBuildCommands.js b/pkg/nuclide-buck/lib/observeBuildCommands.js
index de9643a..c2490f3 100644
--- a/pkg/nuclide-buck/lib/observeBuildCommands.js
+++ b/pkg/nuclide-buck/lib/observeBuildCommands.js
@@ -47,9 +47,9 @@ export default function observeBuildCommands(store: Store): IDisposable {
// Only report simple single-target build commands for now.
if (
Date.now() - timestamp > CHECK_INTERVAL ||
- command !== 'build' ||
- args.length !== 1 ||
- args[0].startsWith('-')
+ command !== 'build' ||
+ args.length !== 1 ||
+ args[0].startsWith('-')
) {
return Observable.empty();
}
@@ -72,7 +72,7 @@ export default function observeBuildCommands(store: Store): IDisposable {
`You recently ran \`buck build ${args.join(
' ',
)}\` from the command line.<br />` +
- 'Would you like to try building from the Task Runner?',
+ 'Would you like to try building from the Task Runner?',
{
dismissable: true,
icon: 'nuclicon-buck',
diff --git a/pkg/nuclide-buck/lib/redux/Actions.js b/pkg/nuclide-buck/lib/redux/Actions.js
index d1a5ec6..7e8ea42 100644
--- a/pkg/nuclide-buck/lib/redux/Actions.js
+++ b/pkg/nuclide-buck/lib/redux/Actions.js
@@ -26,9 +26,8 @@ export type Action =
| {|
type: 'SET_TASK_SETTINGS',
settings: TaskSettings,
- |}
- | /* The actions below are meant to be used in Epics only.*/
- {|
+ |} /* The actions below are meant to be used in Epics only.*/
+ | {|
type: 'SET_BUCK_ROOT',
buckRoot: ?string,
|}
diff --git a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
index 5c67d1c..24d3220 100644
--- a/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
+++ b/pkg/nuclide-busy-signal/lib/BusySignalProviderBase.js
@@ -58,8 +58,8 @@ export class BusySignalProviderBase {
atom.workspace.observeActivePaneItem(item => {
if (
item != null &&
- typeof item.getPath === 'function' &&
- item.getPath() === options.onlyForFile
+ typeof item.getPath === 'function' &&
+ item.getPath() === options.onlyForFile
) {
if (displayedDisposable == null) {
displayedDisposable = this._displayMessage(message);
diff --git a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
index ce0b5de..ba424ea 100644
--- a/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
+++ b/pkg/nuclide-clang-rpc/lib/ClangFlagsManager.js
@@ -161,7 +161,7 @@ export default class ClangFlagsManager {
.filter(
path =>
ClangFlagsManager._getFileBasename(path) === basename &&
- isSourceFile(path),
+ isSourceFile(path),
)
.map(path => {
return {score: commonPrefix(path, header), path};
@@ -430,7 +430,7 @@ export default class ClangFlagsManager {
args = args.filter(
arg =>
normalizedSourceFile !== arg &&
- normalizedSourceFile !== nuclideUri.resolve(basePath, arg),
+ normalizedSourceFile !== nuclideUri.resolve(basePath, arg),
);
// Resolve relative path arguments against the Buck project root.
@@ -474,7 +474,7 @@ export default class ClangFlagsManager {
for (const file of files) {
if (
isSourceFile(file) &&
- ClangFlagsManager._getFileBasename(file) === basename
+ ClangFlagsManager._getFileBasename(file) === basename
) {
return nuclideUri.join(dir, file);
}
diff --git a/pkg/nuclide-clang/lib/AutocompleteHelpers.js b/pkg/nuclide-clang/lib/AutocompleteHelpers.js
index 460a30f..fb3320d 100644
--- a/pkg/nuclide-clang/lib/AutocompleteHelpers.js
+++ b/pkg/nuclide-clang/lib/AutocompleteHelpers.js
@@ -151,7 +151,7 @@ function _convertArgsToMultiLineSnippet(
}
const line = `${' '.repeat(spacesCnt)}${arg.text}:\${${index +
- 1}:${arg.placeholder}}\n`;
+ 1}:${arg.placeholder}}\n`;
if (index > 0 && line[colonPosition - arg.offset] !== ':') {
throw Error('This is a bug! Colons are not aligned!');
}
diff --git a/pkg/nuclide-clang/lib/ClangLinter.js b/pkg/nuclide-clang/lib/ClangLinter.js
index 7905481..3755c53 100644
--- a/pkg/nuclide-clang/lib/ClangLinter.js
+++ b/pkg/nuclide-clang/lib/ClangLinter.js
@@ -87,7 +87,7 @@ export default class ClangLinter {
invariant(bufferPath != null);
if (
data.accurateFlags ||
- featureConfig.get('nuclide-clang.defaultDiagnostics')
+ featureConfig.get('nuclide-clang.defaultDiagnostics')
) {
data.diagnostics.forEach(diagnostic => {
// We show only warnings, errors and fatals (2, 3 and 4, respectively).
diff --git a/pkg/nuclide-clang/lib/DefinitionHelpers.js b/pkg/nuclide-clang/lib/DefinitionHelpers.js
index 218e483..d47b20e 100644
--- a/pkg/nuclide-clang/lib/DefinitionHelpers.js
+++ b/pkg/nuclide-clang/lib/DefinitionHelpers.js
@@ -69,7 +69,7 @@ export default class DefinitionHelpers {
position: result.point,
range: result.extent,
language: 'clang'
- // TODO: projectRoot,
+ // TODO: projectRoot,,
};
if (result.spelling != null) {
diff --git a/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js b/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
index 4abd2e3..7604f27 100644
--- a/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
+++ b/pkg/nuclide-clang/spec/AutocompleteHelpers-spec.js
@@ -67,8 +67,8 @@ describe('AutocompleteHelpers', () => {
expect(body).toBe(
'ArgumentOne:${1:arg1}\n' +
- ' arg2:${2:argTwo}\n' +
- ' Argument3:${3:argument3}\n',
+ ' arg2:${2:argTwo}\n' +
+ ' Argument3:${3:argument3}\n',
);
});
@@ -134,9 +134,9 @@ describe('AutocompleteHelpers', () => {
expect(body).toBe(
'Arg1:${1:argumentOne}\n' +
- ' arg2:${2:argTwo}\n' +
- ' Argument3:${3:argument3}\n' +
- ' test123:${4:this_is_a_test_placeholder}\n',
+ ' arg2:${2:argTwo}\n' +
+ ' Argument3:${3:argument3}\n' +
+ ' test123:${4:this_is_a_test_placeholder}\n',
);
});
diff --git a/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js b/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
index adbca62..00a2885 100644
--- a/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
+++ b/pkg/nuclide-clang/spec/findWholeRangeOfSymbol-spec.js
@@ -72,7 +72,7 @@ describe('findWholeRangeOfSymbol', () => {
it(
'finds the range of a selector with multiple arguments, when any of the segments is the' +
- ' selected "text".',
+ ' selected "text".',
() => {
const spelling = 'createDirectoryAtPath:withIntermediateDirectories:attributes:error:';
// The ranges returned should be all the ranges of all the segments, including the colons.
diff --git a/pkg/nuclide-code-format/lib/CodeFormatManager.js b/pkg/nuclide-code-format/lib/CodeFormatManager.js
index 4d502de..306517e 100644
--- a/pkg/nuclide-code-format/lib/CodeFormatManager.js
+++ b/pkg/nuclide-code-format/lib/CodeFormatManager.js
@@ -127,7 +127,7 @@ export default class CodeFormatManager {
const provider = matchingProviders[0];
if (
provider.formatCode != null &&
- (!selectionRangeEmpty || provider.formatEntireFile == null)
+ (!selectionRangeEmpty || provider.formatEntireFile == null)
) {
const formatted = await provider.formatCode(editor, formatRange);
// Throws if contents have changed since the time of triggering format code.
diff --git a/pkg/nuclide-console/lib/LogTailer.js b/pkg/nuclide-console/lib/LogTailer.js
index 576ea84..8d042cc 100644
--- a/pkg/nuclide-console/lib/LogTailer.js
+++ b/pkg/nuclide-console/lib/LogTailer.js
@@ -71,9 +71,8 @@ export class LogTailer {
this._errorHandler = options.handleError;
const messages = options.messages.share();
this._ready = options.ready == null
- ? null
- : // Guard against a never-ending ready stream.
- // $FlowFixMe: Add `materialize()` to Rx defs
+ ? null // Guard against a never-ending ready stream.
+ : // $FlowFixMe: Add `materialize()` to Rx defs
options.ready.takeUntil(messages.materialize().takeLast(1));
this._runningCallbacks = [];
this._startCount = 0;
diff --git a/pkg/nuclide-console/lib/redux/Epics.js b/pkg/nuclide-console/lib/redux/Epics.js
index 449d7a0..6270c4d 100644
--- a/pkg/nuclide-console/lib/redux/Epics.js
+++ b/pkg/nuclide-console/lib/redux/Epics.js
@@ -65,8 +65,7 @@ export function executeEpic(
text: code,
scopeName: executor.scopeName,
}),
- )// Execute the code as a side-effect.
- .finally(() => {
+ ).finally(() => {
executor.send(code);
});
});
diff --git a/pkg/nuclide-console/lib/ui/Console.js b/pkg/nuclide-console/lib/ui/Console.js
index 227f648..97ec07e 100644
--- a/pkg/nuclide-console/lib/ui/Console.js
+++ b/pkg/nuclide-console/lib/ui/Console.js
@@ -137,7 +137,8 @@ export default class Console extends React.Component {
onSelectedSourcesChange={this.props.selectSources}
/>
{
- /*
+
+ /*
We need an extra wrapper element here in order to have the new messages notification stick
to the bottom of the scrollable area (and not scroll with it).
*/
diff --git a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
index f7312b9..6a824da 100644
--- a/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
+++ b/pkg/nuclide-console/lib/ui/UnseenMessagesNotification.js
@@ -32,6 +32,7 @@ export default class NewMessagesNotification extends React.Component {
<div className={className} onClick={this.props.onClick}>
<span className="nuclide-console-new-messages-notification-icon icon icon-nuclicon-arrow-down" />
+
New Messages
</div>
);
diff --git a/pkg/nuclide-console/spec/LogTailer-spec.js b/pkg/nuclide-console/spec/LogTailer-spec.js
index aa7ab8f..b8f4872 100644
--- a/pkg/nuclide-console/spec/LogTailer-spec.js
+++ b/pkg/nuclide-console/spec/LogTailer-spec.js
@@ -124,7 +124,7 @@ describe('LogTailer', () => {
it(
'invokes the running callback with a cancellation error when the source completes before ever' +
- ' becoming ready',
+ ' becoming ready',
() => {
const messages = new Subject();
const logTailer = new LogTailer({
diff --git a/pkg/nuclide-datatip/lib/DatatipManager.js b/pkg/nuclide-datatip/lib/DatatipManager.js
index e902fe6..5d67d49 100644
--- a/pkg/nuclide-datatip/lib/DatatipManager.js
+++ b/pkg/nuclide-datatip/lib/DatatipManager.js
@@ -435,8 +435,8 @@ class DatatipManagerForEditor {
if (
this._blacklistedPosition &&
- data.range &&
- data.range.containsPoint(this._blacklistedPosition)
+ data.range &&
+ data.range.containsPoint(this._blacklistedPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -445,8 +445,8 @@ class DatatipManagerForEditor {
const currentPosition = getPosition();
if (
!currentPosition ||
- !data.range ||
- !data.range.containsPoint(currentPosition)
+ !data.range ||
+ !data.range.containsPoint(currentPosition)
) {
this._setState(DatatipState.HIDDEN);
return;
@@ -473,7 +473,7 @@ class DatatipManagerForEditor {
_hideOrCancel(): void {
if (
this._datatipState === DatatipState.HIDDEN ||
- this._datatipState === DatatipState.FETCHING
+ this._datatipState === DatatipState.FETCHING
) {
this._blacklistedPosition = getBufferPosition(
this._editor,
@@ -512,8 +512,8 @@ class DatatipManagerForEditor {
);
if (
currentPosition &&
- this._range &&
- this._range.containsPoint(currentPosition)
+ this._range &&
+ this._range.containsPoint(currentPosition)
) {
return;
}
@@ -562,11 +562,11 @@ class DatatipManagerForEditor {
if (
this._datatipState === DatatipState.HIDDEN &&
- // Unfortunately, when you do keydown of the shortcut, it's going to
- // hide it, we need to make sure that when we do keyup, it doesn't show
- // it up right away. We assume that a keypress is done within 100ms
- // and don't show it again if it was hidden so soon.
- performance.now() - this._lastHiddenTime > 100
+ // Unfortunately, when you do keydown of the shortcut, it's going to
+ // hide it, we need to make sure that when we do keyup, it doesn't show
+ // it up right away. We assume that a keypress is done within 100ms
+ // and don't show it again if it was hidden so soon.
+ performance.now() - this._lastHiddenTime > 100
) {
this._startFetching(() => this._editor.getCursorScreenPosition());
return;
@@ -619,7 +619,7 @@ export class DatatipManager {
if (!manager) {
throw new Error(
'Trying to create a pinned data tip on an editor that has ' +
- 'no datatip manager',
+ 'no datatip manager',
);
}
return manager.createPinnedDataTip(component, range, pinnable, editor);
diff --git a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
index 9676740..6e2096f 100644
--- a/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
+++ b/pkg/nuclide-debugger-iwdp-rpc/lib/BreakpointManager.js
@@ -185,8 +185,8 @@ export class BreakpointManager {
// We will receive multiple responses, so just send the first non-error one.
if (
response.result != null &&
- response.error == null &&
- response.result.breakpointId != null
+ response.error == null &&
+ response.result.breakpointId != null
) {
breakpoint.jscId = response.result.breakpointId;
response.result.breakpointId = nuclideId;
diff --git a/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js b/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
index 46c8c0d..01f6100 100644
--- a/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
+++ b/pkg/nuclide-debugger-native-rpc/lib/NativeDebuggerServiceImplementation.js
@@ -209,7 +209,7 @@ export class NativeDebuggerService extends DebuggerRpcWebSocketService {
JSON.stringify({
message_id: messageJson.id,
}) +
- '\n',
+ '\n',
);
}
this
diff --git a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
index c18f933..5c4e0e2 100644
--- a/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-native/lib/AttachUIComponent.js
@@ -193,8 +193,8 @@ export class AttachUIComponent
.filter(
item =>
filterRegex.test(item.name) ||
- filterRegex.test(item.pid.toString()) ||
- filterRegex.test(item.commandName),
+ filterRegex.test(item.pid.toString()) ||
+ filterRegex.test(item.commandName),
)
.sort(compareFn)
.map((item, index) => {
@@ -207,7 +207,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
index be3f1d3..e0da0eb 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/DebuggerAgent.js
@@ -274,7 +274,7 @@ DebuggerAgent.prototype = {
if (!this._saveLiveEdit) {
this._warn(
'Saving of live-edit changes back to source files is disabled by configuration.\n' +
- 'Change the option "saveLiveEdit" in config.json to enable this feature.',
+ 'Change the option "saveLiveEdit" in config.json to enable this feature.',
);
return;
}
@@ -474,10 +474,10 @@ DebuggerAgent.prototype = {
if (!DebuggerAgent.nodeVersionHasSetVariableValue(version)) {
done(
'V8 engine in node version ' +
- version +
- ' does not support setting variable value from debugger.\n' +
- ' Please upgrade to version v0.10.12 (stable) or v0.11.2 (unstable)' +
- ' or newer.',
+ version +
+ ' does not support setting variable value from debugger.\n' +
+ ' Please upgrade to version v0.10.12 (stable) or v0.11.2 (unstable)' +
+ ' or newer.',
);
} else {
this._doSetVariableValue(params, done);
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
index 22b8715..7bba027 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/Injections/NetworkAgent.js
@@ -422,8 +422,8 @@ module.exports = function injection(require, debug, options) {
if (!options || !(options instanceof Object)) {
console.error(
'Unexpected state in node-inspector network profiling.\n' +
- 'Something wrong with request `options` object in frame #1\n' +
- 'Current stackstace:',
+ 'Something wrong with request `options` object in frame #1\n' +
+ 'Current stackstace:',
new Error().stack,
);
} else {
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
index 18af829..c3ec657 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorClient.js
@@ -177,11 +177,11 @@ InjectorClient.prototype.injection = function(injection, options, callback) {
{
expression: (
'(' +
- injection.toString() +
- ')' +
- '(process._require, process._debugObject, ' +
- JSON.stringify(options) +
- ')'
+ injection.toString() +
+ ')' +
+ '(process._require, process._debugObject, ' +
+ JSON.stringify(options) +
+ ')'
),
global: true,
},
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
index e3228d2..fb5c4c1 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/InjectorServer.js
@@ -54,9 +54,9 @@ function injectorServer(options) {
// Special check for NaN as NaN == NaN is false.
if (
mirror.isNumber() &&
- isNaN(mirror.value()) &&
- cached.isNumber() &&
- isNaN(cached.value())
+ isNaN(mirror.value()) &&
+ cached.isNumber() &&
+ isNaN(cached.value())
) {
return true;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
index 1db3d52..8875e8a 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/NetworkAgent.js
@@ -185,7 +185,7 @@ function loadFileResource(params, done) {
if (!match) {
return done(
'URL scheme not supported by Network.loadResourceForFrontend: ' +
- params.url,
+ params.url,
);
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
index eda1378..ba96926 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ProfilerAgent.js
@@ -103,11 +103,11 @@ ProfilerAgent.prototype._checkCompatibility = function() {
this._frontendClient.sendLogToConsole(
'warning',
'Your Node version (' +
- version +
- ') has a partial support of profiler.\n' +
- "The stack frames tree doesn't show all stack frames due to low sampling rate.\n" +
- 'The profiling data is incomplete and may show misleading results.\n' +
- 'Update Node to v0.11.13 or newer to get full support.',
+ version +
+ ') has a partial support of profiler.\n' +
+ "The stack frames tree doesn't show all stack frames due to low sampling rate.\n" +
+ 'The profiling data is incomplete and may show misleading results.\n' +
+ 'Update Node to v0.11.13 or newer to get full support.',
);
}
};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
index 02ccd47..0682bd1 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptFileStorage.js
@@ -7,10 +7,10 @@ var MODULE_HEADER = '(function (exports, require, module, __filename, __dirname)
var MODULE_TRAILER = '\n});';
var MODULE_WRAP_REGEX = new RegExp(
'^' +
- escapeRegex(MODULE_HEADER) +
- '([\\s\\S]*)' +
- escapeRegex(MODULE_TRAILER) +
- '$',
+ escapeRegex(MODULE_HEADER) +
+ '([\\s\\S]*)' +
+ escapeRegex(MODULE_TRAILER) +
+ '$',
);
var CONVENTIONAL_DIRS_PATTERN = [
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
index 972f98f..ff4bd27 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/ScriptManager.js
@@ -37,7 +37,7 @@ ScriptManager.prototype = Object.create(events.EventEmitter.prototype, {
if (!event.script) {
console.log(
'Unexpected error: debugger emitted afterCompile event' +
- 'with no script data.',
+ 'with no script data.',
);
return;
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
index 5750ff2..0379642 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node-inspector/lib/plugins.js
@@ -272,30 +272,30 @@ ProtocolJson.prototype._onItemConflict = function(
if (state.throwConflicts) {
throw new PluginError(
'Unresolved conflict in ' +
- state.section +
- ' section of `' +
- state.plugin +
- '` plugin: ' +
- 'item with ' +
- state.uname +
- ' `' +
- toMergeItem[state.uname] +
- '` already exists.',
+ state.section +
+ ' section of `' +
+ state.plugin +
+ '` plugin: ' +
+ 'item with ' +
+ state.uname +
+ ' `' +
+ toMergeItem[state.uname] +
+ '` already exists.',
);
} else {
console.warn(
'Item with ' +
- state.uname +
- ' `' +
- toMergeItem[state.uname] +
- '`' +
- ' in ' +
- state.section +
- ' section' +
- ' of ' +
- state.domain +
- ' domain' +
- ' was owerriden.',
+ state.uname +
+ ' `' +
+ toMergeItem[state.uname] +
+ '`' +
+ ' in ' +
+ state.section +
+ ' section' +
+ ' of ' +
+ state.domain +
+ ' domain' +
+ ' was owerriden.',
);
}
};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
index 58445a9..14a9981 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/debug/node.js
@@ -56,13 +56,11 @@ function useColors() {
* Map %o to `util.inspect()`, since Node doesn't do that out of the box.
*/
-var inspect = 4 === util.inspect.length
- ? // node <= 0.8.x
- (function(v, colors) {
+var inspect = 4 === util.inspect.length // node <= 0.8.x
+ ? (function(v, colors) {
return util.inspect(v, void 0, void 0, colors);
- })
- : // node > 0.8.x
- (function(v, colors) {
+ }) // node > 0.8.x
+ : (function(v, colors) {
return util.inspect(v, {colors: colors});
});
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
index 0f3c72c..a74c013 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/DebuggerScript.js
@@ -557,7 +557,7 @@
// Also drop empty Block scopes, should we get any.
if (
!properties.length &&
- (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
+ (scopeType === ScopeType.Script || scopeType === ScopeType.Block)
)
break;
result = {__proto__: null};
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
index 92d9109..a605053 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/InjectedScript/InjectedScriptSource.js
@@ -589,15 +589,15 @@
if (descriptor) {
if (
accessorPropertiesOnly &&
- !('get' in descriptor || 'set' in descriptor)
+ !('get' in descriptor || 'set' in descriptor)
)
continue;
if (
'get' in descriptor &&
- 'set' in descriptor &&
- name != '__proto__' &&
- InjectedScriptHost.isDOMWrapper(object) &&
- !doesAttributeHaveObservableSideEffectOnGet(object, name)
+ 'set' in descriptor &&
+ name != '__proto__' &&
+ InjectedScriptHost.isDOMWrapper(object) &&
+ !doesAttributeHaveObservableSideEffectOnGet(object, name)
) {
descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(
function(attribute) {
@@ -817,8 +817,8 @@
var func = InjectedScriptHost.eval(
"with (typeof __remoteObjectAPI !== 'undefined' ? __remoteObjectAPI : { __proto__: null }) {(" +
- expression +
- ')}',
+ expression +
+ ')}',
);
if (typeof func !== 'function')
return 'Given expression does not evaluate to a function';
@@ -1387,8 +1387,8 @@
if (
injectedScript.isPrimitiveValue(object) ||
- object === null ||
- forceValueType
+ object === null ||
+ forceValueType
) {
// We don't send undefined values over JSON.
if (this.type !== 'undefined') this.value = object;
@@ -1585,8 +1585,8 @@
if (
this.subtype === 'map' ||
- this.subtype === 'set' ||
- this.subtype === 'iterator'
+ this.subtype === 'set' ||
+ this.subtype === 'iterator'
)
this._appendEntriesPreview(object, preview, skipEntriesPreview);
} catch (e) {
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
index f8faade..64091af 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-debug/v8-debug.js
@@ -4,18 +4,18 @@ var path = require('path');
var pack = require('./package.json');
var binding = require(
'./' +
+ [
+ 'build',
+ 'debug',
+ 'v' + pack.version,
[
- 'build',
- 'debug',
- 'v' + pack.version,
- [
- 'node',
- 'v' + process.versions.modules,
- process.platform,
- process.arch,
- ].join('-'),
- 'debug.node',
- ].join('/'),
+ 'node',
+ 'v' + process.versions.modules,
+ process.platform,
+ process.arch,
+ ].join('-'),
+ 'debug.node',
+ ].join('/'),
);
var EventEmitter = require('events').EventEmitter;
var inherits = require('util').inherits;
@@ -255,8 +255,8 @@ V8Debug.prototype.enableWebkitProtocol = function() {
if (!NODE_NEXT) {
throw new Error(
'WebKit protocol is not supported on target node version (' +
- process.version +
- ')',
+ process.version +
+ ')',
);
}
diff --git a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
index cf8dda8..0f6699f 100644
--- a/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
+++ b/pkg/nuclide-debugger-node-rpc/VendorLib/node_modules/v8-profiler/v8-profiler.js
@@ -1,18 +1,18 @@
var pack = require('./package.json');
var binding = require(
'./' +
+ [
+ 'build',
+ 'profiler',
+ 'v' + pack.version,
[
- 'build',
- 'profiler',
- 'v' + pack.version,
- [
- 'node',
- 'v' + process.versions.modules,
- process.platform,
- process.arch,
- ].join('-'),
- 'profiler.node',
- ].join('/'),
+ 'node',
+ 'v' + process.versions.modules,
+ process.platform,
+ process.arch,
+ ].join('-'),
+ 'profiler.node',
+ ].join('/'),
);
var Stream = require('stream').Stream, inherits = require('util').inherits;
@@ -197,7 +197,7 @@ var profiler = {
startProfiling: function(name, recsamples) {
if (
activeProfiles.length == 0 &&
- typeof process._startProfilerIdleNotifier == 'function'
+ typeof process._startProfilerIdleNotifier == 'function'
)
process._startProfilerIdleNotifier();
@@ -229,7 +229,7 @@ var profiler = {
if (
activeProfiles.length == 0 &&
- typeof process._stopProfilerIdleNotifier == 'function'
+ typeof process._stopProfilerIdleNotifier == 'function'
)
process._stopProfilerIdleNotifier();
diff --git a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
index f33ac97..2c07a72 100644
--- a/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
+++ b/pkg/nuclide-debugger-node-rpc/lib/NodeDebuggerHost.js
@@ -47,7 +47,7 @@ export class NodeDebuggerHost {
debugPort,
preload: false, // This makes the node inspector not load all the source files on startup.
inject: false // This causes the node inspector to fail to send an initial pause message
- // on attach. We don't use this feature, so we turn it off.,
+ // on attach. We don't use this feature, so we turn it off.,,
};
const session = new Session(config, debugPort, websocket);
Observable.fromEvent(session, 'close').subscribe(this._close$);
diff --git a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
index a2a137d..6ba3a23 100644
--- a/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
+++ b/pkg/nuclide-debugger-node/lib/AttachUIComponent.js
@@ -197,8 +197,8 @@ export class AttachUIComponent
.filter(
item =>
filterRegex.test(item.name) ||
- filterRegex.test(item.pid.toString()) ||
- filterRegex.test(item.commandName),
+ filterRegex.test(item.pid.toString()) ||
+ filterRegex.test(item.commandName),
)
.sort(compareFn)
.map((item, index) => {
@@ -211,7 +211,7 @@ export class AttachUIComponent
};
if (
selectedAttachTarget != null &&
- row.data.pid === selectedAttachTarget.pid
+ row.data.pid === selectedAttachTarget.pid
) {
selectedIndex = index;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/Connection.js b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
index 1128cfe..a90705d 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/Connection.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/Connection.js
@@ -114,7 +114,7 @@ export class Connection {
}
if (
newStatus === ConnectionStatus.BreakMessageReceived &&
- prevStatus !== ConnectionStatus.BreakMessageSent
+ prevStatus !== ConnectionStatus.BreakMessageSent
) {
return;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
index ff18be2..d13baba 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionMultiplexer.js
@@ -381,7 +381,7 @@ export class ConnectionMultiplexer {
if (
this._status === ConnectionMultiplexerStatus.SingleConnectionPaused ||
- this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
+ this._status === ConnectionMultiplexerStatus.AllConnectionsPaused
) {
logger.log('Mux already in break status');
return;
@@ -431,7 +431,7 @@ export class ConnectionMultiplexer {
_pauseConnectionsIfNeeded(): void {
if (
getConfig().stopOneStopAll &&
- this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
+ this._status !== ConnectionMultiplexerStatus.UserAsyncBreakSent
) {
this._asyncBreak();
}
@@ -474,7 +474,7 @@ export class ConnectionMultiplexer {
_handlePotentialRequestSwitch(connection: Connection): void {
if (
this._previousConnection != null &&
- connection !== this._previousConnection
+ connection !== this._previousConnection
) {
// The enabled connection is different than it was last time the debugger paused
// so we know that the active request has switched so we should alert the user.
@@ -541,9 +541,7 @@ export class ConnectionMultiplexer {
const message = {
text: (
'Failed to evaluate ' +
- `"${expression}": (${result.error.$.code}) ${result.error.message[
- 0
- ]}`
+ `"${expression}": (${result.error.$.code}) ${result.error.message[0]}`
),
level: 'error',
};
@@ -611,8 +609,8 @@ export class ConnectionMultiplexer {
for (const connection of this._connections.values()) {
if (
connection !== this._enabledConnection &&
- (connection.getStopReason() === ASYNC_BREAK ||
- connection.getStatus() === ConnectionStatus.Starting)
+ (connection.getStopReason() === ASYNC_BREAK ||
+ connection.getStatus() === ConnectionStatus.Starting)
) {
connection.sendContinuationCommand(COMMAND_RUN);
}
@@ -691,9 +689,9 @@ export class ConnectionMultiplexer {
async _checkForEnd(): Promise<void> {
if (
this._onlyDummyRemains() &&
- (this._attachConnector == null ||
- this._launchConnector == null ||
- getConfig().endDebugWhenNoRequests)
+ (this._attachConnector == null ||
+ this._launchConnector == null ||
+ getConfig().endDebugWhenNoRequests)
) {
if (this._launchedScriptProcessPromise != null) {
await this._launchedScriptProcessPromise;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
index 751042b..bbac76a 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/ConnectionUtils.js
@@ -70,9 +70,9 @@ export function isCorrectConnection(
const init = message.init;
if (
!init.engine ||
- !init.engine ||
- !init.engine[0] ||
- init.engine[0]._.toLowerCase() !== 'xdebug'
+ !init.engine ||
+ !init.engine[0] ||
+ init.engine[0]._.toLowerCase() !== 'xdebug'
) {
logger.logError('Incorrect engine');
return false;
@@ -81,8 +81,8 @@ export function isCorrectConnection(
const attributes = init.$;
if (
attributes.xmlns !== 'urn:debugger_protocol_v1' ||
- attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
- attributes.language !== 'PHP'
+ attributes['xmlns:xdebug'] !== 'http://xdebug.org/dbgp/xdebug' ||
+ attributes.language !== 'PHP'
) {
logger.logError('Incorrect attributes');
return false;
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
index fd55b2a..82e3737 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpConnector.js
@@ -78,8 +78,14 @@ export class DbgpConnector {
const server = net.createServer();
server.on('close', socket => logger.log('Closing port ' + this._port));
- server.listen(this._port, undefined, undefined, () => // Hostname. // Backlog -- the maximum length of the queue of pending connections.
- logger.log('Listening on port ' + this._port));
+ server.listen(
+ this._port,
+ undefined,
+ undefined,
+ () =>
+ // Hostname. // Backlog -- the maximum length of the queue of pending connections.
+ logger.log('Listening on port ' + this._port),
+ );
server.on('error', error => this._onServerError(error));
server.on('connection', socket => this._onSocketConnection(socket));
@@ -125,11 +131,11 @@ export class DbgpConnector {
this._failConnection(
socket,
'Non XML connection string: ' +
- data.toString() +
- '. Discarding connection.',
+ data.toString() +
+ '. Discarding connection.',
'PHP sent a malformed request, please file a bug to the Nuclide developers.<br />' +
- 'Restarting the Nuclide Server may fix the issue.<br />' +
- 'Error: Non XML connection string.',
+ 'Restarting the Nuclide Server may fix the issue.<br />' +
+ 'Error: Non XML connection string.',
);
return;
}
@@ -139,7 +145,7 @@ export class DbgpConnector {
socket,
'Expected a single connection message. Got ' + messages.length,
'PHP sent a malformed request, please file a bug to the Nuclide developers.<br />' +
- 'Error: Expected a single connection message.',
+ 'Error: Expected a single connection message.',
);
return;
}
@@ -164,10 +170,10 @@ export class DbgpConnector {
if (!this.isListening()) {
logger.log(
'Ignoring ' +
- message +
- ' on port ' +
- this._port +
- ' after stopped connection.',
+ message +
+ ' on port ' +
+ this._port +
+ ' after stopped connection.',
);
return false;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
index 2bfd9a4..5e9113e 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpMessageHandler.js
@@ -65,8 +65,8 @@ export class DbgpMessageHandler {
if (prevIncompletedMessage && components.length !== 0) {
logger.logErrorAndThrow(
'Error: got extra messages without completing previous message. ' +
- `Previous message was: ${JSON.stringify(prevIncompletedMessage)}. ` +
- `Remaining components: ${JSON.stringify(components)}`,
+ `Previous message was: ${JSON.stringify(prevIncompletedMessage)}. ` +
+ `Remaining components: ${JSON.stringify(components)}`,
);
}
@@ -78,7 +78,7 @@ export class DbgpMessageHandler {
if (lastComponent.length !== 0) {
logger.logErrorAndThrow(
'The complete response should terminate with' +
- ` zero character while got: ${lastComponent} `,
+ ` zero character while got: ${lastComponent} `,
);
}
}
@@ -93,7 +93,7 @@ export class DbgpMessageHandler {
if (!this._isIncompletedMessage(lastMessage)) {
logger.logErrorAndThrow(
'The last message should be a fragment of a full message: ' +
- JSON.stringify(lastMessage),
+ JSON.stringify(lastMessage),
);
}
prevIncompletedMessage = lastMessage;
@@ -109,8 +109,8 @@ export class DbgpMessageHandler {
if (!this._isCompletedMessage(message)) {
logger.logErrorAndThrow(
`Got message length(${message.content.length}) ` +
- `not equal to expected(${message.length}). ` +
- `Message was: ${JSON.stringify(message)}`,
+ `not equal to expected(${message.length}). ` +
+ `Message was: ${JSON.stringify(message)}`,
);
}
results.push(this._parseXml(message));
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
index 3b23daf..bac95f7 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DbgpSocket.js
@@ -312,9 +312,9 @@ export class DbgpSocket {
if (call.command !== command) {
logger.logError(
'Bad command in response. Found ' +
- command +
- '. expected ' +
- call.command,
+ command +
+ '. expected ' +
+ call.command,
);
return;
}
@@ -552,9 +552,9 @@ export class DbgpSocket {
);
if (
response.error != null ||
- response.breakpoint == null ||
- response.breakpoint[0] == null ||
- response.breakpoint[0].$ == null
+ response.breakpoint == null ||
+ response.breakpoint[0] == null ||
+ response.breakpoint[0].$ == null
) {
throw new Error('Error getting breakpoint: ' + JSON.stringify(response));
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js b/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
index 3bc2c85..e634fc8 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/DebuggerHandler.js
@@ -167,7 +167,7 @@ export class DebuggerHandler extends Handler {
this.replyWithError(
id,
'Invalid arguments to Debugger.setBreakpointByUrl: ' +
- JSON.stringify(params),
+ JSON.stringify(params),
);
return;
}
diff --git a/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js b/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
index 0c69af9..880f13c 100644
--- a/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
+++ b/pkg/nuclide-debugger-php-rpc/lib/PhpDebuggerService.js
@@ -136,7 +136,7 @@ export class PhpDebuggerService {
type: 'warning',
message: (
'You may have an hphpd instance currently attached to your server!' +
- '<br />Please kill it, or the Nuclide debugger may not work properly.'
+ '<br />Please kill it, or the Nuclide debugger may not work properly.'
),
});
}
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
index 4414b24..26e6bfd 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpConnector-spec.js
@@ -192,7 +192,7 @@ describe('debugger-php-rpc DbgpConnector', () => {
expect(emitted).toBe(true);
expect(onError).toHaveBeenCalledWith(
`Can't start debugging because port ${port} is being used by another process. ` +
- "Try running 'killall node' on your devserver and then restarting Nuclide.",
+ "Try running 'killall node' on your devserver and then restarting Nuclide.",
);
expect(server.close).toHaveBeenCalledWith();
expect(onClose).toHaveBeenCalledWith(undefined);
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
index 89c37ee..f163e52 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpMessageHandler-spec.js
@@ -40,8 +40,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const results = messageHandler.parseMessages(message);
expect(results.length).toBe(1);
@@ -54,8 +54,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const message2 = makeMessage(
{
@@ -63,8 +63,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '2',
},
'<context name="Local2" id="0"/>' +
- '<context name="Global2" id="1"/>' +
- '<context name="Class2" id="2"/>',
+ '<context name="Global2" id="1"/>' +
+ '<context name="Class2" id="2"/>',
);
const results = messageHandler.parseMessages(message1 + message2);
expect(results.length).toBe(2);
@@ -89,8 +89,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const completedMessage2 = makeDbgpMessage(payload);
@@ -149,8 +149,8 @@ describe('debugger-php-rpc DbgpMessageHandler', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const results = messageHandler.parseMessages(messagePart1);
diff --git a/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js b/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
index 3e2022c..3b3963d 100644
--- a/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
+++ b/pkg/nuclide-debugger-php-rpc/spec/DbgpSocket-spec.js
@@ -223,7 +223,7 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<stack where="foo" level="0" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="4"></stack>' +
- '<stack where="{main}" level="1" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="10"></stack>',
+ '<stack where="{main}" level="1" type="file" filename="file:///home/peterhal/test/dbgp/test-client.php" lineno="10"></stack>',
);
const result = await call;
@@ -338,8 +338,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const result = await call;
expect(result).toEqual([
@@ -410,8 +410,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '1',
},
'<context name="Local" id="0"/>' +
- '<context name="Global" id="1"/>' +
- '<context name="Class" id="2"/>',
+ '<context name="Global" id="1"/>' +
+ '<context name="Class" id="2"/>',
);
const message2 = makeMessage(
{
@@ -419,8 +419,8 @@ describe('debugger-php-rpc DbgpSocket', () => {
transaction_id: '2',
},
'<context name="Local2" id="0"/>' +
- '<context name="Global2" id="1"/>' +
- '<context name="Class2" id="2"/>',
+ '<context name="Global2" id="1"/>' +
+ '<context name="Class2" id="2"/>',
);
onData(message1 + message2);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
index 73d024a..f8d320a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/Runtime.js
@@ -65,9 +65,9 @@ function loadResourcePromise(url) {
)
reject(new Error(
'While loading from url ' +
- url +
- ' server responded with a status of ' +
- xhr.status,
+ url +
+ ' server responded with a status of ' +
+ xhr.status,
));
else
fulfill(e.target.response);
@@ -97,8 +97,8 @@ function normalizePath(path) {
if (path[0] === '/' && normalizedPath) normalizedPath = '/' + normalizedPath;
if (
path[path.length - 1] === '/' ||
- segments[segments.length - 1] === '.' ||
- segments[segments.length - 1] === '..'
+ segments[segments.length - 1] === '.' ||
+ segments[segments.length - 1] === '..'
)
normalizedPath = normalizedPath + '/';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
index 513e57e..58761c4 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/BreakpointManager.js
@@ -190,7 +190,7 @@ WebInspector.BreakpointManager.prototype = {
this._restoreBreakpoints(uiSourceCode);
if (
uiSourceCode.contentType() === WebInspector.resourceTypes.Script ||
- uiSourceCode.contentType() === WebInspector.resourceTypes.Document
+ uiSourceCode.contentType() === WebInspector.resourceTypes.Document
)
uiSourceCode.addEventListener(
WebInspector.UISourceCode.Events.SourceMappingChanged,
@@ -664,7 +664,7 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_removeUILocation: function(uiLocation, muteCreationFakeBreakpoint) {
if (
!uiLocation ||
- --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
+ --this._numberOfDebuggerLocationForUILocation[uiLocation.id()] !== 0
)
return;
@@ -749,8 +749,8 @@ WebInspector.BreakpointManager.Breakpoint.prototype = {
_fakeBreakpointAtPrimaryLocation: function() {
if (
this._isRemoved ||
- !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
- this._fakePrimaryLocation
+ !Object.isEmpty(this._numberOfDebuggerLocationForUILocation) ||
+ this._fakePrimaryLocation
)
return;
@@ -897,8 +897,8 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
var newState;
if (
this._breakpoint._isRemoved ||
- !this._breakpoint.enabled() ||
- this._scriptDiverged()
+ !this._breakpoint.enabled() ||
+ this._scriptDiverged()
)
newState = null;
else if (debuggerLocation) {
@@ -943,10 +943,10 @@ WebInspector.BreakpointManager.TargetBreakpoint.prototype = {
}
if (
this._debuggerId &&
- WebInspector.BreakpointManager.Breakpoint.State.equals(
- newState,
- this._currentState,
- )
+ WebInspector.BreakpointManager.Breakpoint.State.equals(
+ newState,
+ this._currentState,
+ )
) {
callback();
return;
@@ -1183,10 +1183,10 @@ WebInspector.BreakpointManager.Storage = function(breakpointManager, setting) {
breakpoint.columnNumber = breakpoint.columnNumber || 0;
this._breakpoints[
breakpoint.sourceFileId +
- ':' +
- breakpoint.lineNumber +
- ':' +
- breakpoint.columnNumber
+ ':' +
+ breakpoint.lineNumber +
+ ':' +
+ breakpoint.columnNumber
] = breakpoint;
}
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
index 205fe4b..d6db103 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -235,7 +235,7 @@ WebInspector.CompilerScriptMapping.prototype = {
this._sourceMapForURL.set(sourceURL, sourceMap);
if (
!this._networkMapping.hasMappingForURL(sourceURL) &&
- !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
+ !this._networkMapping.uiSourceCodeForURL(sourceURL, script.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
sourceURL,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
index 72178a0..dee5aaf 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/Linkifier.js
@@ -109,7 +109,7 @@ WebInspector.Linkifier.linkifyUsingRevealer = function(
event.preventDefault();
if (
fallbackHref &&
- WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
+ WebInspector.Linkifier.handleLink(fallbackHref, fallbackLineNumber)
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
index 33bd964..262c913 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/NetworkProject.js
@@ -384,8 +384,8 @@ WebInspector.NetworkProject.prototype = {
var type = contentProvider.contentType();
if (
type !== WebInspector.resourceTypes.Stylesheet &&
- type !== WebInspector.resourceTypes.Document &&
- type !== WebInspector.resourceTypes.Script
+ type !== WebInspector.resourceTypes.Document &&
+ type !== WebInspector.resourceTypes.Script
)
return;
if (this._processedURLs[url]) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
index abcd877..0845d14 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/PresentationConsoleMessageHelper.js
@@ -249,7 +249,7 @@ WebInspector.PresentationConsoleMessageHelper.prototype = {
var rawLocation = this._rawLocation(message);
if (
script.target() === message.target() &&
- script.scriptId === rawLocation.scriptId
+ script.scriptId === rawLocation.scriptId
)
this._addConsoleMessageToScript(message, rawLocation);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
index 745d3ab..e18b5ae 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -84,8 +84,8 @@ WebInspector.ResourceScriptMapping.prototype = {
var scriptFile = this.scriptFile(uiSourceCode);
if (
scriptFile &&
- (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
- scriptFile.isDivergingFromVM())
+ (scriptFile.hasDivergedFromVM() && !scriptFile.isMergingToVM() ||
+ scriptFile.isDivergingFromVM())
)
return null;
var lineNumber = debuggerModelLocation.lineNumber -
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
index 41a6c6e..e57bfa8 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/ResourceUtils.js
@@ -74,8 +74,8 @@ WebInspector.displayNameForURL = function(url) {
.indexOf(lastPathComponent);
if (
index !== -1 &&
- index + lastPathComponent.length ===
- WebInspector.targetManager.inspectedPageURL().length
+ index + lastPathComponent.length ===
+ WebInspector.targetManager.inspectedPageURL().length
) {
var baseURL = WebInspector.targetManager
.inspectedPageURL()
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
index a732b3d..8c6e772 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/bindings/SASSSourceMapping.js
@@ -194,10 +194,10 @@ WebInspector.SASSSourceMapping.prototype = {
if (statusCode >= 400) {
console.error(
'Could not load content for ' +
- sassURL +
- ' : ' +
- 'HTTP status code: ' +
- statusCode,
+ sassURL +
+ ' : ' +
+ 'HTTP status code: ' +
+ statusCode,
);
return;
}
@@ -342,10 +342,10 @@ WebInspector.SASSSourceMapping.prototype = {
if (statusCode >= 400) {
console.error(
'Could not load content for ' +
- cssURL +
- ' : ' +
- 'HTTP status code: ' +
- statusCode,
+ cssURL +
+ ' : ' +
+ 'HTTP status code: ' +
+ statusCode,
);
callback(cssURL, sassURL, true);
return;
@@ -452,8 +452,8 @@ WebInspector.SASSSourceMapping.prototype = {
addHeader: function(header) {
if (
!header.sourceMapURL ||
- !header.sourceURL ||
- !WebInspector.settings.cssSourceMapsEnabled.get()
+ !header.sourceURL ||
+ !WebInspector.settings.cssSourceMapsEnabled.get()
)
return;
var completeSourceMapURL = WebInspector.ParsedURL.completeURL(
@@ -477,8 +477,8 @@ WebInspector.SASSSourceMapping.prototype = {
var sourceURL = header.sourceURL;
if (
!sourceURL ||
- !header.sourceMapURL ||
- !this._completeSourceMapURLForCSSURL[sourceURL]
+ !header.sourceMapURL ||
+ !this._completeSourceMapURLForCSSURL[sourceURL]
)
return;
delete this._sourceMapByStyleSheetURL[sourceURL];
@@ -612,7 +612,7 @@ WebInspector.SASSSourceMapping.prototype = {
this._addCSSURLforSASSURL(rawURL, url);
if (
!this._networkMapping.hasMappingForURL(url) &&
- !this._networkMapping.uiSourceCodeForURL(url, header.target())
+ !this._networkMapping.uiSourceCodeForURL(url, header.target())
) {
var contentProvider = sourceMap.sourceContentProvider(
url,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
index 9c4b028..e4d17d5 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/clike.js
@@ -154,7 +154,7 @@
if (
(curPunc == ';' || curPunc == ':' || curPunc == ',') &&
- ctx.type == 'statement'
+ ctx.type == 'statement'
)
popContext(state);
else if (curPunc == '{')
@@ -172,7 +172,7 @@
} else if (curPunc == ctx.type) popContext(state);
else if (
(ctx.type == '}' || ctx.type == 'top') && curPunc != ';' ||
- ctx.type == 'statement' && curPunc == 'newstatement'
+ ctx.type == 'statement' && curPunc == 'newstatement'
)
pushContext(state, stream.column(), 'statement');
state.startOfLine = false;
@@ -311,11 +311,11 @@
name: 'clike',
keywords: words(
cKeywords +
- ' asm dynamic_cast namespace reinterpret_cast try bool explicit new ' +
- 'static_cast typeid catch operator template typename class friend private ' +
- 'this using const_cast inline public throw virtual delete mutable protected ' +
- 'wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final ' +
- 'static_assert override',
+ ' asm dynamic_cast namespace reinterpret_cast try bool explicit new ' +
+ 'static_cast typeid catch operator template typename class friend private ' +
+ 'this using const_cast inline public throw virtual delete mutable protected ' +
+ 'wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final ' +
+ 'static_assert override',
),
blockKeywords: words(
'catch class do else finally for if struct switch try while',
@@ -334,10 +334,10 @@
name: 'clike',
keywords: words(
'abstract assert boolean break byte case catch char class const continue default ' +
- 'do double else enum extends final finally float for goto if implements import ' +
- 'instanceof int interface long native new package private protected public ' +
- 'return short static strictfp super switch synchronized this throw throws transient ' +
- 'try void volatile while',
+ 'do double else enum extends final finally float for goto if implements import ' +
+ 'instanceof int interface long native new package private protected public ' +
+ 'return short static strictfp super switch synchronized this throw throws transient ' +
+ 'try void volatile while',
),
blockKeywords: words('catch class do else finally for if switch try while'),
atoms: words('true false null'),
@@ -353,21 +353,21 @@
name: 'clike',
keywords: words(
'abstract as base break case catch checked class const continue' +
- ' default delegate do else enum event explicit extern finally fixed for' +
- ' foreach goto if implicit in interface internal is lock namespace new' +
- ' operator out override params private protected public readonly ref return sealed' +
- ' sizeof stackalloc static struct switch this throw try typeof unchecked' +
- ' unsafe using virtual void volatile while add alias ascending descending dynamic from get' +
- ' global group into join let orderby partial remove select set value var yield',
+ ' default delegate do else enum event explicit extern finally fixed for' +
+ ' foreach goto if implicit in interface internal is lock namespace new' +
+ ' operator out override params private protected public readonly ref return sealed' +
+ ' sizeof stackalloc static struct switch this throw try typeof unchecked' +
+ ' unsafe using virtual void volatile while add alias ascending descending dynamic from get' +
+ ' global group into join let orderby partial remove select set value var yield',
),
blockKeywords: words(
'catch class do else finally for foreach if struct switch try while',
),
builtin: words(
'Boolean Byte Char DateTime DateTimeOffset Decimal Double' +
- ' Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32' +
- ' UInt64 bool byte char decimal double short int long object' +
- ' sbyte float string ushort uint ulong',
+ ' Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32' +
+ ' UInt64 bool byte char decimal double short int long object' +
+ ' sbyte float string ushort uint ulong',
),
atoms: words('true false null'),
hooks: {
@@ -386,22 +386,22 @@
keywords: words(
/* scala */
'abstract case catch class def do else extends false final finally for forSome if ' +
- 'implicit import lazy match new null object override package private protected return ' +
- 'sealed super this throw trait try trye type val var while with yield _ : = => <- <: ' +
- '<% >: # @ ' +
- /* package scala */
- 'assert assume require print println printf readLine readBoolean readByte readShort ' +
- 'readChar readInt readLong readFloat readDouble ' +
- 'AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either ' +
- 'Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable ' +
- 'Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering ' +
- 'Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder ' +
- 'StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: ' +
- /* package java.lang */
- 'Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable ' +
- 'Compiler Double Exception Float Integer Long Math Number Object Package Pair Process ' +
- 'Runtime Runnable SecurityManager Short StackTraceElement StrictMath String ' +
- 'StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void',
+ 'implicit import lazy match new null object override package private protected return ' +
+ 'sealed super this throw trait try trye type val var while with yield _ : = => <- <: ' +
+ '<% >: # @ ' +
+ /* package scala */
+ 'assert assume require print println printf readLine readBoolean readByte readShort ' +
+ 'readChar readInt readLong readFloat readDouble ' +
+ 'AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either ' +
+ 'Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable ' +
+ 'Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering ' +
+ 'Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder ' +
+ 'StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: ' +
+ /* package java.lang */
+ 'Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable ' +
+ 'Compiler Double Exception Float Integer Long Math Number Object Package Pair Process ' +
+ 'Runtime Runnable SecurityManager Short StackTraceElement StrictMath String ' +
+ 'StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void',
),
blockKeywords: words(
'catch class do else finally for forSome if match switch try while',
@@ -418,61 +418,61 @@
name: 'clike',
keywords: words(
'float int bool void ' +
- 'vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 ' +
- 'mat2 mat3 mat4 ' +
- 'sampler1D sampler2D sampler3D samplerCube ' +
- 'sampler1DShadow sampler2DShadow' +
- 'const attribute uniform varying ' +
- 'break continue discard return ' +
- 'for while do if else struct ' +
- 'in out inout',
+ 'vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 ' +
+ 'mat2 mat3 mat4 ' +
+ 'sampler1D sampler2D sampler3D samplerCube ' +
+ 'sampler1DShadow sampler2DShadow' +
+ 'const attribute uniform varying ' +
+ 'break continue discard return ' +
+ 'for while do if else struct ' +
+ 'in out inout',
),
blockKeywords: words('for while do if else struct'),
builtin: words(
'radians degrees sin cos tan asin acos atan ' +
- 'pow exp log exp2 sqrt inversesqrt ' +
- 'abs sign floor ceil fract mod min max clamp mix step smootstep ' +
- 'length distance dot cross normalize ftransform faceforward ' +
- 'reflect refract matrixCompMult ' +
- 'lessThan lessThanEqual greaterThan greaterThanEqual ' +
- 'equal notEqual any all not ' +
- 'texture1D texture1DProj texture1DLod texture1DProjLod ' +
- 'texture2D texture2DProj texture2DLod texture2DProjLod ' +
- 'texture3D texture3DProj texture3DLod texture3DProjLod ' +
- 'textureCube textureCubeLod ' +
- 'shadow1D shadow2D shadow1DProj shadow2DProj ' +
- 'shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod ' +
- 'dFdx dFdy fwidth ' +
- 'noise1 noise2 noise3 noise4',
+ 'pow exp log exp2 sqrt inversesqrt ' +
+ 'abs sign floor ceil fract mod min max clamp mix step smootstep ' +
+ 'length distance dot cross normalize ftransform faceforward ' +
+ 'reflect refract matrixCompMult ' +
+ 'lessThan lessThanEqual greaterThan greaterThanEqual ' +
+ 'equal notEqual any all not ' +
+ 'texture1D texture1DProj texture1DLod texture1DProjLod ' +
+ 'texture2D texture2DProj texture2DLod texture2DProjLod ' +
+ 'texture3D texture3DProj texture3DLod texture3DProjLod ' +
+ 'textureCube textureCubeLod ' +
+ 'shadow1D shadow2D shadow1DProj shadow2DProj ' +
+ 'shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod ' +
+ 'dFdx dFdy fwidth ' +
+ 'noise1 noise2 noise3 noise4',
),
atoms: words(
'true false ' +
- 'gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex ' +
- 'gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 ' +
- 'gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' +
- 'gl_FogCoord ' +
- 'gl_Position gl_PointSize gl_ClipVertex ' +
- 'gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor ' +
- 'gl_TexCoord gl_FogFragCoord ' +
- 'gl_FragCoord gl_FrontFacing ' +
- 'gl_FragColor gl_FragData gl_FragDepth ' +
- 'gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix ' +
- 'gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse ' +
- 'gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse ' +
- 'gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose ' +
- 'gl_ProjectionMatrixInverseTranspose ' +
- 'gl_ModelViewProjectionMatrixInverseTranspose ' +
- 'gl_TextureMatrixInverseTranspose ' +
- 'gl_NormalScale gl_DepthRange gl_ClipPlane ' +
- 'gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel ' +
- 'gl_FrontLightModelProduct gl_BackLightModelProduct ' +
- 'gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ ' +
- 'gl_FogParameters ' +
- 'gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords ' +
- 'gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats ' +
- 'gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits ' +
- 'gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits ' +
- 'gl_MaxDrawBuffers',
+ 'gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex ' +
+ 'gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 ' +
+ 'gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 ' +
+ 'gl_FogCoord ' +
+ 'gl_Position gl_PointSize gl_ClipVertex ' +
+ 'gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor ' +
+ 'gl_TexCoord gl_FogFragCoord ' +
+ 'gl_FragCoord gl_FrontFacing ' +
+ 'gl_FragColor gl_FragData gl_FragDepth ' +
+ 'gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix ' +
+ 'gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse ' +
+ 'gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse ' +
+ 'gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose ' +
+ 'gl_ProjectionMatrixInverseTranspose ' +
+ 'gl_ModelViewProjectionMatrixInverseTranspose ' +
+ 'gl_TextureMatrixInverseTranspose ' +
+ 'gl_NormalScale gl_DepthRange gl_ClipPlane ' +
+ 'gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel ' +
+ 'gl_FrontLightModelProduct gl_BackLightModelProduct ' +
+ 'gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ ' +
+ 'gl_FogParameters ' +
+ 'gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords ' +
+ 'gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats ' +
+ 'gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits ' +
+ 'gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits ' +
+ 'gl_MaxDrawBuffers',
),
hooks: {'#': cppHook},
modeProps: {fold: ['brace', 'include']},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
index 53153df..4909d95 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/closebrackets.js
@@ -83,22 +83,22 @@
curType = 'skip';
} else if (
left == right &&
- cur.ch > 1 &&
- cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
- (cur.ch <= 2 ||
- cm.getRange(
- Pos(cur.line, cur.ch - 3),
- Pos(cur.line, cur.ch - 2),
- ) !=
- left)
+ cur.ch > 1 &&
+ cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left &&
+ (cur.ch <= 2 ||
+ cm.getRange(
+ Pos(cur.line, cur.ch - 3),
+ Pos(cur.line, cur.ch - 2),
+ ) !=
+ left)
)
curType = 'addFour';
else if (left == right && CodeMirror.isWordChar(next))
return CodeMirror.Pass;
else if (
cm.getLine(cur.line).length == cur.ch ||
- closingBrackets.indexOf(next) >= 0 ||
- SPACE_CHAR_REGEX.test(next)
+ closingBrackets.indexOf(next) >= 0 ||
+ SPACE_CHAR_REGEX.test(next)
)
curType = 'both';
else
@@ -134,11 +134,11 @@
var range = ranges[i];
if (
!range.empty() ||
- cm.getRange(
- range.head,
- Pos(range.head.line, range.head.ch + 1),
- ) !=
- right
+ cm.getRange(
+ range.head,
+ Pos(range.head.line, range.head.ch + 1),
+ ) !=
+ right
)
return CodeMirror.Pass;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
index 07c0a02..7501d66 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/codemirror.js
@@ -134,8 +134,8 @@
// measuring on line wrapping boundaries.
if (
webkit &&
- options.lineWrapping &&
- getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
+ options.lineWrapping &&
+ getComputedStyle(display.lineDiv).textRendering == 'optimizelegibility'
)
display.lineDiv.style.textRendering = 'auto';
}
@@ -644,7 +644,7 @@
for (
var i = 0;
i < 4 && startWidth != cm.display.barWidth ||
- startHeight != cm.display.barHeight;
+ startHeight != cm.display.barHeight;
i++
) {
if (startWidth != cm.display.barWidth && cm.options.lineWrapping)
@@ -672,8 +672,8 @@
d.scrollbarFiller.style.display = '';
if (
sizes.bottom &&
- cm.options.coverGutterNextToScrollbar &&
- cm.options.fixedGutter
+ cm.options.coverGutterNextToScrollbar &&
+ cm.options.fixedGutter
) {
d.gutterFiller.style.display = 'block';
d.gutterFiller.style.height = sizes.bottom + 'px';
@@ -725,7 +725,7 @@
var display = cm.display, view = display.view;
if (
!display.alignWidgets &&
- (!display.gutters.firstChild || !cm.options.fixedGutter)
+ (!display.gutters.firstChild || !cm.options.fixedGutter)
)
return;
var comp = compensateForHScroll(display) -
@@ -830,12 +830,12 @@
// Bail out if the visible area is already rendered and nothing changed.
if (
!update.force &&
- update.visible.from >= display.viewFrom &&
- update.visible.to <= display.viewTo &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo) &&
- display.renderedView == display.view &&
- countDirtyView(cm) == 0
+ update.visible.from >= display.viewFrom &&
+ update.visible.to <= display.viewTo &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo) &&
+ display.renderedView == display.view &&
+ countDirtyView(cm) == 0
)
return false;
@@ -873,11 +873,11 @@
var toUpdate = countDirtyView(cm);
if (
!different &&
- toUpdate == 0 &&
- !update.force &&
- display.renderedView == display.view &&
- (display.updateLineNumbers == null ||
- display.updateLineNumbers >= display.viewTo)
+ toUpdate == 0 &&
+ !update.force &&
+ display.renderedView == display.view &&
+ (display.updateLineNumbers == null ||
+ display.updateLineNumbers >= display.viewTo)
)
return false;
@@ -915,8 +915,8 @@
for (var first = true; ; first = false) {
if (
first &&
- cm.options.lineWrapping &&
- update.oldDisplayWidth != displayWidth(cm)
+ cm.options.lineWrapping &&
+ update.oldDisplayWidth != displayWidth(cm)
) {
force = true;
} else {
@@ -934,7 +934,7 @@
update.visible = visibleLines(cm.display, cm.doc, viewport);
if (
update.visible.from >= cm.display.viewFrom &&
- update.visible.to <= cm.display.viewTo
+ update.visible.to <= cm.display.viewTo
)
break;
}
@@ -949,7 +949,7 @@
signalLater(cm, 'update', cm);
if (
cm.display.viewFrom != cm.display.reportedViewFrom ||
- cm.display.viewTo != cm.display.reportedViewTo
+ cm.display.viewTo != cm.display.reportedViewTo
) {
signalLater(
cm,
@@ -1198,10 +1198,10 @@
null,
'CodeMirror-gutter-wrapper',
'left: ' +
- (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
- 'px; width: ' +
- dims.gutterTotalWidth +
- 'px',
+ (cm.options.fixedGutter ? dims.fixedPos : -dims.gutterTotalWidth) +
+ 'px; width: ' +
+ dims.gutterTotalWidth +
+ 'px',
),
lineView.text,
);
@@ -1209,7 +1209,7 @@
gutterWrap.className += ' ' + lineView.line.gutterClass;
if (
cm.options.lineNumbers &&
- (!markers || !markers['CodeMirror-linenumbers'])
+ (!markers || !markers['CodeMirror-linenumbers'])
)
lineView.lineNumber = gutterWrap.appendChild(
elt(
@@ -1217,10 +1217,10 @@
lineNumberFor(cm.options, lineN),
'CodeMirror-linenumber CodeMirror-gutter-elt',
'left: ' +
- dims.gutterLeft['CodeMirror-linenumbers'] +
- 'px; width: ' +
- cm.display.lineNumInnerWidth +
- 'px',
+ dims.gutterLeft['CodeMirror-linenumbers'] +
+ 'px; width: ' +
+ cm.display.lineNumInnerWidth +
+ 'px',
),
);
if (markers)
@@ -1234,10 +1234,10 @@
[found],
'CodeMirror-gutter-elt',
'left: ' +
- dims.gutterLeft[id] +
- 'px; width: ' +
- dims.gutterWidth[id] +
- 'px',
+ dims.gutterLeft[id] +
+ 'px; width: ' +
+ dims.gutterWidth[id] +
+ 'px',
),
);
}
@@ -1357,7 +1357,7 @@
if (other == this) return true;
if (
other.primIndex != this.primIndex ||
- other.ranges.length != this.ranges.length
+ other.ranges.length != this.ranges.length
)
return false;
for (var i = 0; i < this.ranges.length; i++) {
@@ -1577,7 +1577,7 @@
function setSelectionNoUndo(doc, sel, options) {
if (
hasHandler(doc, 'beforeSelectionChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
+ doc.cm && hasHandler(doc.cm, 'beforeSelectionChange')
)
sel = filterSelectionChange(doc, sel);
@@ -1641,8 +1641,8 @@
if (
(sp.from == null ||
(m.inclusiveLeft ? sp.from <= curPos.ch : sp.from < curPos.ch)) &&
- (sp.to == null ||
- (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
+ (sp.to == null ||
+ (m.inclusiveRight ? sp.to >= curPos.ch : sp.to > curPos.ch))
) {
if (mayClear) {
signal(m, 'beforeCursorEnter');
@@ -1798,14 +1798,14 @@
null,
'CodeMirror-selected',
'position: absolute; left: ' +
- left +
- 'px; top: ' +
- top +
- 'px; width: ' +
- (width == null ? rightSide - left : width) +
- 'px; height: ' +
- (bottom - top) +
- 'px',
+ left +
+ 'px; top: ' +
+ top +
+ 'px; width: ' +
+ (width == null ? rightSide - left : width) +
+ 'px; height: ' +
+ (bottom - top) +
+ 'px',
),
);
}
@@ -1848,14 +1848,14 @@
if (toArg == null && to == lineLen) right = rightSide;
if (
!start ||
- leftPos.top < start.top ||
- leftPos.top == start.top && leftPos.left < start.left
+ leftPos.top < start.top ||
+ leftPos.top == start.top && leftPos.left < start.left
)
start = leftPos;
if (
!end ||
- rightPos.bottom > end.bottom ||
- rightPos.bottom == end.bottom && rightPos.right > end.right
+ rightPos.bottom > end.bottom ||
+ rightPos.bottom == end.bottom && rightPos.right > end.right
)
end = rightPos;
if (left < leftSide + 1) left = leftSide;
@@ -2066,7 +2066,7 @@
var curWidth = wrapping && displayWidth(cm);
if (
!lineView.measure.heights ||
- wrapping && lineView.measure.width != curWidth
+ wrapping && lineView.measure.width != curWidth
) {
var heights = lineView.measure.heights = [];
if (wrapping) {
@@ -2211,8 +2211,8 @@
if (bias == 'right' && start == mEnd - mStart)
while (
i < map.length - 3 &&
- map[i + 3] == map[i + 4] &&
- !map[i + 5].insertLeft
+ map[i + 3] == map[i + 4] &&
+ !map[i + 5].insertLeft
) {
node = map[(i += 3) + 2];
collapse = 'right';
@@ -2232,7 +2232,7 @@
--start;
while (
mStart + end < mEnd &&
- isExtendingChar(prepared.line.text.charAt(mStart + end))
+ isExtendingChar(prepared.line.text.charAt(mStart + end))
)
++end;
if (ie && ie_version < 9 && start == 0 && end == mEnd - mStart) {
@@ -2303,9 +2303,9 @@
function maybeUpdateRectForZooming(measure, rect) {
if (
!window.screen ||
- screen.logicalXDPI == null ||
- screen.logicalXDPI == screen.deviceXDPI ||
- !hasBadZoomedRects(measure)
+ screen.logicalXDPI == null ||
+ screen.logicalXDPI == screen.deviceXDPI ||
+ !hasBadZoomedRects(measure)
)
return rect;
var scaleX = screen.logicalXDPI / screen.deviceXDPI;
@@ -2440,8 +2440,8 @@
right = true;
} else if (
ch == bidiRight(part) &&
- partPos < order.length - 1 &&
- part.level < order[partPos + 1].level
+ partPos < order.length - 1 &&
+ part.level < order[partPos + 1].level
) {
part = order[++partPos];
ch = bidiLeft(part) - part.level % 2;
@@ -2504,8 +2504,8 @@
var mergedPos = merged && merged.find(0, true);
if (
merged &&
- (found.ch > mergedPos.from.ch ||
- found.ch == mergedPos.from.ch && found.xRel > 0)
+ (found.ch > mergedPos.from.ch ||
+ found.ch == mergedPos.from.ch && found.xRel > 0)
)
lineN = lineNo(lineObj = mergedPos.to.line);
else
@@ -2761,9 +2761,9 @@
op.barMeasure.scrollWidth = Math.max(
display.scroller.clientWidth,
display.sizer.offsetLeft +
- op.adjustWidthTo +
- scrollGap(cm) +
- cm.display.barWidth,
+ op.adjustWidthTo +
+ scrollGap(cm) +
+ cm.display.barWidth,
);
op.maxScrollLeft = Math.max(
0,
@@ -2807,14 +2807,14 @@
// Abort mouse wheel delta measurement, when scrolling explicitly
if (
display.wheelStartX != null &&
- (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
+ (op.scrollTop != null || op.scrollLeft != null || op.scrollToPos)
)
display.wheelStartX = display.wheelStartY = null;
// Propagate the scroll position to the actual DOM scroller
if (
op.scrollTop != null &&
- (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
+ (display.scroller.scrollTop != op.scrollTop || op.forceScroll)
) {
doc.scrollTop = Math.max(
0,
@@ -2828,7 +2828,7 @@
}
if (
op.scrollLeft != null &&
- (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
+ (display.scroller.scrollLeft != op.scrollLeft || op.forceScroll)
) {
doc.scrollLeft = Math.max(
0,
@@ -2959,8 +2959,8 @@
var display = cm.display;
if (
lendiff &&
- to < display.viewTo &&
- (display.updateLineNumbers == null || display.updateLineNumbers > from)
+ to < display.viewTo &&
+ (display.updateLineNumbers == null || display.updateLineNumbers > from)
)
display.updateLineNumbers = from;
@@ -2974,7 +2974,7 @@
// Change before
if (
sawCollapsedSpans &&
- visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
+ visualLineEndNo(cm.doc, to + lendiff) > display.viewFrom
) {
resetView(cm);
} else {
@@ -3172,10 +3172,10 @@
// in which case reading its value would be expensive.
if (
!cm.state.focused ||
- hasSelection(input) && !prevInput ||
- isReadOnly(cm) ||
- cm.options.disableInput ||
- cm.state.keySeq
+ hasSelection(input) && !prevInput ||
+ isReadOnly(cm) ||
+ cm.options.disableInput ||
+ cm.state.keySeq
)
return false;
// See paste handler for more on the fakedLastChar kludge
@@ -3191,7 +3191,7 @@
// some key combos in Mac (#2689).
if (
ie && ie_version >= 9 && cm.display.inputHasSelection === text ||
- mac && /[\uf700-\uf7ff]/.test(text)
+ mac && /[\uf700-\uf7ff]/.test(text)
) {
resetInput(cm);
return false;
@@ -3203,8 +3203,8 @@
if (
text.charCodeAt(0) == 0x200b &&
- doc.sel == cm.display.selForContextMenu &&
- !prevInput
+ doc.sel == cm.display.selForContextMenu &&
+ !prevInput
)
prevInput = '\u200b';
// Find the part of the input that is actually new
@@ -3258,11 +3258,11 @@
// When an 'electric' character is inserted, immediately trigger a reindent
if (
inserted &&
- !cm.state.pasteIncoming &&
- cm.options.electricChars &&
- cm.options.smartIndent &&
- range.head.ch < 100 &&
- (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
+ !cm.state.pasteIncoming &&
+ cm.options.electricChars &&
+ cm.options.smartIndent &&
+ range.head.ch < 100 &&
+ (!i || doc.sel.ranges[i - 1].head.line != range.head.line)
) {
var mode = cm.getModeAt(range.head);
var end = changeEnd(changeEvent);
@@ -3321,7 +3321,7 @@
function focusInput(cm) {
if (
cm.options.readOnly != 'nocursor' &&
- (!mobile || activeElt() != cm.display.input)
+ (!mobile || activeElt() != cm.display.input)
)
cm.display.input.focus();
}
@@ -3433,8 +3433,8 @@
// selection doesn't span to the end of textarea.
if (
webkit &&
- !cm.state.fakedLastChar &&
- !(new Date() - cm.state.lastMiddleDown < 200)
+ !cm.state.fakedLastChar &&
+ !(new Date() - cm.state.lastMiddleDown < 200)
) {
var start = d.input.selectionStart, end = d.input.selectionEnd;
d.input.value += '$';
@@ -3494,7 +3494,7 @@
var d = cm.display;
if (
d.lastWrapHeight == d.wrapper.clientHeight &&
- d.lastWrapWidth == d.wrapper.clientWidth
+ d.lastWrapWidth == d.wrapper.clientWidth
)
return;
// Might be a text scaling operation, clear size caches.
@@ -3510,8 +3510,8 @@
for (var n = e_target(e); n != display.wrapper; n = n.parentNode) {
if (
!n ||
- n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
- n.parentNode == display.sizer && n != display.mover
+ n.nodeType == 1 && n.getAttribute('cm-ignore-events') == 'true' ||
+ n.parentNode == display.sizer && n != display.mover
)
return true;
}
@@ -3538,8 +3538,8 @@
var coords = coordsChar(cm, x, y), line;
if (
forRect &&
- coords.xRel == 1 &&
- (line = getLine(cm.doc, coords.line).text).length == coords.ch
+ coords.xRel == 1 &&
+ (line = getLine(cm.doc, coords.line).text).length == coords.ch
) {
var colDiff = countColumn(line, line.length, cm.options.tabSize) -
line.length;
@@ -3548,7 +3548,7 @@
Math.max(
0,
Math.round((x - paddingH(cm.display).left) / charWidth(cm.display)) -
- colDiff,
+ colDiff,
),
);
}
@@ -3607,8 +3607,8 @@
var now = +new Date(), type;
if (
lastDoubleClick &&
- lastDoubleClick.time > now - 400 &&
- cmp(lastDoubleClick.pos, start) == 0
+ lastDoubleClick.time > now - 400 &&
+ cmp(lastDoubleClick.pos, start) == 0
) {
type = 'triple';
} else if (
@@ -3624,11 +3624,11 @@
var sel = cm.doc.sel, modifier = mac ? e.metaKey : e.ctrlKey, contained;
if (
cm.options.dragDrop &&
- dragAndDrop &&
- !isReadOnly(cm) &&
- type == 'single' &&
- (contained = sel.contains(start)) > -1 &&
- !sel.ranges[contained].empty()
+ dragAndDrop &&
+ !isReadOnly(cm) &&
+ type == 'single' &&
+ (contained = sel.contains(start)) > -1 &&
+ !sel.ranges[contained].empty()
)
leftButtonStartDrag(cm, e, start, modifier);
else
@@ -4059,7 +4059,7 @@
// Quit if there's nothing to scroll here
if (
!(dx && scroll.scrollWidth > scroll.clientWidth ||
- dy && scroll.scrollHeight > scroll.clientHeight)
+ dy && scroll.scrollHeight > scroll.clientHeight)
)
return;
@@ -4271,7 +4271,7 @@
// Turn mouse into crosshair when Alt is held on Mac.
if (
code == 18 &&
- !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
+ !/\bCodeMirror-crosshair\b/.test(cm.display.lineDiv.className)
)
showCrossHair(cm);
}
@@ -4395,7 +4395,7 @@
if (display.input.selectionStart != null) {
var selected = cm.somethingSelected();
var extval = display.input.value = '\u200b' +
- (selected ? display.input.value : '');
+ (selected ? display.input.value : '');
display.prevInput = selected ? '' : '\u200b';
display.input.selectionStart = 1;
display.input.selectionEnd = extval.length;
@@ -4419,7 +4419,7 @@
poll = function() {
if (
display.selForContextMenu == cm.doc.sel &&
- display.input.selectionStart == 0
+ display.input.selectionStart == 0
)
operation(cm, commands.selectAll)(cm);
else if (i++ < 10)
@@ -4551,7 +4551,7 @@
if (
hasHandler(doc, 'beforeChange') ||
- doc.cm && hasHandler(doc.cm, 'beforeChange')
+ doc.cm && hasHandler(doc.cm, 'beforeChange')
) {
change = filterChange(doc, change, true);
if (!change) return;
@@ -4577,8 +4577,8 @@
function makeChangeInner(doc, change) {
if (
change.text.length == 1 &&
- change.text[0] == '' &&
- cmp(change.from, change.to) == 0
+ change.text[0] == '' &&
+ cmp(change.from, change.to) == 0
)
return;
var selAfter = computeSelAfterChange(doc, change);
@@ -4790,8 +4790,8 @@
if (change.full) regChange(cm);
else if (
from.line == to.line &&
- change.text.length == 1 &&
- !isWholeLineUpdate(cm.doc, change)
+ change.text.length == 1 &&
+ !isWholeLineUpdate(cm.doc, change)
)
regLineChange(cm, from.line, 'text');
else
@@ -4847,12 +4847,12 @@
'\u200b',
null,
'position: absolute; top: ' +
- (coords.top - display.viewOffset - paddingTop(cm.display)) +
- 'px; height: ' +
- (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) +
- 'px; left: ' +
- coords.left +
- 'px; width: 2px;',
+ (coords.top - display.viewOffset - paddingTop(cm.display)) +
+ 'px; height: ' +
+ (coords.bottom - coords.top + scrollGap(cm) + display.barHeight) +
+ 'px; left: ' +
+ coords.left +
+ 'px; width: 2px;',
);
cm.display.lineSpace.appendChild(scrollNode);
scrollNode.scrollIntoView(doScroll);
@@ -5286,8 +5286,8 @@
var newRanges = this.doc.sel.ranges;
if (
from.ch == 0 &&
- ranges.length == newRanges.length &&
- newRanges[i].from().ch > 0
+ ranges.length == newRanges.length &&
+ newRanges[i].from().ch > 0
)
replaceOneSelection(
this.doc,
@@ -5480,7 +5480,7 @@
// Default to positioning above (if specified and possible); otherwise default to positioning below
if (
(vert == 'above' || pos.bottom + node.offsetHeight > vspace) &&
- pos.top > node.offsetHeight
+ pos.top > node.offsetHeight
)
top = pos.top - node.offsetHeight;
else if (pos.bottom + node.offsetHeight <= vspace) top = pos.bottom;
@@ -5713,7 +5713,7 @@
updateGutterSpace(this);
if (
oldHeight == null ||
- Math.abs(oldHeight - textHeight(this.display)) > 0.5
+ Math.abs(oldHeight - textHeight(this.display)) > 0.5
)
estimateLineHeights(this);
signal(this, 'refresh', this);
@@ -5983,8 +5983,8 @@
spec = mimeModes[spec];
} else if (
spec &&
- typeof spec.name == 'string' &&
- mimeModes.hasOwnProperty(spec.name)
+ typeof spec.name == 'string' &&
+ mimeModes.hasOwnProperty(spec.name)
) {
var found = mimeModes[spec.name];
if (typeof found == 'string') found = {name: found};
@@ -6791,9 +6791,9 @@
line.markedSpans = removeMarkedSpan(line.markedSpans, span);
if (
span.from == null &&
- this.collapsed &&
- !lineIsHidden(this.doc, line) &&
- cm
+ this.collapsed &&
+ !lineIsHidden(this.doc, line) &&
+ cm
)
updateLineHeight(line, textHeight(cm.display));
}
@@ -6915,8 +6915,8 @@
if (marker.collapsed) {
if (
conflictingCollapsedRange(doc, from.line, from, to, marker) ||
- from.line != to.line &&
- conflictingCollapsedRange(doc, to.line, from, to, marker)
+ from.line != to.line &&
+ conflictingCollapsedRange(doc, to.line, from, to, marker)
)
throw new Error(
'Inserting collapsed marker partially overlapping an existing one',
@@ -6936,9 +6936,9 @@
doc.iter(curLine, to.line + 1, function(line) {
if (
cm &&
- marker.collapsed &&
- !cm.options.lineWrapping &&
- visualLine(line) == cm.display.maxLine
+ marker.collapsed &&
+ !cm.options.lineWrapping &&
+ visualLine(line) == cm.display.maxLine
)
updateMaxLine = true;
if (marker.collapsed && curLine != from.line) updateLineHeight(line, 0);
@@ -6975,10 +6975,10 @@
if (marker.collapsed) regChange(cm, from.line, to.line + 1);
else if (
marker.className ||
- marker.title ||
- marker.startStyle ||
- marker.endStyle ||
- marker.css
+ marker.title ||
+ marker.startStyle ||
+ marker.endStyle ||
+ marker.css
)
for (var i = from.line; i <= to.line; i++)
regLineChange(cm, i, 'text');
@@ -7126,9 +7126,9 @@
(marker.inclusiveLeft ? span.from <= startCh : span.from < startCh);
if (
startsBefore ||
- span.from == startCh &&
- marker.type == 'bookmark' &&
- (!isInsert || !span.marker.insertLeft)
+ span.from == startCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || !span.marker.insertLeft)
) {
var endsAfter = span.to == null ||
(marker.inclusiveRight ? span.to >= startCh : span.to > startCh);
@@ -7149,9 +7149,9 @@
(marker.inclusiveRight ? span.to >= endCh : span.to > endCh);
if (
endsAfter ||
- span.from == endCh &&
- marker.type == 'bookmark' &&
- (!isInsert || span.marker.insertLeft)
+ span.from == endCh &&
+ marker.type == 'bookmark' &&
+ (!isInsert || span.marker.insertLeft)
) {
var startsBefore = span.from == null ||
(marker.inclusiveLeft ? span.from <= endCh : span.from < endCh);
@@ -7248,8 +7248,8 @@
var span = spans[i];
if (
span.from != null &&
- span.from == span.to &&
- span.marker.clearWhenEmpty !== false
+ span.from == span.to &&
+ span.marker.clearWhenEmpty !== false
)
spans.splice((i--), 1);
}
@@ -7361,8 +7361,8 @@
sp = sps[i];
if (
sp.marker.collapsed &&
- (start ? sp.from : sp.to) == null &&
- (!found || compareCollapsedMarkers(found, sp.marker) < 0)
+ (start ? sp.from : sp.to) == null &&
+ (!found || compareCollapsedMarkers(found, sp.marker) < 0)
)
found = sp.marker;
}
@@ -7395,9 +7395,9 @@
fromCmp <= 0 &&
(cmp(found.to, from) > 0 ||
sp.marker.inclusiveRight && marker.inclusiveLeft) ||
- fromCmp >= 0 &&
- (cmp(found.from, to) < 0 ||
- sp.marker.inclusiveLeft && marker.inclusiveRight)
+ fromCmp >= 0 &&
+ (cmp(found.from, to) < 0 ||
+ sp.marker.inclusiveLeft && marker.inclusiveRight)
)
return true;
}
@@ -7456,8 +7456,8 @@
if (sp.marker.widgetNode) continue;
if (
sp.from == 0 &&
- sp.marker.inclusiveLeft &&
- lineIsHiddenInner(doc, line, sp)
+ sp.marker.inclusiveLeft &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -7476,11 +7476,11 @@
sp = line.markedSpans[i];
if (
sp.marker.collapsed &&
- !sp.marker.widgetNode &&
- sp.from == span.to &&
- (sp.to == null || sp.to != span.from) &&
- (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
- lineIsHiddenInner(doc, line, sp)
+ !sp.marker.widgetNode &&
+ sp.from == span.to &&
+ (sp.to == null || sp.to != span.from) &&
+ (sp.marker.inclusiveLeft || span.marker.inclusiveRight) &&
+ lineIsHiddenInner(doc, line, sp)
)
return true;
}
@@ -8065,7 +8065,7 @@
if (m.title && !title) title = m.title;
if (
m.collapsed &&
- (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
+ (!collapsed || compareCollapsedMarkers(collapsed.marker, m) < 0)
)
collapsed = sp;
} else if (sp.from > pos && nextChange > sp.from) {
@@ -8171,8 +8171,8 @@
update(
firstLine,
firstLine.text.slice(0, from.ch) +
- lastText +
- firstLine.text.slice(to.ch),
+ lastText +
+ firstLine.text.slice(to.ch),
lastSpans,
);
} else {
@@ -8309,7 +8309,7 @@
// single leaf node.
if (
this.size - n < 25 &&
- (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
+ (this.children.length > 1 || !(this.children[0] instanceof LeafChunk))
) {
var lines = [];
this.collapse(lines);
@@ -8723,7 +8723,7 @@
var span = spans[i];
if (
(span.from == null || span.from <= pos.ch) &&
- (span.to == null || span.to >= pos.ch)
+ (span.to == null || span.to >= pos.ch)
)
markers.push(span.marker.parent || span.marker);
}
@@ -8742,7 +8742,7 @@
!(lineNo == from.line && from.ch > span.to ||
span.from == null && lineNo != from.line ||
lineNo == to.line && span.from > to.ch) &&
- (!filter || filter(span.marker))
+ (!filter || filter(span.marker))
)
found.push(span.marker.parent || span.marker);
}
@@ -9098,7 +9098,7 @@
doc.cm &&
hist.lastModTime > time - doc.cm.options.historyEventDelay ||
change.origin.charAt(0) == '*')) &&
- (cur = lastChangeEvent(hist, hist.lastOp == opId))
+ (cur = lastChangeEvent(hist, hist.lastOp == opId))
) {
// Merge this change into the last event
var last = lst(cur.changes);
@@ -9156,10 +9156,10 @@
// merged when similar and close together in time.
if (
opId == hist.lastSelOp ||
- origin &&
- hist.lastSelOrigin == origin &&
- (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
- selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
+ origin &&
+ hist.lastSelOrigin == origin &&
+ (hist.lastModTime == hist.lastSelTime && hist.lastOrigin == origin ||
+ selectionEventCanBeMerged(doc, origin, lst(hist.done), sel))
)
hist.done[hist.done.length - 1] = sel;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
index 35beaaa..733b40b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/coffeescript.js
@@ -331,7 +331,7 @@
(current === '->' || current === '=>') &&
!state.lambda &&
!stream.peek() ||
- style === 'indent'
+ style === 'indent'
) {
indent(stream, state);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
index 6bd5418..2b90a58 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/comment.js
@@ -180,9 +180,9 @@
}
if (
open == -1 ||
- close == -1 ||
- !/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) ||
- !/comment/.test(self.getTokenTypeAt(Pos(end, close + 1)))
+ close == -1 ||
+ !/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) ||
+ !/comment/.test(self.getTokenTypeAt(Pos(end, close + 1)))
)
return false;
@@ -196,8 +196,8 @@
.indexOf(endString, lastStart + startString.length);
if (
lastStart != -1 &&
- firstEnd != -1 &&
- firstEnd + endString.length != from.ch
+ firstEnd != -1 &&
+ firstEnd + endString.length != from.ch
)
return false;
// Positions of the first endString after the end of the selection, and the last startString before it.
@@ -216,9 +216,9 @@
Pos(
end,
close -
- (pad && endLine.slice(close - pad.length, close) == pad
- ? pad.length
- : 0),
+ (pad && endLine.slice(close - pad.length, close) == pad
+ ? pad.length
+ : 0),
),
Pos(end, close + endString.length),
);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
index 886b00a..fdbf3da 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/css.js
@@ -219,7 +219,7 @@
if (
type == 'hash' &&
- !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())
+ !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())
) {
override += ' error';
} else if (type == 'word') {
@@ -345,13 +345,13 @@
if (cx.type == 'prop' && (ch == '}' || ch == ')')) cx = cx.prev;
if (
cx.prev &&
- (ch == '}' &&
- (cx.type == 'block' ||
- cx.type == 'top' ||
- cx.type == 'interpolation' ||
- cx.type == 'font_face') ||
- ch == ')' && (cx.type == 'parens' || cx.type == 'media_parens') ||
- ch == '{' && (cx.type == 'at' || cx.type == 'media'))
+ (ch == '}' &&
+ (cx.type == 'block' ||
+ cx.type == 'top' ||
+ cx.type == 'interpolation' ||
+ cx.type == 'font_face') ||
+ ch == ')' && (cx.type == 'parens' || cx.type == 'media_parens') ||
+ ch == '{' && (cx.type == 'at' || cx.type == 'media'))
) {
indent = cx.indent - indentUnit;
cx = cx.prev;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
index 4b8a7ed..1946f84 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/headlesscodemirror.js
@@ -121,8 +121,8 @@
spec = mimeModes[spec];
} else if (
spec &&
- typeof spec.name == 'string' &&
- mimeModes.hasOwnProperty(spec.name)
+ typeof spec.name == 'string' &&
+ mimeModes.hasOwnProperty(spec.name)
) {
spec = mimeModes[spec.name];
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
index 503cf7d..254d037 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/htmlmixed.js
@@ -64,8 +64,8 @@
var style = htmlMode.token(stream, state.htmlState);
if (
tagName == 'script' &&
- /\btag\b/.test(style) &&
- stream.current() == '>'
+ /\btag\b/.test(style) &&
+ stream.current() == '>'
) {
// Script block: mode to change to depends on type attribute
var scriptType = stream.string
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
index 1f77d40..3a83e9a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/javascript.js
@@ -155,9 +155,9 @@
return ret('comment', 'comment');
} else if (
state.lastType == 'operator' ||
- state.lastType == 'keyword c' ||
- state.lastType == 'sof' ||
- /^[\[{}\(,;:]$/.test(state.lastType)
+ state.lastType == 'keyword c' ||
+ state.lastType == 'sof' ||
+ /^[\[{}\(,;:]$/.test(state.lastType)
) {
readRegexp(stream);
stream.eatWhile(/[gimy]/); // 'y' is "sticky" option in Mozilla
@@ -408,7 +408,7 @@
if (type == 'if') {
if (
cx.state.lexical.info == 'else' &&
- cx.state.cc[cx.state.cc.length - 1] == poplex
+ cx.state.cc[cx.state.cc.length - 1] == poplex
)
cx.state.cc.pop()();
return cont(pushlex('form'), expression, statement, poplex, maybeelse);
@@ -850,8 +850,8 @@
: 0);
else if (
lexical.info == 'switch' &&
- !closing &&
- parserConfig.doubleIndentSwitch != false
+ !closing &&
+ parserConfig.doubleIndentSwitch != false
)
return lexical.indented +
(/^(?:case|default)\b/.test(textAfter)
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
index 4a7d11e..6a154ad 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/markselection.js
@@ -100,10 +100,10 @@
var coverStart = array[0].find(), coverEnd = array[array.length - 1].find();
if (
!coverStart ||
- !coverEnd ||
- to.line - from.line < CHUNK_SIZE ||
- cmp(from, coverEnd.to) >= 0 ||
- cmp(to, coverStart.from) <= 0
+ !coverEnd ||
+ to.line - from.line < CHUNK_SIZE ||
+ cmp(from, coverEnd.to) >= 0 ||
+ cmp(to, coverStart.from) <= 0
)
return reset(cm);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
index 9446ee9..10b0647 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/matchbrackets.js
@@ -78,8 +78,8 @@
var ch = line.charAt(pos);
if (
re.test(ch) &&
- (style === undefined ||
- cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)
+ (style === undefined ||
+ cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)
) {
var match = matching[ch];
if (match.charAt(1) == '>' == dir > 0) stack.push(ch);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
index 3456ff4..1f1918f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/overlay.js
@@ -50,8 +50,8 @@
token: function(stream, state) {
if (
stream.sol() ||
- stream.string != state.lineSeen ||
- Math.min(state.basePos, state.overlayPos) < stream.start
+ stream.string != state.lineSeen ||
+ Math.min(state.basePos, state.overlayPos) < stream.start
) {
state.lineSeen = stream.string;
state.basePos = state.overlayPos = stream.start;
@@ -73,7 +73,7 @@
if (state.overlayCur == null) return state.baseCur;
else if (
state.baseCur != null && state.overlay.combineTokens ||
- combine && state.overlay.combineTokens == null
+ combine && state.overlay.combineTokens == null
)
return state.baseCur + ' ' + state.overlayCur;
else
@@ -81,9 +81,9 @@
},
indent: (
base.indent &&
- function(state, textAfter) {
- return base.indent(state.base, textAfter);
- }
+ function(state, textAfter) {
+ return base.indent(state.base, textAfter);
+ }
),
electricChars: base.electricChars,
innerMode: function(state) {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
index ce0d0e5..3e1041b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/php.js
@@ -89,8 +89,8 @@
// Normal string
while (
!stream.eol() &&
- !stream.match('{$', false) &&
- (!stream.match(/(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false) || escaped)
+ !stream.match('{$', false) &&
+ (!stream.match(/(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false) || escaped)
) {
next = stream.next();
if (!escaped && next == '"') {
@@ -187,9 +187,9 @@
var isPHP = state.curMode == phpMode;
if (
stream.sol() &&
- state.pending &&
- state.pending != '"' &&
- state.pending != "'"
+ state.pending &&
+ state.pending != '"' &&
+ state.pending != "'"
)
state.pending = null;
if (!isPHP) {
@@ -213,8 +213,8 @@
if (openPHP != -1) {
if (
style == 'string' &&
- (m = cur.match(/[\'\"]$/)) &&
- !/\?>/.test(cur)
+ (m = cur.match(/[\'\"]$/)) &&
+ !/\?>/.test(cur)
)
state.pending = m[0];
else
@@ -263,7 +263,7 @@
indent: function(state, textAfter) {
if (
state.curMode != phpMode && /^\s*<\//.test(textAfter) ||
- state.curMode == phpMode && /^\?>/.test(textAfter)
+ state.curMode == phpMode && /^\?>/.test(textAfter)
)
return htmlMode.indent(state.html, textAfter);
return state.curMode.indent(state.curState, textAfter);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
index add8bc9..417a652 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/python.js
@@ -278,8 +278,8 @@
if (
stream.match(doubleOperators) ||
- stream.match(singleOperators) ||
- stream.match(wordOperators)
+ stream.match(singleOperators) ||
+ stream.match(wordOperators)
)
return 'operator';
@@ -459,8 +459,8 @@
name: 'python',
extra_keywords: words(
'by cdef cimport cpdef ctypedef enum except' +
- 'extern gil include nogil property public' +
- 'readonly struct union DEF IF ELIF ELSE',
+ 'extern gil include nogil property public' +
+ 'readonly struct union DEF IF ELIF ELSE',
),
});
});
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/shell.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/shell.js
index 5f55040..79e6e29 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/shell.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/shell.js
@@ -31,17 +31,17 @@
define(
'keyword',
'if then do else elif while until for in esac fi fin ' +
- 'fil done exit set unset export function',
+ 'fil done exit set unset export function',
);
// Commands
define(
'builtin',
'ab awk bash beep cat cc cd chown chmod chroot clear cp ' +
- 'curl cut diff echo find gawk gcc get git grep kill killall ln ls make ' +
- 'mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh ' +
- 'shopt shred source sort sleep ssh start stop su sudo tee telnet top ' +
- 'touch vi vim wall wc wget who write yes zsh',
+ 'curl cut diff echo find gawk gcc get git grep kill killall ln ls make ' +
+ 'mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh ' +
+ 'shopt shred source sort sleep ssh start stop su sudo tee telnet top ' +
+ 'touch vi vim wall wc wget who write yes zsh',
);
function tokenBase(stream, state) {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
index aa6b656..a63246f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/cm/xml.js
@@ -245,7 +245,7 @@
this.startOfLine = startOfLine;
if (
Kludges.doNotIndent.hasOwnProperty(tagName) ||
- state.context && state.context.noIndent
+ state.context && state.context.noIndent
)
this.noIndent = true;
}
@@ -261,7 +261,7 @@
parentTagName = state.context.tagName;
if (
!Kludges.contextGrabbers.hasOwnProperty(parentTagName) ||
- !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)
+ !Kludges.contextGrabbers[parentTagName].hasOwnProperty(nextTagName)
) {
return;
}
@@ -294,8 +294,8 @@
var tagName = stream.current();
if (
state.context &&
- state.context.tagName != tagName &&
- Kludges.implicitlyClosed.hasOwnProperty(state.context.tagName)
+ state.context.tagName != tagName &&
+ Kludges.implicitlyClosed.hasOwnProperty(state.context.tagName)
)
popContext(state);
if (state.context && state.context.tagName == tagName) {
@@ -333,7 +333,7 @@
state.tagName = state.tagStart = null;
if (
type == 'selfcloseTag' ||
- Kludges.autoSelfClosers.hasOwnProperty(tagName)
+ Kludges.autoSelfClosers.hasOwnProperty(tagName)
) {
maybePopContext(state, tagName);
} else {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
index bec09d5..39b95b5 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Geometry.js
@@ -199,7 +199,7 @@ WebInspector.Geometry.EulerAngles.fromRotationMatrix = function(
-rotationMatrix.m13,
Math.sqrt(
rotationMatrix.m11 * rotationMatrix.m11 +
- rotationMatrix.m12 * rotationMatrix.m12,
+ rotationMatrix.m12 * rotationMatrix.m12,
),
);
var alpha = Math.atan2(rotationMatrix.m12, rotationMatrix.m11);
@@ -266,7 +266,7 @@ WebInspector.Geometry.calculateAngle = function(u, v) {
var vLength = v.length();
if (
uLength <= WebInspector.Geometry._Eps ||
- vLength <= WebInspector.Geometry._Eps
+ vLength <= WebInspector.Geometry._Eps
)
return 0;
var cos = WebInspector.Geometry.scalarProduct(u, v) / uLength / vLength;
@@ -399,7 +399,7 @@ function Constraints(minimum, preferred) {
if (
this.minimum.width > this.preferred.width ||
- this.minimum.height > this.preferred.height
+ this.minimum.height > this.preferred.height
)
throw new Error('Minimum size is greater than preferred.');
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
index 1a4d51b..0c7ea56 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Object.js
@@ -59,7 +59,7 @@ WebInspector.Object.prototype = {
for (var i = 0; i < listeners.length; ++i) {
if (
listeners[i].listener === listener &&
- listeners[i].thisObject === thisObject
+ listeners[i].thisObject === thisObject
)
listeners.splice((i--), 1);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
index b080dff..641e08a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/ParsedURL.js
@@ -142,8 +142,8 @@ WebInspector.ParsedURL.completeURL = function(baseURL, href) {
var trimmedHref = href.trim();
if (
trimmedHref.startsWith('data:') ||
- trimmedHref.startsWith('blob:') ||
- trimmedHref.startsWith('javascript:')
+ trimmedHref.startsWith('blob:') ||
+ trimmedHref.startsWith('javascript:')
)
return href;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Settings.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Settings.js
index 1c5dedb..361494d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Settings.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/Settings.js
@@ -283,9 +283,9 @@ WebInspector.Setting.prototype = {
} catch (e) {
WebInspector.console.error(
'Cannot stringify setting with name: ' +
- this._name +
- ', error: ' +
- e.message,
+ this._name +
+ ', error: ' +
+ e.message,
);
}
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
index 8f97d13..6a7d034 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextRange.js
@@ -141,7 +141,7 @@ WebInspector.TextRange.prototype = {
normalize: function() {
if (
this.startLine > this.endLine ||
- this.startLine === this.endLine && this.startColumn > this.endColumn
+ this.startLine === this.endLine && this.startColumn > this.endColumn
)
return new WebInspector.TextRange(
this.endLine,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
index 2baaefd..634a924 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/common/TextUtils.js
@@ -110,7 +110,7 @@ WebInspector.TextUtils = {
var indentation = 0;
while (
indentation < line.length &&
- WebInspector.TextUtils.isSpaceChar(line.charAt(indentation))
+ WebInspector.TextUtils.isSpaceChar(line.charAt(indentation))
)
++indentation;
return line.substr(0, indentation);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
index 3579421..845db98 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/DOMPresentationUtils.js
@@ -184,8 +184,8 @@ WebInspector.DOMPresentationUtils.buildImagePreviewContents = function(
var imageURL = originalImageURL;
if (
!isImageResource(resource) &&
- precomputedFeatures &&
- precomputedFeatures.currentSrc
+ precomputedFeatures &&
+ precomputedFeatures.currentSrc
) {
imageURL = precomputedFeatures.currentSrc;
resource = target.resourceTreeModel.resourceForURL(imageURL);
@@ -344,9 +344,9 @@ WebInspector.DOMPresentationUtils.simpleSelector = function(node) {
if (node.nodeType() !== Node.ELEMENT_NODE) return lowerCaseName;
if (
lowerCaseName === 'input' &&
- node.getAttribute('type') &&
- !node.getAttribute('id') &&
- !node.getAttribute('class')
+ node.getAttribute('type') &&
+ !node.getAttribute('id') &&
+ !node.getAttribute('class')
)
return lowerCaseName + '[type="' + node.getAttribute('type') + '"]';
if (node.getAttribute('id'))
@@ -403,8 +403,8 @@ WebInspector.DOMPresentationUtils._cssPathStep = function(
var nodeNameLower = node.nodeName().toLowerCase();
if (
nodeNameLower === 'body' ||
- nodeNameLower === 'head' ||
- nodeNameLower === 'html'
+ nodeNameLower === 'head' ||
+ nodeNameLower === 'html'
)
return new WebInspector.DOMNodePathStep(
node.nodeNameInCorrectCase(),
@@ -536,10 +536,10 @@ WebInspector.DOMPresentationUtils._cssPathStep = function(
var result = nodeName;
if (
isTargetNode &&
- nodeName.toLowerCase() === 'input' &&
- node.getAttribute('type') &&
- !node.getAttribute('id') &&
- !node.getAttribute('class')
+ nodeName.toLowerCase() === 'input' &&
+ node.getAttribute('type') &&
+ !node.getAttribute('id') &&
+ !node.getAttribute('class')
)
result += '[type="' + node.getAttribute('type') + '"]';
if (needsNthChild) {
@@ -636,7 +636,7 @@ WebInspector.DOMPresentationUtils._xPathIndex = function(node) {
if (
left.nodeType() === Node.ELEMENT_NODE &&
- right.nodeType() === Node.ELEMENT_NODE
+ right.nodeType() === Node.ELEMENT_NODE
)
return left.localName() === right.localName();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
index b162433..0de6497 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/Drawer.js
@@ -151,8 +151,8 @@ WebInspector.Drawer.prototype = {
var tabId = this._tabbedPane.selectedTabId;
if (
tabId &&
- event.data['isUserGesture'] &&
- !this._tabbedPane.isTabCloseable(tabId)
+ event.data['isUserGesture'] &&
+ !this._tabbedPane.isTabCloseable(tabId)
)
this._lastSelectedViewSetting.set(tabId);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
index 30f21a1..43b2686 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ExecutionContextSelector.js
@@ -63,7 +63,7 @@ WebInspector.ExecutionContextSelector.prototype = {
var targets = WebInspector.targetManager.targetsWithJSContext();
if (
WebInspector.context.flavor(WebInspector.Target) === target &&
- targets.length
+ targets.length
)
WebInspector.context.setFlavor(WebInspector.Target, targets[0]);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
index ec596d1..c865bf1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/HandlerRegistry.js
@@ -92,8 +92,8 @@ WebInspector.HandlerRegistry.prototype = {
_appendContentProviderItems: function(contextMenu, target) {
if (
!(target instanceof WebInspector.UISourceCode ||
- target instanceof WebInspector.Resource ||
- target instanceof WebInspector.NetworkRequest)
+ target instanceof WebInspector.Resource ||
+ target instanceof WebInspector.NetworkRequest)
)
return;
var contentProvider /** @type {!WebInspector.ContentProvider} */ = target;
@@ -126,8 +126,8 @@ WebInspector.HandlerRegistry.prototype = {
var contentType = contentProvider.contentType();
if (
contentType !== WebInspector.resourceTypes.Document &&
- contentType !== WebInspector.resourceTypes.Stylesheet &&
- contentType !== WebInspector.resourceTypes.Script
+ contentType !== WebInspector.resourceTypes.Stylesheet &&
+ contentType !== WebInspector.resourceTypes.Script
)
return;
@@ -168,7 +168,7 @@ WebInspector.HandlerRegistry.prototype = {
if (
uiSourceCode.project().type() !==
WebInspector.projectTypes.FileSystem &&
- uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets
+ uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets
)
contextMenu.appendItem(
WebInspector.UIString.capitalize('Save ^as...'),
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectElementModeController.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectElementModeController.js
index 6cf3a41..20fc629 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectElementModeController.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectElementModeController.js
@@ -56,7 +56,7 @@ WebInspector.InspectElementModeController.createShortcut = function() {
return WebInspector.KeyboardShortcut.makeDescriptor(
'c',
WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta |
- WebInspector.KeyboardShortcut.Modifiers.Shift,
+ WebInspector.KeyboardShortcut.Modifiers.Shift,
);
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
index ff8006b..40400ba 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/InspectorView.js
@@ -409,8 +409,8 @@ WebInspector.InspectorView.prototype = {
panelIndex = event.keyCode - 0x31;
else if (
event.keyCode > 0x60 &&
- event.keyCode < 0x6a &&
- keyboardEvent.location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
+ event.keyCode < 0x6a &&
+ keyboardEvent.location === KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
)
panelIndex = event.keyCode - 0x61;
if (panelIndex !== -1) {
@@ -431,8 +431,8 @@ WebInspector.InspectorView.prototype = {
// If there is, we cancel the timer and do not consider this a panel switch.
if (
!WebInspector.isWin() ||
- !this._openBracketIdentifiers[event.keyIdentifier] &&
- !this._closeBracketIdentifiers[event.keyIdentifier]
+ !this._openBracketIdentifiers[event.keyIdentifier] &&
+ !this._closeBracketIdentifiers[event.keyIdentifier]
) {
this._keyDownInternal(event);
return;
@@ -493,7 +493,7 @@ WebInspector.InspectorView.prototype = {
);
if (
!this._history.length ||
- this._history[this._history.length - 1] !== panelName
+ this._history[this._history.length - 1] !== panelName
)
this._history.push(panelName);
this._historyIterator = this._history.length - 1;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
index 5796801..67ce4de 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ObjectPropertiesSection.js
@@ -179,7 +179,7 @@ WebInspector.ObjectPropertyTreeElement.prototype = {
var editableElement = this.valueElement;
if (
(this.property.writable || this.property.setter) &&
- event.target.isSelfOrDescendant(editableElement)
+ event.target.isSelfOrDescendant(editableElement)
)
this._startEditing();
return false;
@@ -537,10 +537,10 @@ WebInspector.ObjectPropertyTreeElement.populateWithProperties = function(
}
if (
value &&
- value.type === 'object' &&
- (value.subtype === 'map' ||
- value.subtype === 'set' ||
- value.subtype === 'iterator')
+ value.type === 'object' &&
+ (value.subtype === 'map' ||
+ value.subtype === 'set' ||
+ value.subtype === 'iterator')
)
treeNode.appendChild(new WebInspector.CollectionEntriesMainTreeElement(
value,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ShortcutsScreen.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ShortcutsScreen.js
index 16f2780..e1efa18 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ShortcutsScreen.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/components/ShortcutsScreen.js
@@ -645,21 +645,21 @@ WebInspector.ShortcutsScreen.SourcesPanelShortcuts = {
WebInspector.KeyboardShortcut.makeDescriptor(
'e',
WebInspector.KeyboardShortcut.Modifiers.Shift |
- WebInspector.KeyboardShortcut.Modifiers.Ctrl,
+ WebInspector.KeyboardShortcut.Modifiers.Ctrl,
),
],
AddSelectionToWatch: [
WebInspector.KeyboardShortcut.makeDescriptor(
'a',
WebInspector.KeyboardShortcut.Modifiers.Shift |
- WebInspector.KeyboardShortcut.Modifiers.Ctrl,
+ WebInspector.KeyboardShortcut.Modifiers.Ctrl,
),
],
GoToMember: [
WebInspector.KeyboardShortcut.makeDescriptor(
'p',
WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta |
- WebInspector.KeyboardShortcut.Modifiers.Shift,
+ WebInspector.KeyboardShortcut.Modifiers.Shift,
),
],
GoToLine: [
@@ -720,7 +720,7 @@ WebInspector.ShortcutsScreen.SourcesPanelShortcuts = {
WebInspector.KeyboardShortcut.makeDescriptor(
's',
WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta |
- WebInspector.KeyboardShortcut.Modifiers.ShiftOrOption,
+ WebInspector.KeyboardShortcut.Modifiers.ShiftOrOption,
),
],
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
index d575ab5..b43288b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsolePanel.js
@@ -95,7 +95,7 @@ WebInspector.ConsolePanel.WrapperView.prototype = {
wasShown: function() {
if (
!WebInspector.inspectorView.currentPanel() ||
- WebInspector.inspectorView.currentPanel().name !== 'console'
+ WebInspector.inspectorView.currentPanel().name !== 'console'
)
this._showViewInWrapper();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
index f358b80..6902915 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleView.js
@@ -355,7 +355,7 @@ WebInspector.ConsoleView.prototype = {
.forEach(this._executionContextCreated, this);
if (
WebInspector.targetManager.targets().length > 1 &&
- WebInspector.targetManager.mainTarget().isPage()
+ WebInspector.targetManager.mainTarget().isPage()
)
this._showAllMessagesCheckbox.element.classList.toggle('hidden', false);
},
@@ -640,7 +640,7 @@ WebInspector.ConsoleView.prototype = {
if (
message.type === WebInspector.ConsoleMessage.MessageType.Command ||
- message.type === WebInspector.ConsoleMessage.MessageType.Result
+ message.type === WebInspector.ConsoleMessage.MessageType.Result
)
message.timestamp = this._consoleMessages.length
? this._consoleMessages.peekLast().consoleMessage().timestamp
@@ -707,8 +707,8 @@ WebInspector.ConsoleView.prototype = {
.originatingMessage();
if (
lastMessage &&
- originatingMessage &&
- lastMessage.consoleMessage() === originatingMessage
+ originatingMessage &&
+ lastMessage.consoleMessage() === originatingMessage
)
lastMessage
.toMessageElement()
@@ -718,7 +718,7 @@ WebInspector.ConsoleView.prototype = {
if (
this._searchRegex &&
- this._searchMessage(this._visibleViewMessages.length - 1)
+ this._searchMessage(this._visibleViewMessages.length - 1)
)
this._searchableView.updateSearchMatchesCount(
this._regexMatchRanges.length,
@@ -924,9 +924,9 @@ WebInspector.ConsoleView.prototype = {
_tryToCollapseMessages: function(lastMessage, viewMessage) {
if (
!WebInspector.settings.consoleTimestampsEnabled.get() &&
- viewMessage &&
- !lastMessage.consoleMessage().isGroupMessage() &&
- lastMessage.consoleMessage().isEqual(viewMessage.consoleMessage())
+ viewMessage &&
+ !lastMessage.consoleMessage().isGroupMessage() &&
+ lastMessage.consoleMessage().isEqual(viewMessage.consoleMessage())
) {
viewMessage.incrementRepeatCount();
return true;
@@ -961,7 +961,7 @@ WebInspector.ConsoleView.prototype = {
_messagesClicked: function(event) {
if (
!this._prompt.isCaretInsidePrompt() &&
- event.target.isComponentSelectionCollapsed()
+ event.target.isComponentSelectionCollapsed()
)
this._prompt.moveCaretToEndOfPrompt();
var groupMessage = event.target.enclosingNodeOrSelfWithClass(
@@ -1360,21 +1360,21 @@ WebInspector.ConsoleViewFilter.prototype = {
if (message.target() !== executionContext.target()) return false;
if (
message.executionContextId &&
- message.executionContextId !== executionContext.id
+ message.executionContextId !== executionContext.id
) {
return false;
}
}
if (
WebInspector.settings.hideNetworkMessages.get() &&
- viewMessage.consoleMessage().source ===
- WebInspector.ConsoleMessage.MessageSource.Network
+ viewMessage.consoleMessage().source ===
+ WebInspector.ConsoleMessage.MessageSource.Network
)
return false;
if (viewMessage.consoleMessage().isGroupMessage()) return true;
if (
message.type === WebInspector.ConsoleMessage.MessageType.Result ||
- message.type === WebInspector.ConsoleMessage.MessageType.Command
+ message.type === WebInspector.ConsoleMessage.MessageType.Command
)
return true;
if (message.url && this._messageURLFilters[message.url]) return false;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
index 751f211..a694b27 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/ConsoleViewMessage.js
@@ -185,8 +185,8 @@ WebInspector.ConsoleViewMessage.prototype = {
default:
if (
consoleMessage.parameters &&
- consoleMessage.parameters.length === 1 &&
- consoleMessage.parameters[0].type === 'string'
+ consoleMessage.parameters.length === 1 &&
+ consoleMessage.parameters[0].type === 'string'
)
this._messageElement = this._tryFormatAsError /**@type {string} */(
consoleMessage.parameters[0].value,
@@ -260,7 +260,7 @@ WebInspector.ConsoleViewMessage.prototype = {
if (
consoleMessage.source !==
WebInspector.ConsoleMessage.MessageSource.Network ||
- consoleMessage.request
+ consoleMessage.request
) {
if (consoleMessage.scriptId) {
this._anchorElement = this._linkifyScriptId(
@@ -661,13 +661,13 @@ WebInspector.ConsoleViewMessage.prototype = {
var maxFlatArrayLength = 100;
if (
this.useArrayPreviewInFormatter(array) ||
- array.arrayLength() > maxFlatArrayLength
+ array.arrayLength() > maxFlatArrayLength
)
this._formatParameterAsArrayOrObject(
array,
elem,
this.useArrayPreviewInFormatter(array) ||
- array.arrayLength() <= maxFlatArrayLength,
+ array.arrayLength() <= maxFlatArrayLength,
);
else
array.getAllProperties(false, this._printArray.bind(this, array, elem));
@@ -1041,8 +1041,8 @@ WebInspector.ConsoleViewMessage.prototype = {
if (
this._message.type ===
WebInspector.ConsoleMessage.MessageType.StartGroup ||
- this._message.type ===
- WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed
+ this._message.type ===
+ WebInspector.ConsoleMessage.MessageType.StartGroupCollapsed
)
element.classList.add('console-group-title');
element.appendChild(this.formattedMessage());
@@ -1261,9 +1261,7 @@ WebInspector.ConsoleViewMessage.prototype = {
var target = this._target();
if (
!target ||
- !errorPrefixes.some(
- String.prototype.startsWith.bind(new String(string)),
- )
+ !errorPrefixes.some(String.prototype.startsWith.bind(new String(string)))
)
return null;
var lines = string.split('\n');
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
index a598f4b..59861e9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/console/CustomPreviewSection.js
@@ -99,8 +99,8 @@ WebInspector.CustomPreviewSection.prototype = {
if (!value.match(valueRegEx)) {
WebInspector.console.error(
'Broken formatter: style attribute value' +
- value +
- ' is not allowed!',
+ value +
+ ' is not allowed!',
);
return false;
}
@@ -138,8 +138,8 @@ WebInspector.CustomPreviewSection.prototype = {
var value = attributes[key];
if (
key !== 'style' ||
- typeof value !== 'string' ||
- !this._validateStyleAttributes(value)
+ typeof value !== 'string' ||
+ !this._validateStyleAttributes(value)
)
continue;
@@ -217,16 +217,16 @@ WebInspector.CustomPreviewSection.prototype = {
function substituteObjectTagsInCustomPreview(jsonMLObject) {
if (
!jsonMLObject ||
- typeof jsonMLObject !== 'object' ||
- typeof jsonMLObject.splice !== 'function'
+ typeof jsonMLObject !== 'object' ||
+ typeof jsonMLObject.splice !== 'function'
)
return;
var obj = jsonMLObject.length;
if (
!(typeof obj === 'number' &&
- obj >>> 0 === obj &&
- (obj > 0 || 1 / obj > 0))
+ obj >>> 0 === obj &&
+ (obj > 0 || 1 / obj > 0))
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
index eefc6ec..a5b526c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionAPI.js
@@ -385,13 +385,13 @@ function injectedExtensionAPI(injectedScriptId) {
if (!warningGiven) {
console.warn(
className +
- '.' +
- oldName +
- ' is deprecated. Use ' +
- className +
- '.' +
- newName +
- ' instead',
+ '.' +
+ oldName +
+ ' is deprecated. Use ' +
+ className +
+ '.' +
+ newName +
+ ' instead',
);
warningGiven = true;
}
@@ -730,7 +730,7 @@ function injectedExtensionAPI(injectedScriptId) {
options = {userAgent: optionsOrUserAgent};
console.warn(
'Passing userAgent as string parameter to inspectedWindow.reload() is deprecated. ' +
- 'Use inspectedWindow.reload({ userAgent: value}) instead.',
+ 'Use inspectedWindow.reload({ userAgent: value}) instead.',
);
}
extensionServer.sendRequest({command: commands.Reload, options: options});
@@ -813,10 +813,10 @@ function injectedExtensionAPI(injectedScriptId) {
// We only care about global hotkeys, not about random text
if (
!event.ctrlKey &&
- !event.altKey &&
- !event.metaKey &&
- !/^F\d+$/.test(event.keyIdentifier) &&
- event.keyIdentifier !== Esc
+ !event.altKey &&
+ !event.metaKey &&
+ !/^F\d+$/.test(event.keyIdentifier) &&
+ event.keyIdentifier !== Esc
)
return;
var requestPayload = {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
index 8cd50f4..702a082 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/extensions/ExtensionServer.js
@@ -322,8 +322,7 @@ WebInspector.ExtensionServer.prototype = {
var panelDescriptor = this._clientObjects[message.panel];
if (
!panelDescriptor ||
- !(panelDescriptor instanceof
- WebInspector.ExtensionServerPanelDescriptor)
+ !(panelDescriptor instanceof WebInspector.ExtensionServerPanelDescriptor)
)
return this._status.E_NOTFOUND(message.panel);
var button = new WebInspector.ExtensionButton(
@@ -692,10 +691,10 @@ WebInspector.ExtensionServer.prototype = {
function handleEventEntry(entry) {
if (
!entry.ctrlKey &&
- !entry.altKey &&
- !entry.metaKey &&
- !/^F\d+$/.test(entry.keyIdentifier) &&
- entry.keyIdentifier !== Esc
+ !entry.altKey &&
+ !entry.metaKey &&
+ !/^F\d+$/.test(entry.keyIdentifier) &&
+ entry.keyIdentifier !== Esc
)
return;
// Fool around closure compiler -- it has its own notion of both KeyboardEvent constructor
@@ -1071,17 +1070,17 @@ WebInspector.ExtensionServer.prototype = {
var executionContext = executionContexts[i];
if (
executionContext.frameId === frame.id &&
- executionContext.origin === contextSecurityOrigin &&
- !executionContext.isMainWorldContext
+ executionContext.origin === contextSecurityOrigin &&
+ !executionContext.isMainWorldContext
)
context = executionContext;
}
if (!context) {
console.warn(
'The JavaScript context ' +
- contextSecurityOrigin +
- ' was not found in the frame ' +
- frame.url,
+ contextSecurityOrigin +
+ ' was not found in the frame ' +
+ frame.url,
);
return this._status.E_NOTFOUND(contextSecurityOrigin);
}
@@ -1090,7 +1089,7 @@ WebInspector.ExtensionServer.prototype = {
var executionContext = executionContexts[i];
if (
executionContext.frameId === frame.id &&
- executionContext.isMainWorldContext
+ executionContext.isMainWorldContext
)
context = executionContext;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/host/InspectorFrontendHost.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/host/InspectorFrontendHost.js
index 564c819..d0b8f26 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/host/InspectorFrontendHost.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/host/InspectorFrontendHost.js
@@ -552,8 +552,8 @@ var InspectorFrontendHost = window.InspectorFrontendHost || null;
function stub(name) {
console.error(
'Incompatible embedder: method InspectorFrontendHost.' +
- name +
- ' is missing. Using stub instead.',
+ name +
+ ' is missing. Using stub instead.',
);
var args = Array.prototype.slice.call(arguments, 1);
return proto[name].apply(InspectorFrontendHost, args);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
index 55251ea..850d993 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/AdvancedApp.js
@@ -49,7 +49,7 @@ WebInspector.AdvancedApp.prototype = {
);
if (
!WebInspector.overridesSupport.responsiveDesignAvailable() &&
- WebInspector.overridesSupport.emulationEnabled()
+ WebInspector.overridesSupport.emulationEnabled()
)
WebInspector.inspectorView.showViewInDrawer('emulation', true);
},
@@ -172,7 +172,7 @@ WebInspector.AdvancedApp.prototype = {
if (
/** @type {string} */ event.data.to ===
WebInspector.DockController.State.Undocked &&
- this._toolboxResponsiveDesignView
+ this._toolboxResponsiveDesignView
) {
// Hide inspectorView and force layout to mimic the undocked state.
this._rootSplitView.hideSidebar();
@@ -194,9 +194,9 @@ WebInspector.AdvancedApp.prototype = {
this._updateForUndocked();
} else if (
this._toolboxResponsiveDesignView &&
- event &&
- /** @type {string} */ event.data.from ===
- WebInspector.DockController.State.Undocked
+ event &&
+ /** @type {string} */ event.data.from ===
+ WebInspector.DockController.State.Undocked
) {
// Don't update yet for smooth transition.
this._rootSplitView.hideSidebar();
@@ -229,7 +229,7 @@ WebInspector.AdvancedApp.prototype = {
);
this._rootSplitView.setSecondIsSidebar(
dockSide === WebInspector.DockController.State.DockedToRight ||
- dockSide === WebInspector.DockController.State.DockedToBottom,
+ dockSide === WebInspector.DockController.State.DockedToBottom,
);
this._rootSplitView.toggleResizer(
this._rootSplitView.resizerElement(),
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
index 40fb4e3..b9d113c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Main.js
@@ -224,7 +224,7 @@ WebInspector.Main.prototype = {
Runtime.experiments.enableForTest('serviceWorkersInResources');
if (
testPath.indexOf('timeline/') !== -1 ||
- testPath.indexOf('layers/') !== -1
+ testPath.indexOf('layers/') !== -1
)
Runtime.experiments.enableForTest('layersPanel');
}
@@ -489,7 +489,7 @@ WebInspector.Main.prototype = {
WebInspector.overridesSupport.applyInitialOverrides();
if (
!WebInspector.overridesSupport.responsiveDesignAvailable() &&
- WebInspector.overridesSupport.emulationEnabled()
+ WebInspector.overridesSupport.emulationEnabled()
)
WebInspector.inspectorView.showViewInDrawer('emulation', true);
},
@@ -685,7 +685,7 @@ WebInspector.Main.prototype = {
if (
!WebInspector.Dialog.currentInstance() &&
- WebInspector.inspectorView.currentPanel()
+ WebInspector.inspectorView.currentPanel()
) {
WebInspector.inspectorView.currentPanel().handleShortcut(event);
if (event.handled) {
@@ -810,8 +810,8 @@ WebInspector.Main.prototype = {
WebInspector.reload = function() {
if (
WebInspector.dockController.canDock() &&
- WebInspector.dockController.dockSide() ===
- WebInspector.DockController.State.Undocked
+ WebInspector.dockController.dockSide() ===
+ WebInspector.DockController.State.Undocked
)
InspectorFrontendHost.setIsDocked(true, function() {});
window.top.location.reload();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
index 1570ab0..9f8c5b4 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/OverridesView.js
@@ -160,7 +160,7 @@ WebInspector.OverridesView.prototype = {
this._splashScreenElement.classList.toggle(
'hidden',
WebInspector.overridesSupport.emulationEnabled() ||
- !WebInspector.overridesSupport.canEmulate(),
+ !WebInspector.overridesSupport.canEmulate(),
);
},
__proto__: WebInspector.VBox.prototype,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Tests.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Tests.js
index 602a271..d51db05 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Tests.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/main/Tests.js
@@ -179,7 +179,7 @@ function createTestSuite(domAutomationController) {
scriptName !==
WebInspector.networkMapping.networkURL(uiSourceCodes[j]),
'Found script duplicates: ' +
- test.uiSourceCodesToString_(uiSourceCodes),
+ test.uiSourceCodesToString_(uiSourceCodes),
);
}
}
@@ -358,29 +358,29 @@ function createTestSuite(domAutomationController) {
test.assertTrue(
resource.timing.receiveHeadersEnd - resource.timing.connectStart >= 70,
'Time between receiveHeadersEnd and connectStart should be >=70ms, but was ' +
- 'receiveHeadersEnd=' +
- resource.timing.receiveHeadersEnd +
- ', connectStart=' +
- resource.timing.connectStart +
- '.',
+ 'receiveHeadersEnd=' +
+ resource.timing.receiveHeadersEnd +
+ ', connectStart=' +
+ resource.timing.connectStart +
+ '.',
);
test.assertTrue(
resource.responseReceivedTime - resource.startTime >= 0.07,
'Time between responseReceivedTime and startTime should be >=0.07s, but was ' +
- 'responseReceivedTime=' +
- resource.responseReceivedTime +
- ', startTime=' +
- resource.startTime +
- '.',
+ 'responseReceivedTime=' +
+ resource.responseReceivedTime +
+ ', startTime=' +
+ resource.startTime +
+ '.',
);
test.assertTrue(
resource.endTime - resource.startTime >= 0.14,
'Time between endTime and startTime should be >=0.14s, but was ' +
- 'endtime=' +
- resource.endTime +
- ', startTime=' +
- resource.startTime +
- '.',
+ 'endtime=' +
+ resource.endTime +
+ ', startTime=' +
+ resource.startTime +
+ '.',
);
test.releaseControl();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
index a06e041..3c3b7a3 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/DOMExtension.js
@@ -135,8 +135,8 @@ Node.prototype.traverseNextTextNode = function(stayWithin) {
var nonTextTags = {STYLE: 1, SCRIPT: 1};
while (
node &&
- (node.nodeType !== Node.TEXT_NODE ||
- nonTextTags[node.parentElement.nodeName])
+ (node.nodeType !== Node.TEXT_NODE ||
+ nonTextTags[node.parentElement.nodeName])
)
node = node.traverseNextNode(stayWithin);
@@ -845,8 +845,8 @@ Event.prototype.deepElementFromPoint = function() {
var node = this.target;
while (
node &&
- node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
- node.nodeType !== Node.DOCUMENT_NODE
+ node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE &&
+ node.nodeType !== Node.DOCUMENT_NODE
)
node = node.parentNode;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
index df0b6b6..90581a1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/platform/utilities.js
@@ -114,7 +114,7 @@ String.prototype.lineAt = function(lineNumber) {
var lineContent = this.substring(lineStart, lineEnd);
if (
lineContent.length > 0 &&
- lineContent.charAt(lineContent.length - 1) === '\r'
+ lineContent.charAt(lineContent.length - 1) === '\r'
)
lineContent = lineContent.substring(0, lineContent.length - 1);
return lineContent;
@@ -686,9 +686,9 @@ Object.defineProperty(Uint32Array.prototype, 'sort', {
}
if (
leftBound === 0 &&
- rightBound === this.length - 1 &&
- sortWindowLeft === 0 &&
- sortWindowRight >= rightBound
+ rightBound === this.length - 1 &&
+ sortWindowLeft === 0 &&
+ sortWindowRight >= rightBound
)
this.sort(comparator);
else
@@ -1174,10 +1174,10 @@ String.format = function(
// just output the format specifier literally and move on.
error(
'not enough substitution arguments. Had ' +
- substitutions.length +
- ' but needed ' +
- (token.substitutionIndex + 1) +
- ', so substitution was skipped.',
+ substitutions.length +
+ ' but needed ' +
+ (token.substitutionIndex + 1) +
+ ', so substitution was skipped.',
);
result = append(
result,
@@ -1192,8 +1192,8 @@ String.format = function(
// Encountered an unsupported format character, treat as a string.
warn(
'unsupported format character \u201C' +
- token.specifier +
- '\u201D. Treating as a string.',
+ token.specifier +
+ '\u201D. Treating as a string.',
);
result = append(result, substitutions[token.substitutionIndex]);
continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
index 3463388..d6d9a3e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ApplicationCacheModel.js
@@ -136,7 +136,7 @@ WebInspector.ApplicationCacheModel.prototype = {
if (
this._manifestURLsByFrame[frameId] &&
- manifestURL !== this._manifestURLsByFrame[frameId]
+ manifestURL !== this._manifestURLsByFrame[frameId]
)
this._frameManifestRemoved(frameId);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
index 8bfc4da..c42ed55 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CPUProfileDataModel.js
@@ -122,7 +122,7 @@ WebInspector.CPUProfileDataModel.prototype = {
for (
var i = 0;
i < topLevelNodes.length &&
- !(this.gcNode && this.programNode && this.idleNode);
+ !(this.gcNode && this.programNode && this.idleNode);
i++
) {
var node = topLevelNodes[i];
@@ -151,9 +151,9 @@ WebInspector.CPUProfileDataModel.prototype = {
var nextNodeId = samples[sampleIndex + 1];
if (
nodeId === programNodeId &&
- !isSystemNode(prevNodeId) &&
- !isSystemNode(nextNodeId) &&
- bottomNode(idToNode[prevNodeId]) === bottomNode(idToNode[nextNodeId])
+ !isSystemNode(prevNodeId) &&
+ !isSystemNode(nextNodeId) &&
+ bottomNode(idToNode[prevNodeId]) === bottomNode(idToNode[nextNodeId])
) {
samples[sampleIndex] = prevNodeId;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
index 98ec245..f49fedd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSMetadata.js
@@ -176,8 +176,8 @@ WebInspector.CSSMetadata.canonicalPropertyName = function(name) {
0;
if (
!match ||
- hasSupportedProperties &&
- !propertiesSet.hasOwnProperty(match[1].toLowerCase())
+ hasSupportedProperties &&
+ !propertiesSet.hasOwnProperty(match[1].toLowerCase())
)
return name.toLowerCase();
return match[1].toLowerCase();
@@ -1522,7 +1522,7 @@ WebInspector.CSSMetadata.prototype = {
var results = [];
while (
firstIndex < this._values.length &&
- this._values[firstIndex].startsWith(prefix)
+ this._values[firstIndex].startsWith(prefix)
)
results.push(this._values[firstIndex++]);
return results;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
index 67d6be9..c54ba0d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CSSStyleModel.js
@@ -541,7 +541,7 @@ WebInspector.CSSStyleModel.prototype = {
var styleSheetHeader = headers[i];
if (
styleSheetHeader.frameId === frameId &&
- styleSheetHeader.isViaInspector()
+ styleSheetHeader.isViaInspector()
) {
callback(styleSheetHeader);
return;
@@ -603,9 +603,9 @@ WebInspector.CSSStyleModel.prototype = {
if (
!styleSheetId ||
- !this.hasEventListeners(
- WebInspector.CSSStyleModel.Events.StyleSheetChanged,
- )
+ !this.hasEventListeners(
+ WebInspector.CSSStyleModel.Events.StyleSheetChanged,
+ )
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
index 6272856..3595990 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ConsoleModel.js
@@ -344,8 +344,8 @@ WebInspector.ConsoleMessage.prototype = {
// Never treat objects as equal - their properties might change over time.
if (
this.parameters[i].type !== msg.parameters[i].type ||
- msg.parameters[i].type === 'object' ||
- this.parameters[i].value !== msg.parameters[i].value
+ msg.parameters[i].type === 'object' ||
+ this.parameters[i].value !== msg.parameters[i].value
)
return false;
}
@@ -374,9 +374,9 @@ WebInspector.ConsoleMessage.prototype = {
for (var i = 0, n = stackTrace1.length; i < n; ++i) {
if (
stackTrace1[i].url !== stackTrace2[i].url ||
- stackTrace1[i].functionName !== stackTrace2[i].functionName ||
- stackTrace1[i].lineNumber !== stackTrace2[i].lineNumber ||
- stackTrace1[i].columnNumber !== stackTrace2[i].columnNumber
+ stackTrace1[i].functionName !== stackTrace2[i].functionName ||
+ stackTrace1[i].lineNumber !== stackTrace2[i].lineNumber ||
+ stackTrace1[i].columnNumber !== stackTrace2[i].columnNumber
)
return false;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
index f115ecb..bd5b2c0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ContentProviders.js
@@ -70,8 +70,8 @@ WebInspector.ConcatenatedScriptsContentProvider.prototype = {
if (
lineNumber < scripts[i].lineOffset ||
- lineNumber === scripts[i].lineOffset &&
- columnNumber <= scripts[i].columnOffset
+ lineNumber === scripts[i].lineOffset &&
+ columnNumber <= scripts[i].columnOffset
)
this._sortedScriptsArray.push(scripts[i]);
}
@@ -249,10 +249,10 @@ WebInspector.CompilerSourceMappingContentProvider.prototype = {
if (statusCode >= 400) {
console.error(
'Could not load content for ' +
- this._sourceURL +
- ' : ' +
- 'HTTP status code: ' +
- statusCode,
+ this._sourceURL +
+ ' : ' +
+ 'HTTP status code: ' +
+ statusCode,
);
callback(null);
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
index 8419fbb..17b8828 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/CookieParser.js
@@ -111,8 +111,8 @@ WebInspector.CookieParser.prototype = {
if (this._lastCookie)
this._lastCookie.setSize(
this._originalInputLength -
- this._input.length -
- this._lastCookiePosition,
+ this._input.length -
+ this._lastCookiePosition,
);
this._lastCookie = null;
},
@@ -406,10 +406,10 @@ WebInspector.Cookies.cookieMatchesResourceURL = function(cookie, resourceURL) {
var url = resourceURL.asParsedURL();
if (
!url ||
- !WebInspector.Cookies.cookieDomainMatchesResourceDomain(
- cookie.domain(),
- url.host,
- )
+ !WebInspector.Cookies.cookieDomainMatchesResourceDomain(
+ cookie.domain(),
+ url.host,
+ )
)
return false;
return url.path.startsWith(cookie.path()) &&
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
index a0c0523..4bfd237 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DOMModel.js
@@ -126,14 +126,14 @@ WebInspector.DOMNode = function(domModel, doc, isInShadowTree, payload) {
// HTML and BODY from internal iframes should not overwrite top-level ones.
if (
this.ownerDocument &&
- !this.ownerDocument.documentElement &&
- this._nodeName === 'HTML'
+ !this.ownerDocument.documentElement &&
+ this._nodeName === 'HTML'
)
this.ownerDocument.documentElement = this;
if (
this.ownerDocument &&
- !this.ownerDocument.body &&
- this._nodeName === 'BODY'
+ !this.ownerDocument.body &&
+ this._nodeName === 'BODY'
)
this.ownerDocument.body = this;
} else if (this._nodeType === Node.DOCUMENT_TYPE_NODE) {
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
index d659469..c3b67a0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/DebuggerModel.js
@@ -683,12 +683,12 @@ WebInspector.DebuggerModel.prototype = {
if (!closestScript) closestScript = script;
if (
script.lineOffset > lineNumber ||
- script.lineOffset === lineNumber && script.columnOffset > columnNumber
+ script.lineOffset === lineNumber && script.columnOffset > columnNumber
)
continue;
if (
script.endLine < lineNumber ||
- script.endLine === lineNumber && script.endColumn <= columnNumber
+ script.endLine === lineNumber && script.endColumn <= columnNumber
)
continue;
closestScript = script;
@@ -1588,7 +1588,7 @@ WebInspector.DebuggerPausedDetails.prototype = {
exception: function() {
if (
this.reason !== WebInspector.DebuggerModel.BreakReason.Exception &&
- this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection
+ this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection
)
return null;
return this
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
index 689e861..a483598 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/FileSystemModel.js
@@ -165,8 +165,8 @@ WebInspector.FileSystemModel.prototype = {
) {
if (
!errorCode &&
- backendRootEntry &&
- this._fileSystemsForOrigin[origin] === store
+ backendRootEntry &&
+ this._fileSystemsForOrigin[origin] === store
) {
var fileSystem = new WebInspector.FileSystemModel.FileSystem(
this,
@@ -379,7 +379,7 @@ WebInspector.FileSystemModel.prototype = {
var type = fileSystem.type;
if (
this._fileSystemsForOrigin[origin] &&
- this._fileSystemsForOrigin[origin][type]
+ this._fileSystemsForOrigin[origin][type]
) {
delete this._fileSystemsForOrigin[origin][type];
this._fileSystemRemoved(fileSystem);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
index bad05be..d1d0ad2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/HAREntry.js
@@ -118,7 +118,7 @@ WebInspector.HAREntry.prototype = {
mimeType: (
this._request.mimeType || 'x-unknown'
)
- // text: this._request.content // TODO: pull out into a boolean flag, as content can be huge (and needs to be requested with an async call),
+ // text: this._request.content // TODO: pull out into a boolean flag, as content can be huge (and needs to be requested with an async call),,
};
var compression = this.responseCompression;
if (typeof compression === 'number') content.compression = compression;
@@ -262,8 +262,8 @@ WebInspector.HAREntry.prototype = {
get responseCompression() {
if (
this._request.cached() ||
- this._request.statusCode === 304 ||
- this._request.statusCode === 206
+ this._request.statusCode === 304 ||
+ this._request.statusCode === 206
)
return;
if (!this._request.responseHeadersText) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
index 9a5e6bf..ae632b8 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/InspectorBackend.js
@@ -69,7 +69,7 @@ InspectorBackendClass.prototype = {
var upperCaseLength = 0;
while (
upperCaseLength < domain.length &&
- domain[upperCaseLength].toLowerCase() !== domain[upperCaseLength]
+ domain[upperCaseLength].toLowerCase() !== domain[upperCaseLength]
)
++upperCaseLength;
@@ -316,16 +316,16 @@ InspectorBackendClass._generateCommands = function(schema) {
var hasErrorData = String(Boolean(command.error));
result.push(
'InspectorBackend.registerCommand("' +
- domain.domain +
- '.' +
- command.name +
- '", [' +
- paramsText.join(', ') +
- '], [' +
- returnsText.join(', ') +
- '], ' +
- hasErrorData +
- ');',
+ domain.domain +
+ '.' +
+ command.name +
+ '", [' +
+ paramsText.join(', ') +
+ '], [' +
+ returnsText.join(', ') +
+ '], ' +
+ hasErrorData +
+ ');',
);
}
@@ -338,12 +338,12 @@ InspectorBackendClass._generateCommands = function(schema) {
}
result.push(
'InspectorBackend.registerEvent("' +
- domain.domain +
- '.' +
- event.name +
- '", [' +
- paramsText.join(', ') +
- ']);',
+ domain.domain +
+ '.' +
+ event.name +
+ '", [' +
+ paramsText.join(', ') +
+ ']);',
);
}
}
@@ -474,7 +474,7 @@ InspectorBackendClass.Connection.prototype = {
if (InspectorBackendClass.Options.dumpInspectorProtocolMessages)
this._dumpProtocolMessage(
'backend: ' +
- (typeof message === 'string' ? message : JSON.stringify(message)),
+ (typeof message === 'string' ? message : JSON.stringify(message)),
);
var messageObject /** @type {!Object} */ = typeof message === 'string'
@@ -505,11 +505,11 @@ InspectorBackendClass.Connection.prototype = {
if (InspectorBackendClass.Options.dumpInspectorTimeStats)
console.log(
'time-stats: ' +
- callback.methodName +
- ' = ' +
- (processingStartTime - callback.sendRequestTime) +
- ' + ' +
- (Date.now() - processingStartTime),
+ callback.methodName +
+ ' = ' +
+ (processingStartTime - callback.sendRequestTime) +
+ ' + ' +
+ (Date.now() - processingStartTime),
);
if (this._scripts && !this._pendingResponsesCount)
@@ -528,10 +528,10 @@ InspectorBackendClass.Connection.prototype = {
if (!(domainName in this._dispatchers)) {
InspectorBackendClass.reportProtocolError(
'Protocol Error: the message ' +
- messageObject.method +
- " is for non-existing domain '" +
- domainName +
- "'",
+ messageObject.method +
+ " is for non-existing domain '" +
+ domainName +
+ "'",
messageObject,
);
return;
@@ -884,10 +884,10 @@ InspectorBackendClass.AgentPrototype.prototype = {
if (!args.length && !optionalFlag) {
errorCallback(
"Protocol Error: Invalid number of arguments for method '" +
- method +
- "' call. It must have the following arguments '" +
- JSON.stringify(signature) +
- "'.",
+ method +
+ "' call. It must have the following arguments '" +
+ JSON.stringify(signature) +
+ "'.",
);
return null;
}
@@ -898,14 +898,14 @@ InspectorBackendClass.AgentPrototype.prototype = {
if (typeof value !== typeName) {
errorCallback(
"Protocol Error: Invalid type of argument '" +
- paramName +
- "' for method '" +
- method +
- "' call. It must be '" +
- typeName +
- "' but it is '" +
- typeof value +
- "'.",
+ paramName +
+ "' for method '" +
+ method +
+ "' call. It must be '" +
+ typeName +
+ "' but it is '" +
+ typeof value +
+ "'.",
);
return null;
}
@@ -916,14 +916,14 @@ InspectorBackendClass.AgentPrototype.prototype = {
if (
args.length === 1 &&
- (!allowExtraUndefinedArg || typeof args[0] !== 'undefined')
+ (!allowExtraUndefinedArg || typeof args[0] !== 'undefined')
) {
errorCallback(
"Protocol Error: Optional callback argument for method '" +
- method +
- "' call must be a function but its type is '" +
- typeof args[0] +
- "'.",
+ method +
+ "' call must be a function but its type is '" +
+ typeof args[0] +
+ "'.",
);
return null;
}
@@ -931,10 +931,10 @@ InspectorBackendClass.AgentPrototype.prototype = {
if (args.length > 1) {
errorCallback(
'Protocol Error: Extra ' +
- args.length +
- " arguments in a call to method '" +
- method +
- "'.",
+ args.length +
+ " arguments in a call to method '" +
+ method +
+ "'.",
);
return null;
}
@@ -1046,16 +1046,16 @@ InspectorBackendClass.AgentPrototype.prototype = {
dispatchResponse: function(messageObject, methodName, callback) {
if (
messageObject.error &&
- messageObject.error.code !== InspectorBackendClass._DevToolsErrorCode &&
- !InspectorBackendClass.Options.suppressRequestErrors &&
- !this._suppressErrorLogging
+ messageObject.error.code !== InspectorBackendClass._DevToolsErrorCode &&
+ !InspectorBackendClass.Options.suppressRequestErrors &&
+ !this._suppressErrorLogging
) {
var id = InspectorFrontendHost.isUnderTest() ? '##' : messageObject.id;
console.error(
'Request with id = ' +
- id +
- ' failed. ' +
- JSON.stringify(messageObject.error),
+ id +
+ ' failed. ' +
+ JSON.stringify(messageObject.error),
);
}
@@ -1120,8 +1120,8 @@ InspectorBackendClass.DispatcherPrototype.prototype = {
if (!(functionName in this._dispatcher)) {
InspectorBackendClass.reportProtocolError(
"Protocol Error: Attempted to dispatch an unimplemented method '" +
- messageObject.method +
- "'",
+ messageObject.method +
+ "'",
messageObject,
);
return;
@@ -1130,8 +1130,8 @@ InspectorBackendClass.DispatcherPrototype.prototype = {
if (!this._eventArgs[messageObject.method]) {
InspectorBackendClass.reportProtocolError(
"Protocol Error: Attempted to dispatch an unspecified method '" +
- messageObject.method +
- "'",
+ messageObject.method +
+ "'",
messageObject,
);
return;
@@ -1153,9 +1153,9 @@ InspectorBackendClass.DispatcherPrototype.prototype = {
if (InspectorBackendClass.Options.dumpInspectorTimeStats)
console.log(
'time-stats: ' +
- messageObject.method +
- ' = ' +
- (Date.now() - processingStartTime),
+ messageObject.method +
+ ' = ' +
+ (Date.now() - processingStartTime),
);
},
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
index 6d9ba2a..43a3ab2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkManager.js
@@ -269,16 +269,16 @@ WebInspector.NetworkDispatcher.prototype = {
// Don't check for mime-types in 304-resources.
if (
networkRequest.hasErrorStatusCode() ||
- networkRequest.statusCode === 304 ||
- networkRequest.statusCode === 204
+ networkRequest.statusCode === 304 ||
+ networkRequest.statusCode === 204
)
return true;
var resourceType = networkRequest.resourceType();
if (
resourceType !== WebInspector.resourceTypes.Stylesheet &&
- resourceType !== WebInspector.resourceTypes.Document &&
- resourceType !== WebInspector.resourceTypes.TextTrack
+ resourceType !== WebInspector.resourceTypes.Document &&
+ resourceType !== WebInspector.resourceTypes.TextTrack
) {
return true;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
index cf9c04a..1734272 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/NetworkRequest.js
@@ -657,9 +657,9 @@ WebInspector.NetworkRequest.prototype = {
var requestContentType = this.requestContentType();
if (
!requestContentType ||
- !requestContentType.match(
- /^application\/x-www-form-urlencoded\s*(;.*)?$/i,
- )
+ !requestContentType.match(
+ /^application\/x-www-form-urlencoded\s*(;.*)?$/i,
+ )
)
return null;
this._parsedFormParameters = this._parseParameters(this.requestFormData);
@@ -685,8 +685,10 @@ WebInspector.NetworkRequest.prototype = {
_parseParameters: function(queryString) {
function parseNameValue(pair) {
var position = pair.indexOf('=');
- if (position === -1) return {name: pair, value: ''};
- else return {
+ if (position === -1)
+ return {name: pair, value: ''};
+ else
+ return {
name: pair.substring(0, position),
value: pair.substring(position + 1),
};
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
index c566079..21c3b51 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/OverridesSupport.js
@@ -322,9 +322,9 @@ WebInspector.OverridesSupport.DeviceOrientation._clearDeviceOrientationOverride
WebInspector.OverridesSupport.deviceSizeValidator = function(value) {
if (
!value ||
- /^[\d]+$/.test(value) &&
- value >= 0 &&
- value <= WebInspector.OverridesSupport.MaxDeviceSize
+ /^[\d]+$/.test(value) &&
+ value >= 0 &&
+ value <= WebInspector.OverridesSupport.MaxDeviceSize
)
return '';
return WebInspector.UIString('Value must be non-negative integer');
@@ -696,7 +696,7 @@ WebInspector.OverridesSupport.prototype = {
scale = 1;
while (
available.width < dipWidth * scale ||
- available.height < dipHeight * scale
+ available.height < dipHeight * scale
)
scale *= 0.8;
}
@@ -709,8 +709,8 @@ WebInspector.OverridesSupport.prototype = {
);
if (
scale === 1 &&
- available.width >= dipWidth &&
- available.height >= dipHeight
+ available.width >= dipWidth &&
+ available.height >= dipHeight
) {
// When we have enough space, no page size override is required. This will speed things up and remove lag.
overrideWidth = 0;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
index 07b5656..f75eebb 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ResourceTreeModel.js
@@ -321,7 +321,7 @@ WebInspector.ResourceTreeModel.prototype = {
var request /** @type {!WebInspector.NetworkRequest} */ = event.data;
if (
request.failed ||
- request.resourceType() === WebInspector.resourceTypes.XHR
+ request.resourceType() === WebInspector.resourceTypes.XHR
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
index d327d72..dd2f5cc 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/RuntimeModel.js
@@ -78,8 +78,8 @@ WebInspector.RuntimeModel.prototype = {
// The private script context should be hidden behind an experiment.
if (
context.name == WebInspector.RuntimeModel._privateScript &&
- !context.origin &&
- !Runtime.experiments.isEnabled('privateScriptInspection')
+ !context.origin &&
+ !Runtime.experiments.isEnabled('privateScriptInspection')
) {
return;
}
@@ -471,9 +471,9 @@ WebInspector.ExecutionContext.prototype = {
try {
if (
type === 'array' &&
- o === object &&
- ArrayBuffer.isView(o) &&
- o.length > 9999
+ o === object &&
+ ArrayBuffer.isView(o) &&
+ o.length > 9999
)
continue;
var names = Object.getOwnPropertyNames(o);
@@ -493,8 +493,8 @@ WebInspector.ExecutionContext.prototype = {
);
else if (
result.type === 'string' ||
- result.type === 'number' ||
- result.type === 'boolean'
+ result.type === 'number' ||
+ result.type === 'boolean'
)
this.evaluate(
'(' + getCompletions + ')("' + result.type + '")',
@@ -626,7 +626,7 @@ WebInspector.ExecutionContext.prototype = {
// Assume that all non-ASCII characters are letters and thus can be used as part of identifier.
if (
dotNotation &&
- !/^[a-zA-Z_$\u008F-\uFFFF][a-zA-Z0-9_$\u008F-\uFFFF]*$/.test(property)
+ !/^[a-zA-Z_$\u008F-\uFFFF][a-zA-Z0-9_$\u008F-\uFFFF]*$/.test(property)
)
continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
index 7b21f13..afd6fc0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/ServiceWorkerManager.js
@@ -175,7 +175,7 @@ WebInspector.ServiceWorkerManager.prototype = {
if (
registration.isDeleted &&
- !this._versions.get(registration.registrationId)
+ !this._versions.get(registration.registrationId)
) {
this._registrations.delete(registration.registrationId);
this.dispatchEventToListeners(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
index 396f506..a330043 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/SourceMap.js
@@ -182,7 +182,7 @@ WebInspector.SourceMap.prototype = {
var mapping = this._mappings[middle];
if (
lineNumber < mapping[0] ||
- lineNumber === mapping[0] && columnNumber < mapping[1]
+ lineNumber === mapping[0] && columnNumber < mapping[1]
)
count = step;
else {
@@ -193,9 +193,9 @@ WebInspector.SourceMap.prototype = {
var entry = this._mappings[first];
if (
!first &&
- entry &&
- (lineNumber < entry[0] ||
- lineNumber === entry[0] && columnNumber < entry[1])
+ entry &&
+ (lineNumber < entry[0] ||
+ lineNumber === entry[0] && columnNumber < entry[1])
)
return null;
return entry;
@@ -268,7 +268,7 @@ WebInspector.SourceMap.prototype = {
columnNumber += this._decodeVLQ(stringCharIterator);
if (
!stringCharIterator.hasNext() ||
- this._isSeparator(stringCharIterator.peek())
+ this._isSeparator(stringCharIterator.peek())
) {
this._mappings.push([lineNumber, columnNumber]);
continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
index 889df50..44b1f68 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/Target.js
@@ -177,8 +177,8 @@ WebInspector.Target.prototype = {
if (
this.isPage() &&
- (Runtime.experiments.isEnabled('serviceWorkersInPageFrontend') ||
- Runtime.experiments.isEnabled('serviceWorkersInResources'))
+ (Runtime.experiments.isEnabled('serviceWorkersInPageFrontend') ||
+ Runtime.experiments.isEnabled('serviceWorkersInResources'))
)
this.serviceWorkerManager = new WebInspector.ServiceWorkerManager(this);
@@ -413,8 +413,8 @@ WebInspector.TargetManager.prototype = {
for (var i = 0; i < listeners.length; ++i) {
if (
listeners[i].modelClass === modelClass &&
- listeners[i].listener === listener &&
- listeners[i].thisObject === thisObject
+ listeners[i].listener === listener &&
+ listeners[i].thisObject === thisObject
)
listeners.splice((i--), 1);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
index 1dd0631..56828c7 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sdk/TracingModel.js
@@ -204,7 +204,7 @@ WebInspector.TracingModel.prototype = {
// so there's a chance we're getting records from the past.
if (
timestamp &&
- (!this._minimumRecordTime || timestamp < this._minimumRecordTime)
+ (!this._minimumRecordTime || timestamp < this._minimumRecordTime)
)
this._minimumRecordTime = timestamp;
var endTimeStamp = (payload.ts + (payload.dur || 0)) / 1000;
@@ -220,16 +220,16 @@ WebInspector.TracingModel.prototype = {
if (
event.name ===
WebInspector.TracingModel.DevToolsMetadataEvent.TracingStartedInPage &&
- event.category ===
- WebInspector.TracingModel.DevToolsMetadataEventCategory
+ event.category ===
+ WebInspector.TracingModel.DevToolsMetadataEventCategory
) {
this._devtoolsPageMetadataEvents.push(event);
}
if (
event.name ===
WebInspector.TracingModel.DevToolsMetadataEvent.TracingSessionIdForWorker &&
- event.category ===
- WebInspector.TracingModel.DevToolsMetadataEventCategory
+ event.category ===
+ WebInspector.TracingModel.DevToolsMetadataEventCategory
) {
this._devtoolsWorkerMetadataEvents.push(event);
}
@@ -261,7 +261,7 @@ WebInspector.TracingModel.prototype = {
if (!this._devtoolsPageMetadataEvents.length) {
WebInspector.console.error(
WebInspector.TracingModel.DevToolsMetadataEvent.TracingStartedInPage +
- ' event not found.',
+ ' event not found.',
);
return;
}
@@ -290,10 +290,10 @@ WebInspector.TracingModel.prototype = {
if (idList.length)
WebInspector.console.error(
'Timeline recording was started in more than one page simultaneously. Session id mismatch: ' +
- this._sessionId +
- ' and ' +
- idList +
- '.',
+ this._sessionId +
+ ' and ' +
+ idList +
+ '.',
);
},
/**
@@ -380,9 +380,9 @@ WebInspector.TracingModel.prototype = {
if (top.name !== event.name) {
console.error(
'Begin/end event mismatch for nestable async event, ' +
- top.name +
- ' vs. ' +
- event.name,
+ top.name +
+ ' vs. ' +
+ event.name,
);
break;
}
@@ -426,13 +426,13 @@ WebInspector.TracingModel.prototype = {
console.assert(
false,
'Async event step phase mismatch: ' +
- lastStep.phase +
- ' at ' +
- lastStep.startTime +
- ' vs. ' +
- event.phase +
- ' at ' +
- event.startTime,
+ lastStep.phase +
+ ' at ' +
+ lastStep.startTime +
+ ' vs. ' +
+ event.phase +
+ ' at ' +
+ event.startTime,
);
return;
}
@@ -557,9 +557,9 @@ WebInspector.TracingModel.Event.prototype = {
if (name in this.args)
console.error(
'Same argument name (' +
- name +
- ') is used for begin and end phases of ' +
- this.name,
+ name +
+ ') is used for begin and end phases of ' +
+ this.name,
);
this.args[name] = args[name];
}
@@ -717,7 +717,7 @@ WebInspector.TracingModel.AsyncEvent.prototype = {
this.steps.push(event);
if (
event.phase === WebInspector.TracingModel.Phase.AsyncEnd ||
- event.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd
+ event.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd
) {
this.setEndTime(event.startTime);
// FIXME: ideally, we shouldn't do this, but this makes the logic of converting
@@ -901,14 +901,14 @@ WebInspector.TracingModel.Thread.prototype = {
if (top.name !== payload.name || top.category !== payload.cat)
console.error(
'B/E events mismatch at ' +
- top.startTime +
- ' (' +
- top.name +
- ') vs. ' +
- timestamp +
- ' (' +
- payload.name +
- ')',
+ top.startTime +
+ ' (' +
+ top.name +
+ ') vs. ' +
+ timestamp +
+ ' (' +
+ payload.name +
+ ')',
);
else
top._complete(payload);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
index 4d21283..ad84ae6 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/snippets/ScriptSnippetModel.js
@@ -165,9 +165,9 @@ WebInspector.ScriptSnippetModel.prototype = {
newName = newName.trim();
if (
!newName ||
- newName.indexOf('/') !== -1 ||
- name === newName ||
- this._snippetStorage.snippetForName(newName)
+ newName.indexOf('/') !== -1 ||
+ name === newName ||
+ this._snippetStorage.snippetForName(newName)
) {
callback(false);
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
index 4df2c38..4203992 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/CodeMirrorTextEditor.js
@@ -505,7 +505,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var tokenValue = line.substring(token.startColumn, token.endColumn);
if (
tokenValue[0] === tokenValue[tokenValue.length - 1] &&
- (tokenValue[0] === "'" || tokenValue[0] === '"')
+ (tokenValue[0] === "'" || tokenValue[0] === '"')
)
return CodeMirror.Pass;
this._codeMirror.replaceSelection(quoteCharacter);
@@ -521,7 +521,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var line = this.line(position.lineNumber);
if (
line.length === position.columnNumber &&
- WebInspector.TextUtils.lineIndent(line).length === line.length
+ WebInspector.TextUtils.lineIndent(line).length === line.length
)
this._codeMirror.replaceRange(
'',
@@ -634,7 +634,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
if (
columnNumber === length && direction === 1 ||
- columnNumber === 0 && direction === -1
+ columnNumber === 0 && direction === -1
)
return this._normalizePositionForOverlappingColumn(
lineNumber,
@@ -647,7 +647,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
// Move through initial spaces if any.
while (
valid(charNumber, length) &&
- WebInspector.TextUtils.isSpaceChar(text[charNumber])
+ WebInspector.TextUtils.isSpaceChar(text[charNumber])
)
charNumber += direction;
if (!valid(charNumber, length))
@@ -656,7 +656,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
if (WebInspector.TextUtils.isStopChar(text[charNumber])) {
while (
valid(charNumber, length) &&
- WebInspector.TextUtils.isStopChar(text[charNumber])
+ WebInspector.TextUtils.isStopChar(text[charNumber])
)
charNumber += direction;
if (!valid(charNumber, length))
@@ -670,9 +670,9 @@ WebInspector.CodeMirrorTextEditor.prototype = {
charNumber += direction;
while (
valid(charNumber, length) &&
- !isWordStart(text, charNumber) &&
- !isWordEnd(text, charNumber) &&
- WebInspector.TextUtils.isWordChar(text[charNumber])
+ !isWordStart(text, charNumber) &&
+ !isWordEnd(text, charNumber) &&
+ WebInspector.TextUtils.isWordChar(text[charNumber])
)
charNumber += direction;
@@ -849,7 +849,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var doc = this.element.ownerDocument;
if (
doc._codeMirrorWhitespaceStyleInjected ||
- !WebInspector.settings.showWhitespacesInEditor.get()
+ !WebInspector.settings.showWhitespacesInEditor.get()
)
return;
doc._codeMirrorWhitespaceStyleInjected = true;
@@ -889,9 +889,9 @@ WebInspector.CodeMirrorTextEditor.prototype = {
cursorPositionToCoordinates: function(lineNumber, column) {
if (
lineNumber >= this._codeMirror.lineCount() ||
- lineNumber < 0 ||
- column < 0 ||
- column > this._codeMirror.getLine(lineNumber).length
+ lineNumber < 0 ||
+ column < 0 ||
+ column > this._codeMirror.getLine(lineNumber).length
)
return null;
var metrics = this._codeMirror.cursorCoords(new CodeMirror.Pos(
@@ -912,15 +912,15 @@ WebInspector.CodeMirrorTextEditor.prototype = {
var element = this.element.ownerDocument.elementFromPoint(x, y);
if (
!element ||
- !element.isSelfOrDescendant(this._codeMirror.getWrapperElement())
+ !element.isSelfOrDescendant(this._codeMirror.getWrapperElement())
)
return null;
var gutterBox = this._codeMirror.getGutterElement().boxInWindow();
if (
x >= gutterBox.x &&
- x <= gutterBox.x + gutterBox.width &&
- y >= gutterBox.y &&
- y <= gutterBox.y + gutterBox.height
+ x <= gutterBox.x + gutterBox.width &&
+ y >= gutterBox.y &&
+ y <= gutterBox.y + gutterBox.height
)
return null;
var coords = this._codeMirror.coordsChar({left: x, top: y});
@@ -988,7 +988,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
while (
spaces <
WebInspector.CodeMirrorTextEditor.MaximumNumberOfWhitespacesPerSingleSpan &&
- stream.peek() === ' '
+ stream.peek() === ' '
) {
++spaces;
stream.next();
@@ -1286,7 +1286,7 @@ WebInspector.CodeMirrorTextEditor.prototype = {
if (lineCount <= 1) newPaddingBottom = 0;
else newPaddingBottom = Math.max(
scrollInfo.clientHeight -
- this._codeMirror.getLineHandle(this._codeMirror.lastLine()).height,
+ this._codeMirror.getLineHandle(this._codeMirror.lastLine()).height,
0,
);
newPaddingBottom += 'px';
@@ -1793,7 +1793,7 @@ WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype = {
var tokenFirstChar = token.charAt(0);
if (
stream.match(token) &&
- (stream.eol() || !WebInspector.TextUtils.isWordChar(stream.peek()))
+ (stream.eol() || !WebInspector.TextUtils.isWordChar(stream.peek()))
)
return stream.column() === selectionStart.ch
? 'token-highlight column-with-selection'
@@ -1802,8 +1802,8 @@ WebInspector.CodeMirrorTextEditor.TokenHighlighter.prototype = {
do {
eatenChar = stream.next();
} while (eatenChar &&
- (WebInspector.TextUtils.isWordChar(eatenChar) ||
- stream.peek() !== tokenFirstChar));
+ (WebInspector.TextUtils.isWordChar(eatenChar) ||
+ stream.peek() !== tokenFirstChar));
} /**
* @param {function(!CodeMirror.StringStream)} highlighter
* @param {?CodeMirror.Pos} selectionStart
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/FontView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/FontView.js
index d76ecf4..4d19278 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/FontView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/FontView.js
@@ -150,7 +150,7 @@ WebInspector.FontView.prototype = {
var heightRatio = containerHeight / height;
var finalFontSize = Math.floor(
WebInspector.FontView._measureFontSize *
- Math.min(widthRatio, heightRatio),
+ Math.min(widthRatio, heightRatio),
) -
2;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
index 8434ce0..8dc5762 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/SourceFrame.js
@@ -271,8 +271,8 @@ WebInspector.SourceFrame.prototype = {
if (!mimeType) return '';
if (
mimeType.indexOf('javascript') >= 0 ||
- mimeType.indexOf('jscript') >= 0 ||
- mimeType.indexOf('ecmascript') >= 0
+ mimeType.indexOf('jscript') >= 0 ||
+ mimeType.indexOf('ecmascript') >= 0
)
return 'text/javascript';
// A hack around the fact that files with "php" extension might be either standalone or html embedded php scripts.
@@ -721,7 +721,7 @@ WebInspector.SourceFrameMessage.fromConsoleMessage = function(
) {
console.assert(
consoleMessage.level === WebInspector.ConsoleMessage.MessageLevel.Error ||
- consoleMessage.level === WebInspector.ConsoleMessage.MessageLevel.Warning,
+ consoleMessage.level === WebInspector.ConsoleMessage.MessageLevel.Warning,
);
var level = consoleMessage.level ===
WebInspector.ConsoleMessage.MessageLevel.Error
@@ -977,11 +977,11 @@ WebInspector.SourceFrame.RowMessageBucket.prototype = {
var message = this._messages[i].message();
if (
!maxMessage ||
- WebInspector.SourceFrameMessage.messageLevelComparator(
- maxMessage,
- message,
- ) <
- 0
+ WebInspector.SourceFrameMessage.messageLevelComparator(
+ maxMessage,
+ message,
+ ) <
+ 0
)
maxMessage = message;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
index de8725e..73ed320 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/source_frame/TextEditorAutocompleteController.js
@@ -134,8 +134,8 @@ WebInspector.TextEditorAutocompleteController.prototype = {
this._prefixRange = prefixRange;
if (
!oldPrefixRange ||
- prefixRange.startLine !== oldPrefixRange.startLine ||
- prefixRange.startColumn !== oldPrefixRange.startColumn
+ prefixRange.startLine !== oldPrefixRange.startLine ||
+ prefixRange.startColumn !== oldPrefixRange.startColumn
)
this._updateAnchorBox();
this._suggestBox.updateSuggestions(
@@ -232,8 +232,8 @@ WebInspector.TextEditorAutocompleteController.prototype = {
var cursor = this._codeMirror.getCursor();
if (
cursor.line !== this._prefixRange.startLine ||
- cursor.ch > this._prefixRange.endColumn ||
- cursor.ch <= this._prefixRange.startColumn
+ cursor.ch > this._prefixRange.endColumn ||
+ cursor.ch <= this._prefixRange.startColumn
)
this.finishAutocomplete();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
index 18218d3..ce0371e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/AdvancedSearchView.js
@@ -352,8 +352,8 @@ WebInspector.AdvancedSearchView.ToggleDrawerViewActionDelegate.prototype = {
var searchView = WebInspector.AdvancedSearchView._instance;
if (
!searchView ||
- !searchView.isShowing() ||
- searchView._search !== document.activeElement
+ !searchView.isShowing() ||
+ searchView._search !== document.activeElement
) {
var selection = WebInspector.inspectorView.element.getDeepSelection();
var queryCandidate = '';
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
index 20e5ac8..7be65fa 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CSSSourceFrame.js
@@ -173,14 +173,14 @@ WebInspector.CSSSourceFrame.AutocompleteDelegate.prototype = {
if (token.type === 'css-property') return seenColumn ? token : null;
if (
token.type &&
- !(token.type.startsWith('whitespace') ||
- token.type.startsWith('css-comment'))
+ !(token.type.startsWith('whitespace') ||
+ token.type.startsWith('css-comment'))
)
return null;
if (
!token.type &&
- line.substring(token.startColumn, token.endColumn) === ':'
+ line.substring(token.startColumn, token.endColumn) === ':'
) {
if (!seenColumn) seenColumn = true;
else return null;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
index 42c53c2..4b94c12 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/CallStackSidebarPane.js
@@ -212,7 +212,7 @@ WebInspector.CallStackSidebarPane.prototype = {
callFrame._asyncCallFrame.setHidden(false);
if (
i &&
- callFrame._asyncCallFrame !== this.callFrames[i - 1]._asyncCallFrame
+ callFrame._asyncCallFrame !== this.callFrames[i - 1]._asyncCallFrame
)
this.callFrameList.addItem(callFrame._asyncCallFrame);
}
@@ -439,7 +439,7 @@ WebInspector.CallStackSidebarPane.prototype = {
if (callFrame.isHidden()) continue;
if (
lastCallFrame &&
- callFrame._asyncCallFrame !== lastCallFrame._asyncCallFrame
+ callFrame._asyncCallFrame !== lastCallFrame._asyncCallFrame
)
text += callFrame._asyncCallFrame.title() + '\n';
text += callFrame.title() + ' (' + callFrame.subtitle() + ')\n';
@@ -481,7 +481,7 @@ WebInspector.CallStackSidebarPane.prototype = {
return;
if (
event.keyIdentifier === 'Up' && this._selectPreviousCallFrameOnStack() ||
- event.keyIdentifier === 'Down' && this._selectNextCallFrameOnStack()
+ event.keyIdentifier === 'Down' && this._selectNextCallFrameOnStack()
)
event.consume(true);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
index 6a9c14a..8236e8c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/EventListenerBreakpointsSidebarPane.js
@@ -226,7 +226,7 @@ WebInspector.EventListenerBreakpointsSidebarPane.eventNameForUI = function(
if (auxData) {
if (
eventName === 'instrumentation:webglErrorFired' &&
- auxData['webglErrorName']
+ auxData['webglErrorName']
) {
var errorName = auxData['webglErrorName'];
// If there is a hex code of the error, display only this.
@@ -282,7 +282,7 @@ WebInspector.EventListenerBreakpointsSidebarPane.prototype = {
categoryItem.targetNames = this._stringArrayToLowerCase(
targetNames ||
- [WebInspector.EventListenerBreakpointsSidebarPane.eventTargetAny],
+ [WebInspector.EventListenerBreakpointsSidebarPane.eventTargetAny],
);
categoryItem.children = {};
var category = isInstrumentationEvent
@@ -461,7 +461,7 @@ WebInspector.EventListenerBreakpointsSidebarPane.prototype = {
*/
_findBreakpointItem: function(eventName, targetName) {
targetName = (targetName ||
- WebInspector.EventListenerBreakpointsSidebarPane.eventTargetAny).toLowerCase();
+ WebInspector.EventListenerBreakpointsSidebarPane.eventTargetAny).toLowerCase();
for (var i = 0; i < this._categoryItems.length; ++i) {
var categoryItem = this._categoryItems[i];
if (categoryItem.targetNames.indexOf(targetName) === -1) continue;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
index d2a8165..1824dcf 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/FilteredItemSelectionDialog.js
@@ -119,7 +119,7 @@ WebInspector.FilteredItemSelectionDialog.prototype = {
WebInspector.setCurrentFocusElement(this._promptElement);
if (
this._filteredItems.length &&
- this._viewportControl.lastVisibleIndex() === -1
+ this._viewportControl.lastVisibleIndex() === -1
)
this._viewportControl.refresh();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
index d3824a3..daf4c7f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptBreakpointsSidebarPane.js
@@ -136,7 +136,7 @@ WebInspector.JavaScriptBreakpointsSidebarPane.prototype = {
while (currentElement) {
if (
currentElement._data &&
- this._compareBreakpoints(currentElement._data, element._data) > 0
+ this._compareBreakpoints(currentElement._data, element._data) > 0
)
break;
currentElement = currentElement.nextSibling;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
index c1610c0..647e2fb 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/JavaScriptSourceFrame.js
@@ -222,7 +222,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var contentType = this._uiSourceCode.contentType();
if (
contentType !== WebInspector.resourceTypes.Script &&
- contentType !== WebInspector.resourceTypes.Document
+ contentType !== WebInspector.resourceTypes.Document
)
return;
var projectType = this._uiSourceCode.project().type();
@@ -448,7 +448,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
if (
this._uiSourceCode.project().type() ===
WebInspector.projectTypes.Network &&
- WebInspector.settings.jsSourceMapsEnabled.get()
+ WebInspector.settings.jsSourceMapsEnabled.get()
) {
if (this._scriptFileForTarget.size) {
var scriptFile = this._scriptFileForTarget.valuesArray()[0];
@@ -466,7 +466,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
_workingCopyChanged: function(event) {
if (
this._supportsEnabledBreakpointsWhileEditing() ||
- this._scriptFileForTarget.size
+ this._scriptFileForTarget.size
)
return;
if (this._uiSourceCode.isDirty()) this._muteBreakpointsWhileEditing();
@@ -611,8 +611,8 @@ WebInspector.JavaScriptSourceFrame.prototype = {
} else {
if (
hasDivergedScript &&
- !this._uiSourceCode.isDirty() &&
- !this._hasCommittedLiveEdit
+ !this._uiSourceCode.isDirty() &&
+ !this._hasCommittedLiveEdit
)
this._showDivergedInfobar();
}
@@ -689,9 +689,9 @@ WebInspector.JavaScriptSourceFrame.prototype = {
if (textSelection && !textSelection.isEmpty()) {
if (
textSelection.startLine !== textSelection.endLine ||
- textSelection.startLine !== mouseLine ||
- mouseColumn < textSelection.startColumn ||
- mouseColumn > textSelection.endColumn
+ textSelection.startLine !== mouseLine ||
+ mouseColumn < textSelection.startColumn ||
+ mouseColumn > textSelection.endColumn
)
return;
var leftCorner = this.textEditor.cursorPositionToCoordinates(
@@ -795,8 +795,8 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var target = WebInspector.context.flavor(WebInspector.Target);
if (
selectedCallFrame.target() != target ||
- !target.debuggerModel.isPaused() ||
- !result
+ !target.debuggerModel.isPaused() ||
+ !result
) {
this._popoverHelper.hidePopover();
return;
@@ -935,7 +935,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
_generateValuesInSource: function() {
if (
!Runtime.experiments.isEnabled('inlineVariableValues') ||
- !WebInspector.settings.inlineVariableValues.get()
+ !WebInspector.settings.inlineVariableValues.get()
)
return;
var executionContext = WebInspector.context.flavor(
@@ -979,7 +979,7 @@ WebInspector.JavaScriptSourceFrame.prototype = {
);
if (
functionUILocation.uiSourceCode !== this._uiSourceCode ||
- executionUILocation.uiSourceCode !== this._uiSourceCode
+ executionUILocation.uiSourceCode !== this._uiSourceCode
) {
this._clearValueWidgets();
return;
@@ -1303,9 +1303,9 @@ WebInspector.JavaScriptSourceFrame.prototype = {
var eventObject = eventData.event;
if (
eventObject.button != 0 ||
- eventObject.altKey ||
- eventObject.ctrlKey ||
- eventObject.metaKey
+ eventObject.altKey ||
+ eventObject.ctrlKey ||
+ eventObject.metaKey
)
return;
this._toggleBreakpoint(lineNumber, eventObject.shiftKey);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
index a005d64..1199196 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/NavigatorView.js
@@ -445,7 +445,7 @@ WebInspector.NavigatorView.prototype = {
if (
project.type() === WebInspector.projectTypes.FileSystem &&
- node === projectNode
+ node === projectNode
) {
var removeFolderLabel = WebInspector.UIString.capitalize(
'Remove ^folder from ^workspace',
@@ -568,8 +568,8 @@ WebInspector.SourcesNavigatorView.prototype = {
var inspectedPageURL = WebInspector.targetManager.inspectedPageURL();
if (
inspectedPageURL &&
- WebInspector.networkMapping.networkURL(uiSourceCode) ===
- inspectedPageURL
+ WebInspector.networkMapping.networkURL(uiSourceCode) ===
+ inspectedPageURL
)
this.revealUISourceCode(uiSourceCode, true);
}
@@ -586,8 +586,7 @@ WebInspector.SourcesNavigatorView.prototype = {
var inspectedPageURL = WebInspector.targetManager.inspectedPageURL();
if (
inspectedPageURL &&
- WebInspector.networkMapping.networkURL(uiSourceCode) ===
- inspectedPageURL
+ WebInspector.networkMapping.networkURL(uiSourceCode) === inspectedPageURL
)
this.revealUISourceCode(uiSourceCode, true);
},
@@ -1150,8 +1149,8 @@ WebInspector.NavigatorUISourceCodeTreeNode.prototype = {
var titleText = this._uiSourceCode.displayName();
if (
!ignoreIsDirty &&
- (this._uiSourceCode.isDirty() ||
- this._uiSourceCode.hasUnsavedCommittedChanges())
+ (this._uiSourceCode.isDirty() ||
+ this._uiSourceCode.hasUnsavedCommittedChanges())
)
titleText = '*' + titleText;
this._treeElement.titleText = titleText;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
index 23f286a..1a2fdbd 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScopeChainSidebarPane.js
@@ -167,7 +167,7 @@ WebInspector.ScopeChainSidebarPane.prototype = {
var element /** @type {!WebInspector.ObjectPropertyTreeElement} */ = event.data;
if (
element.isExpandable() &&
- this._expandedProperties.has(this._propertyPath(element))
+ this._expandedProperties.has(this._propertyPath(element))
)
element.expand();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
index 971b576..cf9d63c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatter.js
@@ -47,8 +47,8 @@ WebInspector.Formatter.format = function(
) {
if (
contentType === WebInspector.resourceTypes.Script ||
- contentType === WebInspector.resourceTypes.Document ||
- contentType === WebInspector.resourceTypes.Stylesheet
+ contentType === WebInspector.resourceTypes.Document ||
+ contentType === WebInspector.resourceTypes.Stylesheet
)
new WebInspector.ScriptFormatter(mimeType, content, callback);
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
index cfe8ee2..aef3359 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/ScriptFormatterEditorAction.js
@@ -217,9 +217,9 @@ WebInspector.ScriptFormatterEditorAction.prototype = {
var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode);
if (
this._isFormatableScript(uiSourceCode) &&
- networkURL &&
- this._pathsToFormatOnLoad.has(path) &&
- !this._formattedPaths.get(path)
+ networkURL &&
+ this._pathsToFormatOnLoad.has(path) &&
+ !this._formattedPaths.get(path)
)
this._formatUISourceCodeScript(uiSourceCode);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
index 9479170..3f5151b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesNavigator.js
@@ -191,7 +191,7 @@ WebInspector.SnippetsNavigatorView.prototype = {
);
if (
uiSourceCode.project().type() !== WebInspector.projectTypes.Snippets ||
- !executionContext
+ !executionContext
)
return;
WebInspector.scriptSnippetModel.evaluateScriptSnippet(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
index 82f0910..02685b5 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesPanel.js
@@ -531,7 +531,7 @@ WebInspector.SourcesPanel.prototype = {
if (
!callFrame ||
- callFrame.target() !== WebInspector.context.flavor(WebInspector.Target)
+ callFrame.target() !== WebInspector.context.flavor(WebInspector.Target)
)
return;
@@ -1106,8 +1106,7 @@ WebInspector.SourcesPanel.prototype = {
if (
uiSourceCode.project().type() === WebInspector.projectTypes.Network ||
- uiSourceCode.project().type() ===
- WebInspector.projectTypes.ContentScripts
+ uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts
) {
if (!this._workspace.projects().filter(filterProject).length) return;
var networkURL = this._networkMapping.networkURL(uiSourceCode);
@@ -1144,7 +1143,7 @@ WebInspector.SourcesPanel.prototype = {
if (
(contentType === WebInspector.resourceTypes.Script ||
contentType === WebInspector.resourceTypes.Document) &&
- projectType !== WebInspector.projectTypes.Snippets
+ projectType !== WebInspector.projectTypes.Snippets
) {
var networkURL = this._networkMapping.networkURL(uiSourceCode);
var url = projectType === WebInspector.projectTypes.Formatter
@@ -1159,7 +1158,7 @@ WebInspector.SourcesPanel.prototype = {
if (
projectType !== WebInspector.projectTypes.Debugger &&
- !event.target.isSelfOrDescendant(this._navigator.view.element)
+ !event.target.isSelfOrDescendant(this._navigator.view.element)
) {
contextMenu.appendSeparator();
contextMenu.appendItem(
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
index 2a7a986..83e287b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/SourcesView.js
@@ -191,7 +191,7 @@ WebInspector.SourcesView.prototype = {
WebInspector.KeyboardShortcut.makeDescriptor(
'o',
WebInspector.KeyboardShortcut.Modifiers.CtrlOrMeta |
- WebInspector.KeyboardShortcut.Modifiers.Shift,
+ WebInspector.KeyboardShortcut.Modifiers.Shift,
),
],
this._showOutlineDialog.bind(this),
@@ -317,9 +317,9 @@ WebInspector.SourcesView.prototype = {
);
if (
currentUISourceCode.project().isServiceProject() &&
- currentUISourceCode !== uiSourceCode &&
- currentNetworkURL === networkURL &&
- networkURL
+ currentUISourceCode !== uiSourceCode &&
+ currentNetworkURL === networkURL &&
+ networkURL
) {
this._showFile(uiSourceCode);
this._editorContainer.removeUISourceCode(currentUISourceCode);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
index 8e9bc81..a62a955 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/TabbedEditorContainer.js
@@ -242,12 +242,12 @@ WebInspector.TabbedEditorContainer.prototype = {
// FIXME: this should be replaced with common Save/Discard/Cancel dialog.
if (
!shouldPrompt ||
- confirm(
- WebInspector.UIString(
- 'Are you sure you want to close unsaved file: %s?',
- uiSourceCode.name(),
- ),
- )
+ confirm(
+ WebInspector.UIString(
+ 'Are you sure you want to close unsaved file: %s?',
+ uiSourceCode.name(),
+ ),
+ )
) {
uiSourceCode.resetWorkingCopy();
if (nextTabId) this._tabbedPane.selectTab(nextTabId, true);
@@ -300,8 +300,8 @@ WebInspector.TabbedEditorContainer.prototype = {
var snippetsProjectType = WebInspector.projectTypes.Snippets;
if (
this._history.index(this._currentFile.uri()) &&
- currentProjectType === snippetsProjectType &&
- addedProjectType !== snippetsProjectType
+ currentProjectType === snippetsProjectType &&
+ addedProjectType !== snippetsProjectType
)
this._innerShowFile(uiSourceCode, false);
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
index 2f659c6..3006d33 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/UISourceCodeFrame.js
@@ -91,13 +91,13 @@ WebInspector.UISourceCodeFrame.prototype = {
var projectType = this._uiSourceCode.project().type();
if (
projectType === WebInspector.projectTypes.Service ||
- projectType === WebInspector.projectTypes.Debugger ||
- projectType === WebInspector.projectTypes.Formatter
+ projectType === WebInspector.projectTypes.Debugger ||
+ projectType === WebInspector.projectTypes.Formatter
)
return false;
if (
projectType === WebInspector.projectTypes.Network &&
- this._uiSourceCode.contentType() === WebInspector.resourceTypes.Document
+ this._uiSourceCode.contentType() === WebInspector.resourceTypes.Document
)
return false;
return true;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
index 4979112..886ce85 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WatchExpressionsSidebarPane.js
@@ -441,8 +441,8 @@ WebInspector.WatchExpression.prototype = {
if (
!this.isEditing() &&
- this._result &&
- (this._result.type === 'number' || this._result.type === 'string')
+ this._result &&
+ (this._result.type === 'number' || this._result.type === 'string')
)
contextMenu.appendItem(
WebInspector.UIString.capitalize('Copy ^value'),
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
index 4f55745..ae0eea4 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/WorkspaceMappingTip.js
@@ -23,7 +23,7 @@ WebInspector.WorkspaceMappingTip = function(sourcesPanel, workspace) {
if (
!this._workspaceInfobarAllowedSetting.get() &&
- !this._workspaceMappingInfobarAllowedSetting.get()
+ !this._workspaceMappingInfobarAllowedSetting.get()
)
return;
this._sourcesView.addEventListener(
@@ -58,7 +58,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
// First try mapping filesystem -> network.
if (
this._workspaceMappingInfobarAllowedSetting.get() &&
- uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem
+ uiSourceCode.project().type() === WebInspector.projectTypes.FileSystem
) {
var networkURL = WebInspector.networkMapping.networkURL(uiSourceCode);
var hasMappings = !!networkURL;
@@ -88,8 +88,7 @@ WebInspector.WorkspaceMappingTip.prototype = {
// Then map network -> filesystem.
if (
uiSourceCode.project().type() === WebInspector.projectTypes.Network ||
- uiSourceCode.project().type() ===
- WebInspector.projectTypes.ContentScripts
+ uiSourceCode.project().type() === WebInspector.projectTypes.ContentScripts
) {
// Suggest for localhost only.
if (!this._isLocalHost(uiSourceCode.originURL())) return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
index d21b557..9b326c9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/sources/jsdifflib.js
@@ -193,9 +193,9 @@ difflib = {
while (
besti > alo &&
- bestj > blo &&
- !isbjunk(b[bestj - 1]) &&
- a[besti - 1] == b[bestj - 1]
+ bestj > blo &&
+ !isbjunk(b[bestj - 1]) &&
+ a[besti - 1] == b[bestj - 1]
) {
besti--;
bestj--;
@@ -204,18 +204,18 @@ difflib = {
while (
besti + bestsize < ahi &&
- bestj + bestsize < bhi &&
- !isbjunk(b[bestj + bestsize]) &&
- a[besti + bestsize] == b[bestj + bestsize]
+ bestj + bestsize < bhi &&
+ !isbjunk(b[bestj + bestsize]) &&
+ a[besti + bestsize] == b[bestj + bestsize]
) {
bestsize++;
}
while (
besti > alo &&
- bestj > blo &&
- isbjunk(b[bestj - 1]) &&
- a[besti - 1] == b[bestj - 1]
+ bestj > blo &&
+ isbjunk(b[bestj - 1]) &&
+ a[besti - 1] == b[bestj - 1]
) {
besti--;
bestj--;
@@ -224,9 +224,9 @@ difflib = {
while (
besti + bestsize < ahi &&
- bestj + bestsize < bhi &&
- isbjunk(b[bestj + bestsize]) &&
- a[besti + bestsize] == b[bestj + bestsize]
+ bestj + bestsize < bhi &&
+ isbjunk(b[bestj + bestsize]) &&
+ a[besti + bestsize] == b[bestj + bestsize]
) {
bestsize++;
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
index 06c5074..7b447f1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/EmulatedDevices.js
@@ -86,8 +86,8 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
function parseValue(object, key, type, defaultValue) {
if (
typeof object !== 'object' ||
- object === null ||
- !object.hasOwnProperty(key)
+ object === null ||
+ !object.hasOwnProperty(key)
) {
if (typeof defaultValue !== 'undefined') return defaultValue;
throw new Error(
@@ -98,10 +98,10 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
if (typeof value !== type || value === null)
throw new Error(
"Emulated device property '" +
- key +
- "' has wrong type '" +
- typeof value +
- "'",
+ key +
+ "' has wrong type '" +
+ typeof value +
+ "'",
);
return value;
}
@@ -177,14 +177,14 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
result.width = parseIntValue(json, 'width');
if (
result.width < 0 ||
- result.width > WebInspector.OverridesSupport.MaxDeviceSize
+ result.width > WebInspector.OverridesSupport.MaxDeviceSize
)
throw new Error('Emulated device has wrong width: ' + result.width);
result.height = parseIntValue(json, 'height');
if (
result.height < 0 ||
- result.height > WebInspector.OverridesSupport.MaxDeviceSize
+ result.height > WebInspector.OverridesSupport.MaxDeviceSize
)
throw new Error('Emulated device has wrong height: ' + result.height);
@@ -229,7 +229,7 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
if (result.deviceScaleFactor < 0 || result.deviceScaleFactor > 100)
throw new Error(
'Emulated device has wrong deviceScaleFactor: ' +
- result.deviceScaleFactor,
+ result.deviceScaleFactor,
);
result.vertical = parseOrientation(
@@ -257,22 +257,22 @@ WebInspector.EmulatedDevice.fromJSONV1 = function(json) {
);
if (
mode.orientation !== WebInspector.EmulatedDevice.Vertical &&
- mode.orientation !== WebInspector.EmulatedDevice.Horizontal
+ mode.orientation !== WebInspector.EmulatedDevice.Horizontal
)
throw new Error(
"Emulated device mode has wrong orientation '" +
- mode.orientation +
- "'",
+ mode.orientation +
+ "'",
);
var orientation = result.orientationByName(mode.orientation);
mode.pageRect = parseIntRect(parseValue(modes[i], 'page-rect', 'object'));
if (
mode.pageRect.top < 0 ||
- mode.pageRect.left < 0 ||
- mode.pageRect.width < 0 ||
- mode.pageRect.height < 0 ||
- mode.pageRect.top + mode.pageRect.height > orientation.height ||
- mode.pageRect.left + mode.pageRect.width > orientation.width
+ mode.pageRect.left < 0 ||
+ mode.pageRect.width < 0 ||
+ mode.pageRect.height < 0 ||
+ mode.pageRect.top + mode.pageRect.height > orientation.height ||
+ mode.pageRect.left + mode.pageRect.width > orientation.width
) {
throw new Error(
"Emulated device mode '" + mode.title + "'has wrong page rect",
@@ -653,8 +653,8 @@ WebInspector.EmulatedDevicesList.prototype = {
var lastUpdated = this._lastUpdatedSetting.get();
if (
lastUpdated &&
- Date.now() - lastUpdated <
- WebInspector.EmulatedDevicesList._UpdateIntervalMs
+ Date.now() - lastUpdated <
+ WebInspector.EmulatedDevicesList._UpdateIntervalMs
)
return;
this.update();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
index 19543c7..08cb6f1 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/InspectedPagePlaceholder.js
@@ -49,9 +49,9 @@ WebInspector.InspectedPagePlaceholder.prototype = {
if (
this._margins.top !== margins.top ||
- this._margins.left !== margins.left ||
- this._margins.right !== margins.right ||
- this._margins.bottom !== margins.bottom
+ this._margins.left !== margins.left ||
+ this._margins.right !== margins.right ||
+ this._margins.bottom !== margins.bottom
) {
this._margins = margins;
this._scheduleUpdate();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
index c3a83f9..e238801 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/MediaQueryInspector.js
@@ -476,7 +476,7 @@ WebInspector.MediaQueryInspector.MediaQueryUIModel.createFromMediaQuery = functi
}
if (
minWidthPixels > maxWidthPixels ||
- !maxWidthExpression && !minWidthExpression
+ !maxWidthExpression && !minWidthExpression
)
return null;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
index 5095f54..17a5b91 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/OverridesUI.js
@@ -197,7 +197,7 @@ WebInspector.OverridesUI.createNetworkConditionsSelect = function() {
for (var i = 0; i < presets.length; ++i) {
if (
presets[i].throughput === conditions.throughput / kbps &&
- presets[i].latency === conditions.latency
+ presets[i].latency === conditions.latency
) {
presetIndex = i;
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
index 4e485cc..c52af67 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/toolbox/ResponsiveDesignView.js
@@ -297,7 +297,7 @@ WebInspector.ResponsiveDesignView.prototype = {
this._availableSize = new Size(
Math.max(
rect.width * zoomFactor -
- WebInspector.ResponsiveDesignView.RulerWidth,
+ WebInspector.ResponsiveDesignView.RulerWidth,
1,
),
Math.max(rect.height * zoomFactor - rulerTotalHeight, 1),
@@ -633,7 +633,7 @@ WebInspector.ResponsiveDesignView.prototype = {
if (
this._cachedZoomFactor !== zoomFactor ||
- this._cachedMediaInspectorHeight !== mediaInspectorHeight
+ this._cachedMediaInspectorHeight !== mediaInspectorHeight
) {
var cssRulerWidth = WebInspector.ResponsiveDesignView.RulerWidth /
zoomFactor +
@@ -1092,9 +1092,9 @@ WebInspector.ResponsiveDesignView.prototype = {
function updatePageScaleFactor(finishCallback) {
if (
this._target &&
- this._viewport &&
- this._viewport.minimumPageScaleFactor <= 1 &&
- this._viewport.maximumPageScaleFactor >= 1
+ this._viewport &&
+ this._viewport.minimumPageScaleFactor <= 1 &&
+ this._viewport.maximumPageScaleFactor >= 1
)
this._target.emulationAgent().setPageScaleFactor(1);
finishCallback();
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
index 9ca214e..99f1124 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ContextMenu.js
@@ -306,7 +306,7 @@ WebInspector.ContextMenu.prototype = {
WebInspector._contextMenu = this;
if (
WebInspector.ContextMenu._useSoftMenu ||
- InspectorFrontendHost.isHostedMode()
+ InspectorFrontendHost.isHostedMode()
) {
var softMenu = new WebInspector.SoftContextMenu(
menuObject,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
index ace0090..48b23ef 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/FilterBar.js
@@ -519,7 +519,7 @@ WebInspector.NamedBitSetFilterUI.prototype = {
_update: function() {
if (
Object.keys(this._allowedTypes).length === 0 ||
- this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES]
+ this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES]
) {
this._allowedTypes = {};
this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES] = true;
@@ -567,7 +567,7 @@ WebInspector.NamedBitSetFilterUI.prototype = {
_toggleTypeFilter: function(typeName, allowMultiSelect) {
if (
allowMultiSelect &&
- typeName !== WebInspector.NamedBitSetFilterUI.ALL_TYPES
+ typeName !== WebInspector.NamedBitSetFilterUI.ALL_TYPES
)
this._allowedTypes[WebInspector.NamedBitSetFilterUI.ALL_TYPES] = false;
else
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
index 17bd53d..079ab22 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/HistoryInput.js
@@ -54,7 +54,7 @@ WebInspector.HistoryInput.prototype = {
_saveToHistory: function() {
if (
this._history.length > 1 &&
- this._history[this._history.length - 2] === this.value
+ this._history[this._history.length - 2] === this.value
)
return;
this._history[this._history.length - 1] = this.value;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
index a3099ce..c5b7a07 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/InplaceEditor.js
@@ -130,9 +130,9 @@ WebInspector.InplaceEditor.prototype = {
if (config.blurHandler && !config.blurHandler(element, e)) return;
if (
!isMultiline ||
- !e ||
- !e.relatedTarget ||
- !e.relatedTarget.isSelfOrDescendant(element)
+ !e ||
+ !e.relatedTarget ||
+ !e.relatedTarget.isSelfOrDescendant(element)
)
editingCommitted.call(element);
}
@@ -175,12 +175,12 @@ WebInspector.InplaceEditor.prototype = {
: event.ctrlKey && !event.shiftKey && !event.metaKey && !event.altKey;
if (
isEnterKey(event) &&
- (event.isMetaOrCtrlForTest || !isMultiline || isMetaOrCtrl)
+ (event.isMetaOrCtrlForTest || !isMultiline || isMetaOrCtrl)
)
return 'commit';
else if (
event.keyCode === WebInspector.KeyboardShortcut.Keys.Esc.code ||
- event.keyIdentifier === 'U+001B'
+ event.keyIdentifier === 'U+001B'
)
return 'cancel';
else if (
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/KeyboardShortcut.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/KeyboardShortcut.js
index 27167cb..5d96a2e 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/KeyboardShortcut.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/KeyboardShortcut.js
@@ -235,8 +235,8 @@ WebInspector.KeyboardShortcut.makeDescriptorFromBindingShortcut = function(
console.assert(
i === parts.length - 1,
'Only one key other than modifier is allowed in shortcut <' +
- shortcut +
- '>',
+ shortcut +
+ '>',
);
keyString = parts[i];
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
index 425d073..72f228f 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/Popover.js
@@ -225,12 +225,12 @@ WebInspector.Popover.prototype = {
if (
roomAbove > roomBelow ||
- arrowDirection === WebInspector.Popover.Orientation.Bottom
+ arrowDirection === WebInspector.Popover.Orientation.Bottom
) {
// Positioning above the anchor.
if (
anchorBox.y > newElementPosition.height + arrowHeight + borderRadius ||
- arrowDirection === WebInspector.Popover.Orientation.Bottom
+ arrowDirection === WebInspector.Popover.Orientation.Bottom
)
newElementPosition.y = anchorBox.y -
newElementPosition.height -
@@ -254,7 +254,7 @@ WebInspector.Popover.prototype = {
if (
newElementPosition.y + newElementPosition.height + borderRadius >=
totalHeight &&
- arrowDirection !== WebInspector.Popover.Orientation.Top
+ arrowDirection !== WebInspector.Popover.Orientation.Top
) {
newElementPosition.height = totalHeight -
borderRadius -
@@ -399,7 +399,7 @@ WebInspector.PopoverHelper.prototype = {
if (!this.isPopoverVisible()) return;
if (
event.relatedTarget &&
- !event.relatedTarget.isSelfOrDescendant(this._popover._contentDiv)
+ !event.relatedTarget.isSelfOrDescendant(this._popover._contentDiv)
)
this._startHidePopoverTimer();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
index a4dae95..13b2e1b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SearchableView.js
@@ -317,7 +317,7 @@ WebInspector.SearchableView.findPreviousShortcuts = function() {
WebInspector.KeyboardShortcut.makeDescriptor(
'g',
WebInspector.KeyboardShortcut.Modifiers.Meta |
- WebInspector.KeyboardShortcut.Modifiers.Shift,
+ WebInspector.KeyboardShortcut.Modifiers.Shift,
),
);
return WebInspector.SearchableView._findPreviousShortcuts;
@@ -457,9 +457,9 @@ WebInspector.SearchableView.prototype = {
this.cancelSearch();
if (
WebInspector.currentFocusElement() &&
- WebInspector.currentFocusElement().isDescendant(
- this._footerElementContainer,
- )
+ WebInspector.currentFocusElement().isDescendant(
+ this._footerElementContainer,
+ )
)
this.focus();
},
@@ -603,7 +603,7 @@ WebInspector.SearchableView.prototype = {
_jumpToNextSearchResult: function(isBackwardSearch) {
if (
!this._currentQuery ||
- !this._searchNavigationPrevElement.classList.contains('enabled')
+ !this._searchNavigationPrevElement.classList.contains('enabled')
)
return;
@@ -649,9 +649,9 @@ WebInspector.SearchableView.prototype = {
var query = this._searchInputElement.value;
if (
!query ||
- !forceSearch &&
- query.length < this._minimalSearchQuerySize &&
- !this._currentQuery
+ !forceSearch &&
+ query.length < this._minimalSearchQuerySize &&
+ !this._currentQuery
) {
this._clearSearch();
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
index 0637c69..b050d1a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ShortcutRegistry.js
@@ -115,8 +115,8 @@ WebInspector.ShortcutRegistry.prototype = {
function isPossiblyInputKey() {
if (
!event ||
- !WebInspector.isEditing() ||
- /^F\d+|Control|Shift|Alt|Meta|Win|U\+001B$/.test(keyIdentifier)
+ !WebInspector.isEditing() ||
+ /^F\d+|Control|Shift|Alt|Meta|Win|U\+001B$/.test(keyIdentifier)
)
return false;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
index 0058672..b2eb3a9 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SidebarPane.js
@@ -128,7 +128,7 @@ WebInspector.SidebarPaneTitle.prototype = {
_onTitleKeyDown: function(event) {
if (
isEnterKey(event) ||
- event.keyCode === WebInspector.KeyboardShortcut.Keys.Space.code
+ event.keyCode === WebInspector.KeyboardShortcut.Keys.Space.code
)
this._toggleExpanded();
},
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
index d9318c7..56903d0 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SoftContextMenu.js
@@ -302,7 +302,7 @@ WebInspector.SoftContextMenu.prototype = {
);
if (
this._highlightedMenuItemElement._subItems &&
- this._highlightedMenuItemElement._subMenuTimer
+ this._highlightedMenuItemElement._subMenuTimer
) {
clearTimeout(this._highlightedMenuItemElement._subMenuTimer);
delete this._highlightedMenuItemElement._subMenuTimer;
@@ -316,7 +316,7 @@ WebInspector.SoftContextMenu.prototype = {
this._contextMenuElement.focus();
if (
this._highlightedMenuItemElement._subItems &&
- !this._highlightedMenuItemElement._subMenuTimer
+ !this._highlightedMenuItemElement._subMenuTimer
)
this._highlightedMenuItemElement._subMenuTimer = setTimeout(
this._showSubMenu.bind(this, this._highlightedMenuItemElement),
@@ -379,8 +379,8 @@ WebInspector.SoftContextMenu.prototype = {
// Return if this is simple 'click', since dispatched on glass pane, can't use 'click' event.
if (
event.x === this._x &&
- event.y === this._y &&
- new Date().getTime() - this._time < 300
+ event.y === this._y &&
+ new Date().getTime() - this._time < 300
)
return;
this._discardMenu(true, event);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
index 567f76e..922709a 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/SplitView.js
@@ -175,7 +175,7 @@ WebInspector.SplitView.prototype = {
view.element.classList.remove('insertion-point-sidebar');
if (
this._showMode === WebInspector.SplitView.ShowMode.OnlyMain ||
- this._showMode === WebInspector.SplitView.ShowMode.Both
+ this._showMode === WebInspector.SplitView.ShowMode.Both
)
view.show(this.element);
}
@@ -191,7 +191,7 @@ WebInspector.SplitView.prototype = {
view.element.classList.remove('insertion-point-main');
if (
this._showMode === WebInspector.SplitView.ShowMode.OnlySidebar ||
- this._showMode === WebInspector.SplitView.ShowMode.Both
+ this._showMode === WebInspector.SplitView.ShowMode.Both
)
view.show(this.element);
}
@@ -447,7 +447,7 @@ WebInspector.SplitView.prototype = {
_innerSetSidebarSizeDIP: function(sizeDIP, animate, userAction) {
if (
this._showMode !== WebInspector.SplitView.ShowMode.Both ||
- !this.isShowing()
+ !this.isShowing()
)
return;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
index 594b14e..8a81eeb 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/StatusBar.js
@@ -802,8 +802,8 @@ WebInspector.StatusBarStatesSettingButton.prototype = {
var lastState = this._lastStateSetting.get();
if (
lastState &&
- this._states.indexOf(lastState) >= 0 &&
- lastState != this._currentState
+ this._states.indexOf(lastState) >= 0 &&
+ lastState != this._currentState
)
return lastState;
if (this._states.length > 1 && this._currentState === this._states[0])
@@ -818,7 +818,7 @@ WebInspector.StatusBarStatesSettingButton.prototype = {
for (var index = 0; index < this._states.length; index++) {
if (
this._states[index] !== this.state() &&
- this._states[index] !== this._currentState
+ this._states[index] !== this._currentState
)
options.push(this._buttons[index]);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
index c979147..6d13fc3 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TabbedPane.js
@@ -971,7 +971,7 @@ WebInspector.TabbedPaneTab.prototype = {
_tabMouseDown: function(event) {
if (
event.target.classList.contains('tabbed-pane-close-button-gray') ||
- event.button === 1
+ event.button === 1
)
return;
this._tabbedPane.selectTab(this.id, true);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
index efb43b2..5d76a6c 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/TextPrompt.js
@@ -238,7 +238,7 @@ WebInspector.TextPrompt.prototype = {
delete this._selectionTimeout;
if (
!this.isCaretInsidePrompt() &&
- this._element.isComponentSelectionCollapsed()
+ this._element.isComponentSelectionCollapsed()
) {
this.moveCaretToEndOfPrompt();
this.autoCompleteSoon();
@@ -529,9 +529,9 @@ WebInspector.TextPrompt.prototype = {
_completeCommonPrefix: function() {
if (
!this.autoCompleteElement ||
- !this._commonPrefix ||
- !this._userEnteredText ||
- !this._commonPrefix.startsWith(this._userEnteredText)
+ !this._commonPrefix ||
+ !this._userEnteredText ||
+ !this._commonPrefix.startsWith(this._userEnteredText)
)
return;
@@ -665,7 +665,7 @@ WebInspector.TextPrompt.prototype = {
if (
node.nodeType === Node.TEXT_NODE &&
- selectionRange.startOffset < node.nodeValue.length
+ selectionRange.startOffset < node.nodeValue.length
)
return false;
@@ -674,8 +674,8 @@ WebInspector.TextPrompt.prototype = {
if (node.nodeType === Node.TEXT_NODE && node.nodeValue.length) {
if (
foundNextText &&
- (!this.autoCompleteElement ||
- !this.autoCompleteElement.isAncestor(node))
+ (!this.autoCompleteElement ||
+ !this.autoCompleteElement.isAncestor(node))
)
return false;
foundNextText = true;
@@ -694,8 +694,8 @@ WebInspector.TextPrompt.prototype = {
var focusNode = selection.focusNode;
if (
!focusNode ||
- focusNode.nodeType !== Node.TEXT_NODE ||
- focusNode.parentNode !== this._element
+ focusNode.nodeType !== Node.TEXT_NODE ||
+ focusNode.parentNode !== this._element
)
return true;
@@ -724,8 +724,8 @@ WebInspector.TextPrompt.prototype = {
var focusNode = selection.focusNode;
if (
!focusNode ||
- focusNode.nodeType !== Node.TEXT_NODE ||
- focusNode.parentNode !== this._element
+ focusNode.nodeType !== Node.TEXT_NODE ||
+ focusNode.parentNode !== this._element
)
return true;
@@ -881,10 +881,10 @@ WebInspector.TextPromptWithHistory.prototype = {
case 'U+0050': // Ctrl+P = Previous
if (
WebInspector.isMac() &&
- event.ctrlKey &&
- !event.metaKey &&
- !event.altKey &&
- !event.shiftKey
+ event.ctrlKey &&
+ !event.metaKey &&
+ !event.altKey &&
+ !event.shiftKey
) {
newText = this._previous();
isPrevious = true;
@@ -893,10 +893,10 @@ WebInspector.TextPromptWithHistory.prototype = {
case 'U+004E': // Ctrl+N = Next
if (
WebInspector.isMac() &&
- event.ctrlKey &&
- !event.metaKey &&
- !event.altKey &&
- !event.shiftKey
+ event.ctrlKey &&
+ !event.metaKey &&
+ !event.altKey &&
+ !event.shiftKey
)
newText = this._next();
break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
index 18b0bc8..3f60654 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/UIUtils.js
@@ -251,8 +251,8 @@ WebInspector.isBeingEdited = function(node) {
var element /** {!Element} */ = node;
if (
element.classList.contains('text-prompt') ||
- element.nodeName === 'INPUT' ||
- element.nodeName === 'TEXTAREA'
+ element.nodeName === 'INPUT' ||
+ element.nodeName === 'TEXTAREA'
)
return true;
@@ -745,8 +745,8 @@ WebInspector._isTextEditingElement = function(element) {
WebInspector.setCurrentFocusElement = function(x) {
if (
WebInspector._glassPane &&
- x &&
- !WebInspector._glassPane.element.isAncestor(x)
+ x &&
+ !WebInspector._glassPane.element.isAncestor(x)
)
return;
if (WebInspector._currentFocusElement !== x)
@@ -762,8 +762,8 @@ WebInspector.setCurrentFocusElement = function(x) {
var selection = x.getComponentSelection();
if (
!WebInspector._isTextEditingElement(WebInspector._currentFocusElement) &&
- selection.isCollapsed &&
- !WebInspector._currentFocusElement.isInsertionCaretInside()
+ selection.isCollapsed &&
+ !WebInspector._currentFocusElement.isInsertionCaretInside()
) {
var selectionRange = WebInspector._currentFocusElement.ownerDocument.createRange();
selectionRange.setStart(WebInspector._currentFocusElement, 0);
@@ -798,32 +798,32 @@ WebInspector.setToolbarColors = function(document, backgroundColor, color) {
var prefix = WebInspector.isMac() ? 'body:not(.undocked)' : 'body';
WebInspector._themeStyleElement.textContent = String.sprintf(
'%s .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header {' +
- ' background-image: none !important;' +
- ' background-color: %s !important;' +
- ' color: %s !important;' +
- '}',
+ ' background-image: none !important;' +
+ ' background-color: %s !important;' +
+ ' color: %s !important;' +
+ '}',
prefix,
backgroundColor,
colorWithAlpha,
) +
String.sprintf(
'%s .inspector-view-tabbed-pane.tabbed-pane::shadow .tabbed-pane-header-tab:hover {' +
- ' color: %s;' +
- '}',
+ ' color: %s;' +
+ '}',
prefix,
color,
) +
String.sprintf(
'%s .inspector-view-toolbar.status-bar::shadow .status-bar-item {' +
- ' color: %s;' +
- '}',
+ ' color: %s;' +
+ '}',
prefix,
colorWithAlpha,
) +
String.sprintf(
'%s .inspector-view-toolbar.status-bar::shadow .status-bar-button-theme {' +
- ' background-color: %s;' +
- '}',
+ ' background-color: %s;' +
+ '}',
prefix,
colorWithAlpha,
);
@@ -929,14 +929,14 @@ WebInspector.highlightRangesWithStyleClass = function(
while (
startIndex < textNodes.length &&
- nodeRanges[startIndex].offset + nodeRanges[startIndex].length <=
- startOffset
+ nodeRanges[startIndex].offset + nodeRanges[startIndex].length <=
+ startOffset
)
startIndex++;
var endIndex = startIndex;
while (
endIndex < textNodes.length &&
- nodeRanges[endIndex].offset + nodeRanges[endIndex].length < endOffset
+ nodeRanges[endIndex].offset + nodeRanges[endIndex].length < endOffset
)
endIndex++;
if (endIndex === textNodes.length) break;
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/View.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/View.js
index f246d9c..990df51 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/View.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/View.js
@@ -327,10 +327,10 @@ WebInspector.View.prototype = {
_collectViewHierarchy: function(prefix, lines) {
lines.push(
prefix +
- '[' +
- this.element.className +
- ']' +
- (this._children.length ? ' {' : ''),
+ '[' +
+ this.element.className +
+ ']' +
+ (this._children.length ? ' {' : ''),
);
for (var i = 0; i < this._children.length; ++i)
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
index 85f03d4..1b8547b 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/ViewportControl.js
@@ -342,7 +342,7 @@ WebInspector.ViewportControl.prototype = {
var anchorOffset;
if (
this._firstVisibleIndex <= this._anchorSelection.item &&
- this._anchorSelection.item <= this._lastVisibleIndex
+ this._anchorSelection.item <= this._lastVisibleIndex
) {
anchorElement = this._anchorSelection.node;
anchorOffset = this._anchorSelection.offset;
@@ -358,7 +358,7 @@ WebInspector.ViewportControl.prototype = {
var headOffset;
if (
this._firstVisibleIndex <= this._headSelection.item &&
- this._headSelection.item <= this._lastVisibleIndex
+ this._headSelection.item <= this._lastVisibleIndex
) {
headElement = this._headSelection.node;
headOffset = this._headSelection.offset;
@@ -410,11 +410,11 @@ WebInspector.ViewportControl.prototype = {
// Tolerate 1-pixel error due to double-to-integer rounding errors.
if (
this._cumulativeHeights &&
- Math.abs(
- this._cachedItemHeight(this._firstVisibleIndex + i) -
- this._provider.fastHeight(i + this._firstVisibleIndex),
- ) >
- 1
+ Math.abs(
+ this._cachedItemHeight(this._firstVisibleIndex + i) -
+ this._provider.fastHeight(i + this._firstVisibleIndex),
+ ) >
+ 1
)
delete this._cumulativeHeights;
}
@@ -427,7 +427,7 @@ WebInspector.ViewportControl.prototype = {
this._lastVisibleIndex = itemCount - 1;
this._firstVisibleIndex = Math.max(
itemCount -
- Math.ceil(visibleHeight / this._provider.minimumRowHeight()),
+ Math.ceil(visibleHeight / this._provider.minimumRowHeight()),
0,
);
} else {
@@ -532,7 +532,7 @@ WebInspector.ViewportControl.prototype = {
.element();
if (
endSelection.node &&
- endSelection.node.isSelfOrDescendant(endSelectionElement)
+ endSelection.node.isSelfOrDescendant(endSelectionElement)
) {
var itemTextOffset = this._textOffsetInNode(
endSelectionElement,
@@ -549,7 +549,7 @@ WebInspector.ViewportControl.prototype = {
.element();
if (
startSelection.node &&
- startSelection.node.isSelfOrDescendant(startSelectionElement)
+ startSelection.node.isSelfOrDescendant(startSelectionElement)
) {
var itemTextOffset = this._textOffsetInNode(
startSelectionElement,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
index 7aa81ff..729c032 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui/treeoutline.js
@@ -168,9 +168,9 @@ TreeOutline.prototype = {
if (
!this.selectedTreeElement ||
- event.shiftKey ||
- event.metaKey ||
- event.ctrlKey
+ event.shiftKey ||
+ event.metaKey ||
+ event.ctrlKey
)
return;
@@ -475,8 +475,8 @@ TreeElement.prototype = {
var parent = child.parent;
if (
this.treeOutline &&
- this.treeOutline.selectedTreeElement &&
- this.treeOutline.selectedTreeElement.hasAncestorOrSelf(child)
+ this.treeOutline.selectedTreeElement &&
+ this.treeOutline.selectedTreeElement.hasAncestorOrSelf(child)
) {
if (child.nextSibling) child.nextSibling.select(true);
else if (child.previousSibling) child.previousSibling.select(true);
@@ -514,9 +514,9 @@ TreeElement.prototype = {
removeChildren: function() {
if (
!this.root &&
- this.treeOutline &&
- this.treeOutline.selectedTreeElement &&
- this.treeOutline.selectedTreeElement.hasAncestorOrSelf(this)
+ this.treeOutline &&
+ this.treeOutline.selectedTreeElement &&
+ this.treeOutline.selectedTreeElement.hasAncestorOrSelf(this)
)
this.select(true);
@@ -629,9 +629,9 @@ TreeElement.prototype = {
var selection = element.getComponentSelection();
if (
selection &&
- !selection.isCollapsed &&
- element.isSelfOrAncestor(selection.anchorNode) &&
- element.isSelfOrAncestor(selection.focusNode)
+ !selection.isCollapsed &&
+ element.isSelfOrAncestor(selection.anchorNode) &&
+ element.isSelfOrAncestor(selection.focusNode)
)
return;
}
@@ -808,8 +808,8 @@ TreeElement.prototype = {
deselect: function(supressOnDeselect) {
if (
!this.treeOutline ||
- this.treeOutline.selectedTreeElement !== this ||
- !this.selected
+ this.treeOutline.selectedTreeElement !== this ||
+ !this.selected
)
return;
@@ -899,11 +899,11 @@ TreeElement.prototype = {
element = this;
while (
element &&
- !element.root &&
- !(skipUnrevealed
- ? element.revealed() ? element.nextSibling : null
- : element.nextSibling) &&
- element.parent !== stayWithin
+ !element.root &&
+ !(skipUnrevealed
+ ? element.revealed() ? element.nextSibling : null
+ : element.nextSibling) &&
+ element.parent !== stayWithin
) {
if (info) info.depthChange -= 1;
element = element.parent;
@@ -928,9 +928,9 @@ TreeElement.prototype = {
while (
element &&
- (skipUnrevealed
- ? element.revealed() && element.expanded ? element.lastChild() : null
- : element.lastChild())
+ (skipUnrevealed
+ ? element.revealed() && element.expanded ? element.lastChild() : null
+ : element.lastChild())
) {
if (!dontPopulate) element._populateIfNeeded();
element = skipUnrevealed
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
index 797233f..2484c5d 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/DataGrid.js
@@ -360,8 +360,8 @@ WebInspector.DataGrid.prototype = {
var firstEditableColumn = this._nextEditableColumn(-1);
if (
currentEditingNode.isCreationNode &&
- cellIndex === firstEditableColumn &&
- !wasChange
+ cellIndex === firstEditableColumn &&
+ !wasChange
)
return;
@@ -474,9 +474,9 @@ WebInspector.DataGrid.prototype = {
sortOrder: function() {
if (
!this._sortColumnCell ||
- this._sortColumnCell.classList.contains(
- WebInspector.DataGrid.Order.Ascending,
- )
+ this._sortColumnCell.classList.contains(
+ WebInspector.DataGrid.Order.Ascending,
+ )
)
return WebInspector.DataGrid.Order.Ascending;
if (
@@ -770,10 +770,10 @@ WebInspector.DataGrid.prototype = {
_keyDown: function(event) {
if (
!this.selectedNode ||
- event.shiftKey ||
- event.metaKey ||
- event.ctrlKey ||
- this._editing
+ event.shiftKey ||
+ event.metaKey ||
+ event.ctrlKey ||
+ this._editing
)
return;
@@ -876,8 +876,8 @@ WebInspector.DataGrid.prototype = {
var cell = event.target.enclosingNodeOrSelfWithNodeName('th');
if (
!cell ||
- cell.columnIdentifier === undefined ||
- !cell.classList.contains('sortable')
+ cell.columnIdentifier === undefined ||
+ !cell.classList.contains('sortable')
)
return;
@@ -940,8 +940,8 @@ WebInspector.DataGrid.prototype = {
if (
gridNode &&
- gridNode.selectable &&
- !gridNode.isEventWithinDisclosureTriangle(event)
+ gridNode.selectable &&
+ !gridNode.isEventWithinDisclosureTriangle(event)
) {
if (this._editCallback) {
if (gridNode === this.creationNode)
@@ -1555,9 +1555,9 @@ WebInspector.DataGridNode.prototype = {
node = this;
while (
node &&
- !node._isRoot &&
- !(!skipHidden || node.revealed ? node.nextSibling : null) &&
- node.parent !== stayWithin
+ !node._isRoot &&
+ !(!skipHidden || node.revealed ? node.nextSibling : null) &&
+ node.parent !== stayWithin
) {
if (info) info.depthChange -= 1;
node = node.parent;
@@ -1578,9 +1578,9 @@ WebInspector.DataGridNode.prototype = {
while (
node &&
- (!skipHidden || node.revealed && node.expanded
- ? node.children[node.children.length - 1]
- : null)
+ (!skipHidden || node.revealed && node.expanded
+ ? node.children[node.children.length - 1]
+ : null)
) {
if (!dontPopulate && node.hasChildren) node.populate();
node = !skipHidden || node.revealed && node.expanded
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
index 0c31997..c7d9bed 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/FlameChart.js
@@ -468,7 +468,7 @@ WebInspector.FlameChart.prototype = {
var timelineData = this._dataProvider.timelineData();
if (
timelineData !== this._rawTimelineData ||
- timelineData.entryStartTimes.length !== this._rawTimelineDataLength
+ timelineData.entryStartTimes.length !== this._rawTimelineDataLength
)
this._processTimelineData(timelineData);
return this._rawTimelineData;
@@ -528,9 +528,9 @@ WebInspector.FlameChart.prototype = {
setWindowTimes: function(startTime, endTime) {
if (
this._muteAnimation ||
- this._timeWindowLeft === 0 ||
- this._timeWindowRight === Infinity ||
- startTime === 0 && endTime === Infinity
+ this._timeWindowLeft === 0 ||
+ this._timeWindowRight === Infinity ||
+ startTime === 0 && endTime === Infinity
) {
// Initial setup.
this._timeWindowLeft = startTime;
@@ -753,7 +753,7 @@ WebInspector.FlameChart.prototype = {
1.2,
(-(e.wheelDeltaY || e.wheelDeltaX)) * mouseWheelZoomSpeed,
) -
- 1,
+ 1,
);
}
@@ -1081,7 +1081,7 @@ WebInspector.FlameChart.prototype = {
context.rect(barX, barY, barWidth, barHeight - 1);
if (
barWidth > minTextWidth ||
- this._dataProvider.forceDecoration(entryIndex)
+ this._dataProvider.forceDecoration(entryIndex)
)
titleIndices[nextTitleIndex++] = entryIndex;
}
@@ -1214,7 +1214,7 @@ WebInspector.FlameChart.prototype = {
// Assign a trasparent color if the flow is small enough or if the previous color was a transparent color.
if (
endX - startX < minimumFlowDistancePx + fadeColorsRange ||
- colorIndex !== color.length - 1
+ colorIndex !== color.length - 1
) {
colorIndex = Math.min(
fadeColorsRange - 1,
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/PieChart.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/PieChart.js
index 110c45e..9c19269 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/PieChart.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/ui_lazy/PieChart.js
@@ -90,10 +90,10 @@ WebInspector.PieChart.prototype = {
this._group.setAttribute(
'transform',
'scale(' +
- value / 2 +
- ') translate(' +
- (1 + WebInspector.PieChart._ShadowSizePercent) +
- ',1)',
+ value / 2 +
+ ') translate(' +
+ (1 + WebInspector.PieChart._ShadowSizePercent) +
+ ',1)',
);
var size = value + 'px';
this.element.style.width = size;
@@ -117,16 +117,16 @@ WebInspector.PieChart.prototype = {
path.setAttribute(
'd',
'M0,0 L' +
- x1 +
- ',' +
- y1 +
- ' A1,1,0,' +
- largeArc +
- ',1,' +
- x2 +
- ',' +
- y2 +
- ' Z',
+ x1 +
+ ',' +
+ y1 +
+ ' A1,1,0,' +
+ largeArc +
+ ',1,' +
+ x2 +
+ ',' +
+ y2 +
+ ' Z',
);
path.setAttribute('fill', color);
this._slices.push(path);
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/IsolatedFileSystem.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/IsolatedFileSystem.js
index 1e6a45e..6caf2a2 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/IsolatedFileSystem.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/IsolatedFileSystem.js
@@ -204,9 +204,9 @@ WebInspector.IsolatedFileSystem.prototype = {
var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(error);
console.error(
errorMessage +
- " when testing if file exists '" +
- (this._path + '/' + path + '/' + nameCandidate) +
- "'",
+ " when testing if file exists '" +
+ (this._path + '/' + path + '/' + nameCandidate) +
+ "'",
);
callback(null);
}
@@ -264,9 +264,9 @@ WebInspector.IsolatedFileSystem.prototype = {
var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(error);
console.error(
errorMessage +
- " when deleting file '" +
- (this._path + '/' + path) +
- "'",
+ " when deleting file '" +
+ (this._path + '/' + path) +
+ "'",
);
}
},
@@ -372,9 +372,9 @@ WebInspector.IsolatedFileSystem.prototype = {
var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(error);
console.error(
errorMessage +
- " when getting content for file '" +
- (this._path + '/' + path) +
- "'",
+ " when getting content for file '" +
+ (this._path + '/' + path) +
+ "'",
);
callback(null);
}
@@ -438,9 +438,9 @@ WebInspector.IsolatedFileSystem.prototype = {
var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(error);
console.error(
errorMessage +
- " when setting content for file '" +
- (this._path + '/' + path) +
- "'",
+ " when setting content for file '" +
+ (this._path + '/' + path) +
+ "'",
);
callback();
}
@@ -535,11 +535,11 @@ WebInspector.IsolatedFileSystem.prototype = {
var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(error);
console.error(
errorMessage +
- " when renaming file '" +
- (this._path + '/' + path) +
- "' to '" +
- newName +
- "'",
+ " when renaming file '" +
+ (this._path + '/' + path) +
+ "' to '" +
+ newName +
+ "'",
);
callback(false);
}
diff --git a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
index cb5dab2..4894baa 100644
--- a/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
+++ b/pkg/nuclide-debugger/VendorLib/devtools/front_end/workspace/UISourceCode.js
@@ -276,7 +276,7 @@ WebInspector.UISourceCode.prototype = {
}
if (
typeof this._lastAcceptedContent === 'string' &&
- this._lastAcceptedContent === updatedContent
+ this._lastAcceptedContent === updatedContent
) {
this._terminateContentCheck();
return;
@@ -367,7 +367,7 @@ WebInspector.UISourceCode.prototype = {
save: function(forceSaveAs) {
if (
this.project().type() === WebInspector.projectTypes.FileSystem ||
- this.project().type() === WebInspector.projectTypes.Snippets
+ this.project().type() === WebInspector.projectTypes.Snippets
) {
this.commitWorkingCopy();
return;
@@ -385,8 +385,8 @@ WebInspector.UISourceCode.prototype = {
hasUnsavedCommittedChanges: function() {
if (
this._savedWithFileManager ||
- this.project().canSetFileContent() ||
- this._project.isServiceProject()
+ this.project().canSetFileContent() ||
+ this._project.isServiceProject()
)
return false;
if (this._project.workspace().hasResourceContentTrackingExtensions())
diff --git a/pkg/nuclide-debugger/lib/BreakpointListComponent.js b/pkg/nuclide-debugger/lib/BreakpointListComponent.js
index a199bbe..7cbb7f2 100644
--- a/pkg/nuclide-debugger/lib/BreakpointListComponent.js
+++ b/pkg/nuclide-debugger/lib/BreakpointListComponent.js
@@ -98,8 +98,8 @@ export class BreakpointListComponent extends React.Component {
.sort(
(breakpointA, breakpointB) =>
100 * (Number(breakpointB.resolved) - Number(breakpointA.resolved)) +
- 10 * breakpointA.basename.localeCompare(breakpointB.basename) +
- Math.sign(breakpointA.line - breakpointB.line),
+ 10 * breakpointA.basename.localeCompare(breakpointB.basename) +
+ Math.sign(breakpointA.line - breakpointB.line),
)
.map((breakpoint, i) => {
const {
diff --git a/pkg/nuclide-debugger/lib/Bridge.js b/pkg/nuclide-debugger/lib/Bridge.js
index 3fcabba..a959562 100644
--- a/pkg/nuclide-debugger/lib/Bridge.js
+++ b/pkg/nuclide-debugger/lib/Bridge.js
@@ -165,14 +165,22 @@ export default class Bridge {
}
}
_handleExpressionEvaluationResponse(
- response: ExpressionResult & {id: number},
+ response:
+ & ExpressionResult
+ & {
+ id: number,
+ },
): void {
this._debuggerModel
.getActions()
.receiveExpressionEvaluationResponse(response.id, response);
}
_handleGetPropertiesResponse(
- response: GetPropertiesResult & {id: number},
+ response:
+ & GetPropertiesResult
+ & {
+ id: number,
+ },
): void {
this._debuggerModel
.getActions()
@@ -288,7 +296,10 @@ export default class Bridge {
this._debuggerModel.getActions().clearInterface();
}
_setSelectedCallFrameLine(
- options: ?{sourceURL: string, lineNumber: number},
+ options: ?{
+ sourceURL: string,
+ lineNumber: number,
+ },
): void {
this._debuggerModel.getActions().setSelectedCallFrameLine(options);
}
@@ -301,7 +312,11 @@ export default class Bridge {
.openSourceLocation(options.sourceURL, options.lineNumber);
}
_handleStopThreadSwitch(
- options: ?{sourceURL: string, lineNumber: number, message: string},
+ options: ?{
+ sourceURL: string,
+ lineNumber: number,
+ message: string,
+ },
) {
if (options == null) {
return;
diff --git a/pkg/nuclide-debugger/lib/DebuggerActions.js b/pkg/nuclide-debugger/lib/DebuggerActions.js
index 42c3fec..a4c9295 100644
--- a/pkg/nuclide-debugger/lib/DebuggerActions.js
+++ b/pkg/nuclide-debugger/lib/DebuggerActions.js
@@ -101,7 +101,7 @@ export default class DebuggerActions {
}
if (
processInfo.getServiceName() !== 'hhvm' ||
- (await passesGK(GK_DEBUGGER_REQUEST_SENDER))
+ (await passesGK(GK_DEBUGGER_REQUEST_SENDER))
) {
const customControlButtons = processInfo.customControlButtons();
if (customControlButtons.length > 0) {
diff --git a/pkg/nuclide-debugger/lib/DebuggerSteppingComponent.js b/pkg/nuclide-debugger/lib/DebuggerSteppingComponent.js
index 493f004..145b1ee 100644
--- a/pkg/nuclide-debugger/lib/DebuggerSteppingComponent.js
+++ b/pkg/nuclide-debugger/lib/DebuggerSteppingComponent.js
@@ -44,8 +44,8 @@ const STEP_OVER_ICON = (
<path
d={
'M83.8,54.7c-6.5-16.6-20.7-28.1-37.2-28.1c-19.4,0-35.6,16-39.9,' +
- '37.3l11.6,2.9c3-16.2,14.5-28.2,28.2-28.2 c11,0,20.7,7.8,25.6,' +
- '19.3l-9.6,2.7l20.8,14.7L93.7,52L83.8,54.7z'
+ '37.3l11.6,2.9c3-16.2,14.5-28.2,28.2-28.2 c11,0,20.7,7.8,25.6,' +
+ '19.3l-9.6,2.7l20.8,14.7L93.7,52L83.8,54.7z'
}
/>
</svg>
diff --git a/pkg/nuclide-debugger/lib/ThreadStore.js b/pkg/nuclide-debugger/lib/ThreadStore.js
index 9d30a80..8ec0bda 100644
--- a/pkg/nuclide-debugger/lib/ThreadStore.js
+++ b/pkg/nuclide-debugger/lib/ThreadStore.js
@@ -94,8 +94,8 @@ export default class ThreadStore {
// TODO(jonaldislarry): add deleteThread API so that this stop reason checking is not needed.
if (
thread.stopReason === 'end' ||
- thread.stopReason === 'error' ||
- thread.stopReason === 'stopped'
+ thread.stopReason === 'error' ||
+ thread.stopReason === 'stopped'
) {
this._threadMap.delete(Number(thread.id));
} else {
diff --git a/pkg/nuclide-debugger/lib/main.js b/pkg/nuclide-debugger/lib/main.js
index d2193f4..244f54e 100644
--- a/pkg/nuclide-debugger/lib/main.js
+++ b/pkg/nuclide-debugger/lib/main.js
@@ -654,7 +654,7 @@ function createDebuggerNuxTourModel(): NuxTourModel {
const welcomeToNewUiNux = {
content: (
'Welcome to the new Nuclide debugger UI!</br>' +
- 'We are evolving the debugger to integrate more closely with Nuclide.'
+ 'We are evolving the debugger to integrate more closely with Nuclide.'
),
selector: '.nuclide-debugger-container-new',
position: 'left',
diff --git a/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js b/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
index 3050410..de2e032 100644
--- a/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
+++ b/pkg/nuclide-debugger/lib/normalizeRemoteObjectValue.js
@@ -25,7 +25,7 @@ export function normalizeRemoteObjectValue(
const underscoreField = `_${field}`;
if (
remoteObject.hasOwnProperty(underscoreField) &&
- remoteObject[underscoreField] != null
+ remoteObject[underscoreField] != null
) {
modifiedProperties[field] = String(remoteObject[underscoreField]);
} else if (
diff --git a/pkg/nuclide-debugger/scripts/App.js b/pkg/nuclide-debugger/scripts/App.js
index 639db9f..0b6249a 100644
--- a/pkg/nuclide-debugger/scripts/App.js
+++ b/pkg/nuclide-debugger/scripts/App.js
@@ -29,7 +29,7 @@ XMLHttpRequest.prototype.open = (function(original) {
for (let i = 0; i < unmappedUrlPrefixes.length; i++) {
if (
url.startsWith(unmappedUrlPrefixes[i]) ||
- url.startsWith('./' + unmappedUrlPrefixes[i])
+ url.startsWith('./' + unmappedUrlPrefixes[i])
) {
newUrl = url;
}
diff --git a/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js b/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
index e00a4e8..6705f6b 100644
--- a/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
+++ b/pkg/nuclide-debugger/scripts/nuclide_bridge/NuclideBridge.js
@@ -393,7 +393,8 @@ class NuclideBridge {
if (runtimeAgent == null) {
return;
}
- runtimeAgent.getProperties(objectId, false, false, false, ( // ownProperties // accessorPropertiesOnly // generatePreview
+ runtimeAgent.getProperties(objectId, false, false, false, (
+ // ownProperties // accessorPropertiesOnly // generatePreview
error,
properties,
internalProperties,
diff --git a/pkg/nuclide-debugger/scripts/nuclide_bridge/UnresolvedBreakpointsSidebarPane.js b/pkg/nuclide-debugger/scripts/nuclide_bridge/UnresolvedBreakpointsSidebarPane.js
index 5bb4b9b..953a094 100644
--- a/pkg/nuclide-debugger/scripts/nuclide_bridge/UnresolvedBreakpointsSidebarPane.js
+++ b/pkg/nuclide-debugger/scripts/nuclide_bridge/UnresolvedBreakpointsSidebarPane.js
@@ -55,7 +55,7 @@ class UnresolvedBreakpointsComponent extends React.Component {
invariant(pathname);
const longRep = `${pathname}:${breakpoint.line + 1}`;
const shortRep = `${nuclideUri.basename(pathname)}:${breakpoint.line +
- 1}`;
+ 1}`;
return (
<li
key={longRep}
diff --git a/pkg/nuclide-debugger/spec/utils.js b/pkg/nuclide-debugger/spec/utils.js
index 7ad8777..4fa3a57 100644
--- a/pkg/nuclide-debugger/spec/utils.js
+++ b/pkg/nuclide-debugger/spec/utils.js
@@ -38,7 +38,7 @@ export function getBreakpointDecorationInRow(
const {gutterName, item} = decorations[i].getProperties();
if (
gutterName === 'nuclide-breakpoint' &&
- item.className === 'nuclide-debugger-breakpoint-icon'
+ item.className === 'nuclide-debugger-breakpoint-icon'
) {
return decorations[i];
}
diff --git a/pkg/nuclide-diagnostics-common/spec/DiagnosticStore-spec.js b/pkg/nuclide-diagnostics-common/spec/DiagnosticStore-spec.js
index 4b18c15..2445da5 100644
--- a/pkg/nuclide-diagnostics-common/spec/DiagnosticStore-spec.js
+++ b/pkg/nuclide-diagnostics-common/spec/DiagnosticStore-spec.js
@@ -179,7 +179,7 @@ describe('DiagnosticStore', () => {
it(
'An update should notify listeners for the scope(s) of the update, and not affect other' +
- ' listeners.',
+ ' listeners.',
() => {
// Set the initial state of the store.
addUpdateA();
@@ -247,7 +247,7 @@ describe('DiagnosticStore', () => {
it(
'An update from the same provider should overwrite previous messages from that' +
- ' provider.',
+ ' provider.',
() => {
// Set the initial state of the store.
addUpdateA();
@@ -306,7 +306,7 @@ describe('DiagnosticStore', () => {
describe('When an invalidation message is sent from one provider, ', () => {
it(
'if specifying file scope, it should only invalidate messages from that provider for that' +
- ' file.',
+ ' file.',
() => {
// Set up the state of the store.
addUpdateB();
@@ -365,7 +365,7 @@ describe('DiagnosticStore', () => {
it(
'if specifying project scope, it should only invalidate project-scope messages from that' +
- ' provider.',
+ ' provider.',
() => {
// Set up the state of the store.
addUpdateB();
diff --git a/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js b/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
index 13542c5..a71497a 100644
--- a/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
+++ b/pkg/nuclide-diagnostics-store/lib/LinterAdapter.js
@@ -184,7 +184,7 @@ export class LinterAdapter {
if (
this._provider.invalidateOnClose &&
- !this._onDestroyDisposables.has(buffer)
+ !this._onDestroyDisposables.has(buffer)
) {
const disposable = buffer.onDidDestroy(() => {
this._invalidateBuffer(buffer);
@@ -211,7 +211,7 @@ export class LinterAdapter {
const activeTextEditor = atom.workspace.getActiveTextEditor();
if (
activeTextEditor &&
- !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
+ !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
) {
const matchesGrammar = this._provider.grammarScopes.indexOf(
activeTextEditor.getGrammar().scopeName,
diff --git a/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js b/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
index a0ab4ac..61f37cd 100644
--- a/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
+++ b/pkg/nuclide-diagnostics-ui/lib/DiagnosticsPanel.js
@@ -58,7 +58,7 @@ export default class DiagnosticsPanel extends React.Component {
diagnostics = diagnostics.filter(
diagnostic =>
diagnostic.scope === 'file' &&
- diagnostic.filePath === pathToFilterBy,
+ diagnostic.filePath === pathToFilterBy,
);
} else {
// Current pane is not a text editor; do not show diagnostics.
@@ -81,6 +81,7 @@ export default class DiagnosticsPanel extends React.Component {
<span className="inline-block highlight-info">
nuclide-diagnostics is not compatible with the linter package. We recommend that
+
you&nbsp;
<a onClick={this.props.disableLinter}>
disable the linter package
diff --git a/pkg/nuclide-diff-view/lib/DiffCommitView.js b/pkg/nuclide-diff-view/lib/DiffCommitView.js
index 0f68d9a..626f5af 100644
--- a/pkg/nuclide-diff-view/lib/DiffCommitView.js
+++ b/pkg/nuclide-diff-view/lib/DiffCommitView.js
@@ -159,7 +159,7 @@ export default class DiffCommitView extends React.Component {
onChange={this._onToggleVerbatim}
ref={this._addTooltip(
"Whether to override the diff's" +
- 'commit message on Phabricator with that of your local commit.',
+ 'commit message on Phabricator with that of your local commit.',
)}
/>
);
@@ -177,7 +177,7 @@ export default class DiffCommitView extends React.Component {
onChange={this._onTogglePublish}
ref={this._addTooltip(
'Whether to automatically publish the revision' +
- 'to Phabricator after committing or amending it.',
+ 'to Phabricator after committing or amending it.',
)}
/>
{prepareOptionElement}
diff --git a/pkg/nuclide-diff-view/lib/DiffPublishView.js b/pkg/nuclide-diff-view/lib/DiffPublishView.js
index e3ef430..591a1dd 100644
--- a/pkg/nuclide-diff-view/lib/DiffPublishView.js
+++ b/pkg/nuclide-diff-view/lib/DiffPublishView.js
@@ -89,7 +89,7 @@ export default class DiffPublishView extends React.Component {
componentDidUpdate(prevProps: Props): void {
if (
this.props.message !== prevProps.message ||
- this.props.publishModeState !== prevProps.publishModeState
+ this.props.publishModeState !== prevProps.publishModeState
) {
this.__populatePublishText();
}
diff --git a/pkg/nuclide-diff-view/lib/DiffViewComponent.js b/pkg/nuclide-diff-view/lib/DiffViewComponent.js
index bd70e22..0eb9d41 100644
--- a/pkg/nuclide-diff-view/lib/DiffViewComponent.js
+++ b/pkg/nuclide-diff-view/lib/DiffViewComponent.js
@@ -236,7 +236,7 @@ export function pixelRangeForNavigationSection(
lineNumber + lineCount - 1,
0,
]).top +
- lineHeight
+ lineHeight
),
};
}
diff --git a/pkg/nuclide-diff-view/lib/diff-utils.js b/pkg/nuclide-diff-view/lib/diff-utils.js
index 1127651..2663be5 100644
--- a/pkg/nuclide-diff-view/lib/diff-utils.js
+++ b/pkg/nuclide-diff-view/lib/diff-utils.js
@@ -261,8 +261,7 @@ export function computeNavigationSections(
const lineSection = lineSections[i];
if (
lastSection.status === lineSection.status &&
- lastSection.lineNumber + lastSection.lineCount ===
- lineSection.lineNumber
+ lastSection.lineNumber + lastSection.lineCount === lineSection.lineNumber
) {
lastSection.lineCount += 1;
} else {
diff --git a/pkg/nuclide-diff-view/lib/main.js b/pkg/nuclide-diff-view/lib/main.js
index edaa791..5026cf7 100644
--- a/pkg/nuclide-diff-view/lib/main.js
+++ b/pkg/nuclide-diff-view/lib/main.js
@@ -213,8 +213,7 @@ class Activation {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((error, stream) => {
+ ).catch((error, stream) => {
getLogger().error('Diff View Epics Error:', error);
return stream;
});
@@ -438,13 +437,13 @@ class Activation {
const {viewMode, commit: {mode: commitMode}} = this._store.getState();
if (
diffEntityOptions.viewMode != null &&
- diffEntityOptions.viewMode !== viewMode
+ diffEntityOptions.viewMode !== viewMode
) {
this._actionCreators.setViewMode(diffEntityOptions.viewMode);
}
if (
diffEntityOptions.commitMode != null &&
- diffEntityOptions.commitMode !== commitMode
+ diffEntityOptions.commitMode !== commitMode
) {
this._actionCreators.setCommitMode(diffEntityOptions.commitMode);
}
@@ -508,6 +507,7 @@ class Activation {
<span>
Launches an editable side-by-side compare view across mercurial dirty and commits
+
changes, allowing committing and pushing changes to phabricator.
</span>
),
diff --git a/pkg/nuclide-diff-view/lib/redux/Epics.js b/pkg/nuclide-diff-view/lib/redux/Epics.js
index ae58ead..f08cb96 100644
--- a/pkg/nuclide-diff-view/lib/redux/Epics.js
+++ b/pkg/nuclide-diff-view/lib/redux/Epics.js
@@ -95,10 +95,10 @@ function notifyCwdMismatch(
const actionSubject = new Subject();
const notification = atom.notifications.addWarning(
'Cannot show diff for a non-working directory\n' +
- 'Would you like to switch your working directory to ' +
- `\`${nuclideUri.basename(
- newDirectoryPath,
- )}\` to be able to diff that file?`,
+ 'Would you like to switch your working directory to ' +
+ `\`${nuclideUri.basename(
+ newDirectoryPath,
+ )}\` to be able to diff that file?`,
{
buttons: [
{
@@ -165,7 +165,7 @@ function getCompareIdChanges(
.filter(
a =>
a.type === ActionTypes.SET_COMPARE_ID &&
- a.payload.repository === repository,
+ a.payload.repository === repository,
)
.map(a => {
invariant(a.type === ActionTypes.SET_COMPARE_ID);
@@ -384,7 +384,7 @@ export function uiElementsEpic(
actions.filter(
a =>
a.type === ActionTypes.REMOVE_UI_PROVIDER &&
- a.payload.uiProvider === uiProvider,
+ a.payload.uiProvider === uiProvider,
),
);
});
@@ -448,7 +448,7 @@ export function diffFileEpic(
const deactiveRepsitory = actions.filter(
a =>
a.type === ActionTypes.UPDATE_ACTIVE_REPOSITORY &&
- a.payload.hgRepository === hgRepository,
+ a.payload.hgRepository === hgRepository,
);
const buffer = bufferForUri(filePath);
@@ -545,7 +545,7 @@ export function diffFileEpic(
actions.filter(
a =>
a.type === ActionTypes.UPDATE_DIFF_EDITORS_VISIBILITY &&
- !a.payload.visible,
+ !a.payload.visible,
),
),
)
@@ -812,7 +812,7 @@ export function commit(
pipeProcessMessagesToConsole(mode, publishUpdates, processMessage);
if (
!consoleShown &&
- SHOW_CONSOLE_ON_PROCESS_EVENTS.includes(processMessage.kind)
+ SHOW_CONSOLE_ON_PROCESS_EVENTS.includes(processMessage.kind)
) {
dispatchConsoleToggle(true);
consoleShown = true;
diff --git a/pkg/nuclide-diff-view/lib/utils.js b/pkg/nuclide-diff-view/lib/utils.js
index 4a959f5..ab07f89 100644
--- a/pkg/nuclide-diff-view/lib/utils.js
+++ b/pkg/nuclide-diff-view/lib/utils.js
@@ -174,19 +174,14 @@ export async function promptToCleanDirtyChanges(
buttons: ['Cancel', 'Add', 'Allow Untracked'],
});
getLogger().info('Untracked changes choice:', untrackedChoice);
- if (untrackedChoice === 0)
- /* Cancel */ {
- return null;
- }
- else if (untrackedChoice === 1)
- /* Add */ {
- await repository.addAll(Array.from(untrackedChanges.keys()));
- shouldAmend = true;
- }
- else if (untrackedChoice === 2)
- /* Allow Untracked */ {
- allowUntracked = true;
- }
+ if (untrackedChoice === 0) {
+ /* Cancel */ return null;
+ } else if (untrackedChoice === 1) {
+ /* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
+ shouldAmend = true;
+ } else if (untrackedChoice === 2) {
+ /* Allow Untracked */ allowUntracked = true;
+ }
}
const revertableChanges: Map<NuclideUri, FileChangeStatusValue> = new Map(
Array.from(dirtyFileChanges.entries()).filter(
@@ -200,23 +195,18 @@ export async function promptToCleanDirtyChanges(
buttons: ['Cancel', 'Revert', 'Amend'],
});
getLogger().info('Dirty changes clean choice:', cleanChoice);
- if (cleanChoice === 0)
- /* Cancel */ {
- return null;
- }
- else if (cleanChoice === 1)
- /* Revert */ {
- const canRevertFilePaths: Array<NuclideUri> = Array.from(
- dirtyFileChanges.entries(),
- )
- .filter(fileChange => fileChange[1] !== FileChangeStatus.UNTRACKED)
- .map(fileChange => fileChange[0]);
- await repository.revert(canRevertFilePaths);
- }
- else if (cleanChoice === 2)
- /* Amend */ {
- shouldAmend = true;
- }
+ if (cleanChoice === 0) {
+ /* Cancel */ return null;
+ } else if (cleanChoice === 1) {
+ /* Revert */ const canRevertFilePaths: Array<NuclideUri> = Array.from(
+ dirtyFileChanges.entries(),
+ )
+ .filter(fileChange => fileChange[1] !== FileChangeStatus.UNTRACKED)
+ .map(fileChange => fileChange[0]);
+ await repository.revert(canRevertFilePaths);
+ } else if (cleanChoice === 2) {
+ /* Amend */ shouldAmend = true;
+ }
}
if (shouldAmend) {
await amendWithErrorOnFailure(
@@ -290,7 +280,7 @@ export function getSelectedFileChanges(
if (
diffOption === DiffOption.DIRTY ||
- diffOption === DiffOption.COMPARE_COMMIT && compareCommitId == null
+ diffOption === DiffOption.COMPARE_COMMIT && compareCommitId == null
) {
return Observable.of(dirtyFileChanges);
}
diff --git a/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js b/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
index 3868a98..7de5c2c 100644
--- a/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
+++ b/pkg/nuclide-distraction-free-mode/lib/BuiltinProviders.js
@@ -41,8 +41,8 @@ class FindAndReplaceProvider {
const paneContainer = paneElem.parentElement;
if (
paneContainer != null &&
- paneContainer.style != null &&
- paneContainer.style.display != null
+ paneContainer.style != null &&
+ paneContainer.style.display != null
) {
const display = paneContainer.style.display;
if (display !== 'none') {
diff --git a/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js b/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
index f23e642..16596d2 100644
--- a/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
+++ b/pkg/nuclide-distraction-free-mode/lib/DistractionFreeMode.js
@@ -47,7 +47,7 @@ export class DistractionFreeMode {
this._providers.add(provider);
if (
this._deserializationState != null &&
- this._deserializationState.has(provider.name)
+ this._deserializationState.has(provider.name)
) {
this._addToRestoreState(provider);
}
diff --git a/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js b/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
index fe79db1..2ddd81c 100644
--- a/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
+++ b/pkg/nuclide-file-tree/components/FileTreeEntryComponent.js
@@ -450,7 +450,7 @@ export class FileTreeEntryComponent extends React.Component {
function getSelectionMode(event: SyntheticMouseEvent): SelectionMode {
if (
os.platform() === 'darwin' && event.metaKey && event.button === 0 ||
- os.platform() !== 'darwin' && event.ctrlKey && event.button === 0
+ os.platform() !== 'darwin' && event.ctrlKey && event.button === 0
) {
return 'multi-select';
}
diff --git a/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js b/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
index 797a6a6..01281c5 100644
--- a/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
+++ b/pkg/nuclide-file-tree/components/FileTreeSidebarComponent.js
@@ -317,7 +317,7 @@ export default class FileTreeSidebarComponent extends React.Component {
if (
shouldRenderToolbar !== this.state.shouldRenderToolbar ||
- openFilesUris !== this.state.openFilesUris
+ openFilesUris !== this.state.openFilesUris
) {
this.setState({shouldRenderToolbar, openFilesUris});
} else {
@@ -368,8 +368,8 @@ export default class FileTreeSidebarComponent extends React.Component {
toggle(activeEditors, this._showOpenConfigValues).subscribe(editor => {
if (
editor == null ||
- typeof editor.getPath !== 'function' ||
- editor.getPath() == null
+ typeof editor.getPath !== 'function' ||
+ editor.getPath() == null
) {
this.setState({activeUri: null});
return;
diff --git a/pkg/nuclide-file-tree/components/FileTreeToolbarComponent.js b/pkg/nuclide-file-tree/components/FileTreeToolbarComponent.js
index 98d7e5a..c9dd59f 100644
--- a/pkg/nuclide-file-tree/components/FileTreeToolbarComponent.js
+++ b/pkg/nuclide-file-tree/components/FileTreeToolbarComponent.js
@@ -139,8 +139,8 @@ export class FileTreeToolbarComponent extends React.Component {
'nuclide-file-tree-toolbar': true,
'nuclide-file-tree-toolbar-fader': (
workingSet.isEmpty() &&
- !this.state.selectionIsActive &&
- !this._store.isEditingWorkingSet()
+ !this.state.selectionIsActive &&
+ !this._store.isEditingWorkingSet()
),
})}
>
diff --git a/pkg/nuclide-file-tree/lib/FileTreeController.js b/pkg/nuclide-file-tree/lib/FileTreeController.js
index eb1f27f..1cb2183 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeController.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeController.js
@@ -293,8 +293,8 @@ export default class FileTreeController {
const editorElement = ((event.currentTarget: any): atom$TextEditorElement);
if (
editorElement == null ||
- typeof editorElement.getModel !== 'function' ||
- !isValidTextEditor(editorElement.getModel())
+ typeof editorElement.getModel !== 'function' ||
+ !isValidTextEditor(editorElement.getModel())
) {
return;
}
@@ -450,8 +450,8 @@ export default class FileTreeController {
const firstSelectedNode = selectedNodes.first();
if (
selectedNodes.size === 1 &&
- !firstSelectedNode.isRoot &&
- !(firstSelectedNode.isContainer && firstSelectedNode.isExpanded)
+ !firstSelectedNode.isRoot &&
+ !(firstSelectedNode.isContainer && firstSelectedNode.isExpanded)
) {
/*
* Select the parent of the selection if the following criteria are met:
@@ -628,8 +628,8 @@ export default class FileTreeController {
// is not part of any other open root, then close the file.
if (
path != null &&
- path.startsWith(rootNode.uri) &&
- roots.filter(root => path.startsWith(root)).length === 1
+ path.startsWith(rootNode.uri) &&
+ roots.filter(root => path.startsWith(root)).length === 1
) {
return !atom.workspace.paneForURI(path).destroyItem(editor);
}
diff --git a/pkg/nuclide-file-tree/lib/FileTreeNode.js b/pkg/nuclide-file-tree/lib/FileTreeNode.js
index 8d9fdfd..ea00e79 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeNode.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeNode.js
@@ -624,7 +624,7 @@ export class FileTreeNode {
}
if (
props.isDragHovered !== undefined &&
- this.isDragHovered !== props.isDragHovered
+ this.isDragHovered !== props.isDragHovered
) {
return false;
}
@@ -649,27 +649,27 @@ export class FileTreeNode {
}
if (
props.subscription !== undefined &&
- this.subscription !== props.subscription
+ this.subscription !== props.subscription
) {
return false;
}
if (
props.highlightedText !== undefined &&
- this.highlightedText !== props.highlightedText
+ this.highlightedText !== props.highlightedText
) {
return false;
}
if (
props.matchesFilter !== undefined &&
- this.matchesFilter !== props.matchesFilter
+ this.matchesFilter !== props.matchesFilter
) {
return false;
}
if (
props.children !== undefined &&
- props.children !== this.children &&
- !Immutable.is(this.children, props.children)
+ props.children !== this.children &&
+ !Immutable.is(this.children, props.children)
) {
return false;
}
diff --git a/pkg/nuclide-file-tree/lib/FileTreeStore.js b/pkg/nuclide-file-tree/lib/FileTreeStore.js
index b4f0db8..25f1c43 100644
--- a/pkg/nuclide-file-tree/lib/FileTreeStore.js
+++ b/pkg/nuclide-file-tree/lib/FileTreeStore.js
@@ -257,7 +257,7 @@ export class FileTreeStore {
.filter(
rootUri =>
nuclideUri.isRemote(rootUri) ||
- normalizedAtomPaths.indexOf(rootUri) >= 0,
+ normalizedAtomPaths.indexOf(rootUri) >= 0,
);
const pathsMissingInData = normalizedAtomPaths.filter(
rootUri => normalizedDataPaths.indexOf(rootUri) === -1,
@@ -737,8 +737,8 @@ export class FileTreeStore {
const status = vcsStatuses[uri];
if (
status === StatusCodeNumber.MODIFIED ||
- status === StatusCodeNumber.ADDED ||
- status === StatusCodeNumber.REMOVED
+ status === StatusCodeNumber.ADDED ||
+ status === StatusCodeNumber.REMOVED
) {
try {
// An invalid URI might cause an exception to be thrown
@@ -1506,8 +1506,8 @@ export class FileTreeStore {
let nextNode = rangeNode;
while (
nextNode != null &&
- nextNode !== anchorNode &&
- nextNode.isSelected === false
+ nextNode !== anchorNode &&
+ nextNode.isSelected === false
) {
nextNode = getNextNode(nextNode);
}
diff --git a/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js b/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
index 2900c54..e001446 100644
--- a/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
+++ b/pkg/nuclide-file-tree/lib/MemoizedFieldsDeriver.js
@@ -198,12 +198,12 @@ export class MemoizedFieldsDeriver {
if (
store.isIgnored !== isIgnored ||
- store.excludeVcsIgnoredPaths !== conf.excludeVcsIgnoredPaths ||
- store.hideIgnoredNames !== conf.hideIgnoredNames ||
- store.ignoredPatterns !== conf.ignoredPatterns ||
- store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
- store.containedInWorkingSet !== containedInWorkingSet ||
- store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
+ store.excludeVcsIgnoredPaths !== conf.excludeVcsIgnoredPaths ||
+ store.hideIgnoredNames !== conf.hideIgnoredNames ||
+ store.ignoredPatterns !== conf.ignoredPatterns ||
+ store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
+ store.containedInWorkingSet !== containedInWorkingSet ||
+ store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
) {
store.isIgnored = isIgnored;
store.excludeVcsIgnoredPaths = conf.excludeVcsIgnoredPaths;
@@ -217,7 +217,7 @@ export class MemoizedFieldsDeriver {
store.shouldBeShown = false;
} else if (
store.hideIgnoredNames &&
- store.ignoredPatterns.some(p => p.match(this._uri))
+ store.ignoredPatterns.some(p => p.match(this._uri))
) {
store.shouldBeShown = false;
} else if (store.isEditingWorkingSet) {
@@ -239,8 +239,8 @@ export class MemoizedFieldsDeriver {
if (
store.isEditingWorkingSet !== conf.isEditingWorkingSet ||
- store.containedInWorkingSet !== containedInWorkingSet ||
- store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
+ store.containedInWorkingSet !== containedInWorkingSet ||
+ store.containedInOpenFilesWorkingSet !== containedInOpenFilesWorkingSet
) {
store.isEditingWorkingSet = conf.isEditingWorkingSet;
store.containedInWorkingSet = containedInWorkingSet;
diff --git a/pkg/nuclide-file-tree/lib/main.js b/pkg/nuclide-file-tree/lib/main.js
index 01dec7b..66e9c20 100644
--- a/pkg/nuclide-file-tree/lib/main.js
+++ b/pkg/nuclide-file-tree/lib/main.js
@@ -361,7 +361,7 @@ export function deactivate() {
// environment the way this package found it.
if (
featureConfig.isFeatureDisabled('nuclide-file-tree') &&
- atom.packages.isPackageDisabled('tree-view')
+ atom.packages.isPackageDisabled('tree-view')
) {
atom.packages.enablePackage('tree-view');
}
diff --git a/pkg/nuclide-file-tree/spec/FileTreeController-spec.js b/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
index de854fb..d51c512 100644
--- a/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
+++ b/pkg/nuclide-file-tree/spec/FileTreeController-spec.js
@@ -232,7 +232,6 @@ describe('FileTreeController', () => {
it('selects the previous nested descendant when one exists', () => {
actions.setSelectedNode(rootKey, dir2Key);
expect(isSelected(rootKey, dir2Key)).toEqual(true);
-
controller._moveUp(); // foo.txt is the previous visible descendant to dir2
expect(isSelected(rootKey, fooTxtKey)).toEqual(true);
});
diff --git a/pkg/nuclide-find-references/lib/FindReferencesModel.js b/pkg/nuclide-find-references/lib/FindReferencesModel.js
index b146e71..44831c6 100644
--- a/pkg/nuclide-find-references/lib/FindReferencesModel.js
+++ b/pkg/nuclide-find-references/lib/FindReferencesModel.js
@@ -149,7 +149,7 @@ class FindReferencesModel {
// Remove references with the same range (happens in C++ with templates)
if (
curGroup.length > 0 &&
- compareReference(curGroup[curGroup.length - 1], ref) !== 0
+ compareReference(curGroup[curGroup.length - 1], ref) !== 0
) {
curGroup.push(ref);
curEndLine = Math.max(curEndLine, range.end.row);
diff --git a/pkg/nuclide-flow-rpc/lib/FlowProcess.js b/pkg/nuclide-flow-rpc/lib/FlowProcess.js
index af29c9a..77b9131 100644
--- a/pkg/nuclide-flow-rpc/lib/FlowProcess.js
+++ b/pkg/nuclide-flow-rpc/lib/FlowProcess.js
@@ -289,9 +289,9 @@ export class FlowProcess {
if (
// Avoid duplicate updates
status !== currentStatus &&
- // Avoid moving the status away from FAILED, to let any existing work die out when the
- // server fails.
- currentStatus !== ServerStatus.FAILED
+ // Avoid moving the status away from FAILED, to let any existing work die out when the
+ // server fails.
+ currentStatus !== ServerStatus.FAILED
) {
this._serverStatus.next(status);
}
diff --git a/pkg/nuclide-flow-rpc/lib/FlowRoot.js b/pkg/nuclide-flow-rpc/lib/FlowRoot.js
index ea39555..e0ab76c 100644
--- a/pkg/nuclide-flow-rpc/lib/FlowRoot.js
+++ b/pkg/nuclide-flow-rpc/lib/FlowRoot.js
@@ -242,8 +242,8 @@ export class FlowRoot {
if (
!activatedManually &&
- !prefixHasDot &&
- replacementPrefix.length < minimumPrefixLength
+ !prefixHasDot &&
+ replacementPrefix.length < minimumPrefixLength
) {
return null;
}
diff --git a/pkg/nuclide-flow-rpc/lib/astToOutline.js b/pkg/nuclide-flow-rpc/lib/astToOutline.js
index 438d0cc..b74fc6c 100644
--- a/pkg/nuclide-flow-rpc/lib/astToOutline.js
+++ b/pkg/nuclide-flow-rpc/lib/astToOutline.js
@@ -277,7 +277,7 @@ function moduleExportsPropertyOutline(property: any): ?OutlineTree {
if (
property.value.type === 'FunctionExpression' ||
- property.value.type === 'ArrowFunctionExpression'
+ property.value.type === 'ArrowFunctionExpression'
) {
return {
tokenizedText: [
@@ -349,7 +349,7 @@ function getFunctionName(callee: any): ?string {
case 'MemberExpression':
if (
callee.object.type !== 'Identifier' ||
- callee.property.type !== 'Identifier'
+ callee.property.type !== 'Identifier'
) {
return null;
}
@@ -431,8 +431,8 @@ function variableDeclaratorOutline(
): ?OutlineTree {
if (
declarator.init != null &&
- (declarator.init.type === 'FunctionExpression' ||
- declarator.init.type === 'ArrowFunctionExpression')
+ (declarator.init.type === 'FunctionExpression' ||
+ declarator.init.type === 'ArrowFunctionExpression')
) {
return functionOutline(declarator.id.name, declarator.init.params, extent);
}
diff --git a/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js b/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
index 83c46b0..4d89251 100644
--- a/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
+++ b/pkg/nuclide-flow-rpc/spec/FlowProcess-spec.js
@@ -66,8 +66,7 @@ describe('FlowProcess', () => {
spyOn(
processModule,
'asyncExecute',
- )// We need this level of indirection to ensure that if fakeCheckOutput
- // is rebound, the new one gets executed.
+ )// is rebound, the new one gets executed.
.andCallFake((...args) => fakeCheckOutput(...args));
childSpy = {
diff --git a/pkg/nuclide-flow/lib/flowMessageToFix.js b/pkg/nuclide-flow/lib/flowMessageToFix.js
index 3ae1150..913af04 100644
--- a/pkg/nuclide-flow/lib/flowMessageToFix.js
+++ b/pkg/nuclide-flow/lib/flowMessageToFix.js
@@ -34,8 +34,8 @@ function unusedSuppressionFix(diagnostic: Diagnostic): ?Fix {
// Automatically remove unused suppressions:
if (
diagnostic.messageComponents.length === 2 &&
- diagnostic.messageComponents[0].descr === 'Error suppressing comment' &&
- diagnostic.messageComponents[1].descr === 'Unused suppression'
+ diagnostic.messageComponents[0].descr === 'Error suppressing comment' &&
+ diagnostic.messageComponents[1].descr === 'Unused suppression'
) {
const oldRange = extractRange(diagnostic.messageComponents[0]);
invariant(oldRange != null);
diff --git a/pkg/nuclide-graphql-language-service/lib/cli.js b/pkg/nuclide-graphql-language-service/lib/cli.js
index 2cdaf88..116d361 100644
--- a/pkg/nuclide-graphql-language-service/lib/cli.js
+++ b/pkg/nuclide-graphql-language-service/lib/cli.js
@@ -15,24 +15,24 @@ import startServer from './server/startServer';
const {argv} = yargs
.usage(
'Usage: $0 <command> <file>\n\n' +
- ' [-h | --help]\n' +
- ' [-c | --config] {configPath}\n' +
- ' [-t | --text] {textBuffer}\n' +
- ' [-f | --file] {filePath}\n' +
- ' [-s | --schema] {schemaPath}',
+ ' [-h | --help]\n' +
+ ' [-c | --config] {configPath}\n' +
+ ' [-t | --text] {textBuffer}\n' +
+ ' [-f | --file] {filePath}\n' +
+ ' [-s | --schema] {schemaPath}',
)
.help('h')
.alias('h', 'help')
.demand(
1,
'At least one command is required.\n' +
- 'Commands: "server, lint, autocomplete, outline"\n',
+ 'Commands: "server, lint, autocomplete, outline"\n',
)
.option('c', {
alias: 'config',
describe: (
'GraphQL Config file path (.graphqlrc).\n' +
- 'Will look for the nearest .graphqlrc file if omitted.\n'
+ 'Will look for the nearest .graphqlrc file if omitted.\n'
),
type: 'string',
})
@@ -40,8 +40,8 @@ const {argv} = yargs
alias: 'text',
describe: (
'Text buffer to perform GraphQL lint on.\n' +
- 'Will defer to --file option if omitted.\n' +
- 'This option is always honored over --file option.\n'
+ 'Will defer to --file option if omitted.\n' +
+ 'This option is always honored over --file option.\n'
),
type: 'string',
})
@@ -49,7 +49,7 @@ const {argv} = yargs
alias: 'file',
describe: (
'File path to perform GraphQL lint on.\n' +
- 'Will be ignored if --text option is supplied.\n'
+ 'Will be ignored if --text option is supplied.\n'
),
type: 'string',
})
diff --git a/pkg/nuclide-graphql-language-service/lib/config/GraphQLConfig.js b/pkg/nuclide-graphql-language-service/lib/config/GraphQLConfig.js
index 01aa604..f1596c3 100644
--- a/pkg/nuclide-graphql-language-service/lib/config/GraphQLConfig.js
+++ b/pkg/nuclide-graphql-language-service/lib/config/GraphQLConfig.js
@@ -28,8 +28,8 @@ export async function getGraphQLConfig(configDir: Uri): Promise<GraphQLRC> {
// eslint-disable-next-line no-console
console.error(
'.graphqlrc file is not available in the provided config ' +
- `directory: ${configDir}\nPlease check the config directory ` +
- 'path and try again.',
+ `directory: ${configDir}\nPlease check the config directory ` +
+ 'path and try again.',
);
reject();
}
@@ -78,7 +78,7 @@ export class GraphQLRC {
if (config === undefined) {
throw new Error(
`Config ${name} not defined. Choose one of: ` +
- Object.keys(this._graphqlrc[CONFIG_LIST_NAME]).join(', '),
+ Object.keys(this._graphqlrc[CONFIG_LIST_NAME]).join(', '),
);
}
return config;
diff --git a/pkg/nuclide-graphql-language-service/lib/interfaces/autocompleteUtils.js b/pkg/nuclide-graphql-language-service/lib/interfaces/autocompleteUtils.js
index 79552f9..63168a5 100644
--- a/pkg/nuclide-graphql-language-service/lib/interfaces/autocompleteUtils.js
+++ b/pkg/nuclide-graphql-language-service/lib/interfaces/autocompleteUtils.js
@@ -128,8 +128,8 @@ function filterAndSortList(
const sortedMatches = conciseMatches.sort(
(a, b) =>
(a.entry.isDeprecated ? 1 : 0) - (b.entry.isDeprecated ? 1 : 0) ||
- a.proximity - b.proximity ||
- a.entry.text.length - b.entry.text.length,
+ a.proximity - b.proximity ||
+ a.entry.text.length - b.entry.text.length,
);
return sortedMatches.map(pair => pair.entry);
diff --git a/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js b/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
index 8d26738..e8dc0e6 100644
--- a/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
+++ b/pkg/nuclide-graphql-language-service/lib/interfaces/getAutocompleteSuggestions.js
@@ -121,9 +121,9 @@ export function getAutocompleteSuggestions(
// Input values: Enum and Boolean
if (
kind === 'EnumValue' ||
- kind === 'ListValue' && step === 1 ||
- kind === 'ObjectField' && step === 2 ||
- kind === 'Argument' && step === 2
+ kind === 'ListValue' && step === 1 ||
+ kind === 'ObjectField' && step === 2 ||
+ kind === 'Argument' && step === 2
) {
return getSuggestionsForInputValues(cursor, token, typeInfo);
}
@@ -131,9 +131,9 @@ export function getAutocompleteSuggestions(
// Fragment type conditions
if (
kind === 'TypeCondition' && step === 1 ||
- kind === 'NamedType' &&
- state.prevState != null &&
- state.prevState.kind === 'TypeCondition'
+ kind === 'NamedType' &&
+ state.prevState != null &&
+ state.prevState.kind === 'TypeCondition'
) {
return getSuggestionsForFragmentTypeConditions(
cursor,
@@ -157,11 +157,11 @@ export function getAutocompleteSuggestions(
// Variable definition types
if (
kind === 'VariableDefinition' && step === 2 ||
- kind === 'ListType' && step === 1 ||
- kind === 'NamedType' &&
- state.prevState &&
- (state.prevState.kind === 'VariableDefinition' ||
- state.prevState.kind === 'ListType')
+ kind === 'ListType' && step === 1 ||
+ kind === 'NamedType' &&
+ state.prevState &&
+ (state.prevState.kind === 'VariableDefinition' ||
+ state.prevState.kind === 'ListType')
) {
return getSuggestionsForVariableDefinition(cursor, token, schema);
}
@@ -288,18 +288,17 @@ function getSuggestionsForFragmentSpread(
// Filter down to only the fragments which may exist here.
const relevantFrags = fragments.filter(
- frag => // Only include fragments with known types.
- typeMap[frag.typeCondition.name.value] &&
- // Only include fragments which are not cyclic.
- !(defState &&
- defState.kind === 'FragmentDefinition' &&
- defState.name === frag.name.value) &&
- // Only include fragments which could possibly be spread here.
- doTypesOverlap(
- schema,
- typeInfo.parentType,
- typeMap[frag.typeCondition.name.value],
- ),
+ frag => typeMap[frag.typeCondition.name.value] && // Only include fragments with known types.
+ // Only include fragments which are not cyclic.
+ !(defState &&
+ defState.kind === 'FragmentDefinition' &&
+ defState.name === frag.name.value) &&
+ // Only include fragments which could possibly be spread here.
+ doTypesOverlap(
+ schema,
+ typeInfo.parentType,
+ typeMap[frag.typeCondition.name.value],
+ ),
);
return hintList(
diff --git a/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js b/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
index 293412d..d436658 100644
--- a/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
+++ b/pkg/nuclide-graphql-language-service/lib/parser/CharacterStream.js
@@ -134,11 +134,11 @@ export default class CharacterStream {
if (match != null) {
if (
typeof pattern === 'string' ||
- match instanceof Array &&
- // String.match returns 'index' property, which flow fails to detect
- // for some reason. The below is a workaround, but an easier solution
- // is just checking if `match.index === 0`
- this._sourceText.startsWith(match[0], this._pos)
+ match instanceof Array &&
+ // String.match returns 'index' property, which flow fails to detect
+ // for some reason. The below is a workaround, but an easier solution
+ // is just checking if `match.index === 0`
+ this._sourceText.startsWith(match[0], this._pos)
) {
if (consume) {
this._start = this._pos;
diff --git a/pkg/nuclide-graphql-language-service/lib/parser/Rules.js b/pkg/nuclide-graphql-language-service/lib/parser/Rules.js
index fd207d4..a4b97f4 100644
--- a/pkg/nuclide-graphql-language-service/lib/parser/Rules.js
+++ b/pkg/nuclide-graphql-language-service/lib/parser/Rules.js
@@ -17,11 +17,11 @@ import {opt, list, butNot, t, p} from './RuleHelpers';
*/
export const isIgnored = (ch: string) =>
ch === ' ' ||
- ch === '\t' ||
- ch === ',' ||
- ch === '\n' ||
- ch === '\r' ||
- ch === '\uFEFF';
+ ch === '\t' ||
+ ch === ',' ||
+ ch === '\n' ||
+ ch === '\r' ||
+ ch === '\uFEFF';
/**
* The lexer rules. These are exactly as described by the spec.
diff --git a/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js b/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
index e0f8acf..a39831e 100644
--- a/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
+++ b/pkg/nuclide-graphql-language-service/lib/server/GraphQLCache.js
@@ -130,7 +130,7 @@ export class GraphQLCache {
FragmentSpread(node) {
if (
!referencedFragNames.has(node.name.value) &&
- fragmentDefinitions.get(node.name.value)
+ fragmentDefinitions.get(node.name.value)
) {
asts.add(nullthrows(fragmentDefinitions.get(node.name.value)));
referencedFragNames.add(node.name.value);
@@ -166,7 +166,7 @@ export class GraphQLCache {
filePath: path.join(rootDir, fileInfo.name),
size: fileInfo.size,
mtime: fileInfo.mtime
- // Filter any files with path starting with ExcludeDirs,
+ // Filter any files with path starting with ExcludeDirs,,
}))
.filter(fileInfo =>
excludeDirs.every(
@@ -204,7 +204,7 @@ export class GraphQLCache {
// Prune the file using the input/excluded directories
if (
!inputDirs.some(dir => name.startsWith(dir)) ||
- excludeDirs.some(dir => name.startsWith(dir))
+ excludeDirs.some(dir => name.startsWith(dir))
) {
return;
}
@@ -222,8 +222,8 @@ export class GraphQLCache {
// Same size/mtime means the file stayed the same
if (
existingFile &&
- existingFile.size === size &&
- existingFile.mtime === mtime
+ existingFile.size === size &&
+ existingFile.mtime === mtime
) {
return;
}
diff --git a/pkg/nuclide-graphql-language-service/lib/utils/Range.js b/pkg/nuclide-graphql-language-service/lib/utils/Range.js
index 8b5e6a0..fb114ca 100644
--- a/pkg/nuclide-graphql-language-service/lib/utils/Range.js
+++ b/pkg/nuclide-graphql-language-service/lib/utils/Range.js
@@ -37,7 +37,7 @@ export class Point {
lessThanOrEqualTo(point: Point): boolean {
if (
this.row < point.row ||
- this.row === point.row && this.column <= point.column
+ this.row === point.row && this.column <= point.column
) {
return true;
}
diff --git a/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js b/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
index 212141b..8eccea7 100644
--- a/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
+++ b/pkg/nuclide-graphql-language-service/lib/utils/getASTNodeAtPoint.js
@@ -24,8 +24,8 @@ export function getASTNodeAtPoint(
enter(node) {
if (
node.kind !== 'Name' && // We're usually interested in their parents
- node.loc.start <= offset &&
- offset <= node.loc.end
+ node.loc.start <= offset &&
+ offset <= node.loc.end
) {
nodeContainingPoint = node;
} else {
diff --git a/pkg/nuclide-hack-rpc/lib/HackProcess.js b/pkg/nuclide-hack-rpc/lib/HackProcess.js
index 0f2b9db..f1ca5d8 100644
--- a/pkg/nuclide-hack-rpc/lib/HackProcess.js
+++ b/pkg/nuclide-hack-rpc/lib/HackProcess.js
@@ -229,7 +229,8 @@ processes.observeKeys().subscribe(fileCache => {
fileCache
.observeFileEvents()
.ignoreElements()
- .subscribe(undefined, undefined, () => { // next // error
+ .subscribe(undefined, undefined, () => {
+ // next // error
logger.logInfo('fileCache shutting down.');
closeProcesses(fileCache);
});
@@ -300,7 +301,7 @@ async function createHackProcess(
);
if (
startServerResult.exitCode !== 0 &&
- startServerResult.exitCode !== HACK_SERVER_ALREADY_EXISTS_EXIT_CODE
+ startServerResult.exitCode !== HACK_SERVER_ALREADY_EXISTS_EXIT_CODE
) {
return null;
}
diff --git a/pkg/nuclide-hack-rpc/lib/TypedRegions.js b/pkg/nuclide-hack-rpc/lib/TypedRegions.js
index 7852de9..0cfbb86 100644
--- a/pkg/nuclide-hack-rpc/lib/TypedRegions.js
+++ b/pkg/nuclide-hack-rpc/lib/TypedRegions.js
@@ -95,9 +95,9 @@ export function convertTypedRegionsToCoverageResult(
// Often we'll get contiguous blocks of errors on the same line.
if (
last != null &&
- last.type === type &&
- last.line === line &&
- last.end === column - 1
+ last.type === type &&
+ last.line === line &&
+ last.end === column - 1
) {
// So we just merge them into 1 block.
last.end = endColumn;
diff --git a/pkg/nuclide-hack-rpc/spec/Completions-spec.js b/pkg/nuclide-hack-rpc/spec/Completions-spec.js
index 7932883..17067aa 100644
--- a/pkg/nuclide-hack-rpc/spec/Completions-spec.js
+++ b/pkg/nuclide-hack-rpc/spec/Completions-spec.js
@@ -42,7 +42,7 @@ describe('Completions', () => {
describe('compareHackCompletions()', () => {
it(
'prefers prefix case sensitive matches to prefix case insensitive + alphabetical' +
- ' order',
+ ' order',
() => {
const completions = [c1, c2];
const compartor = compareHackCompletions('getA');
@@ -52,7 +52,7 @@ describe('Completions', () => {
it(
'prefers prefix case insensitive matches to case insensitive non-prefix matches +' +
- ' alphabetical order',
+ ' alphabetical order',
() => {
const completions = [c3, c2];
const compartor = compareHackCompletions('getA');
@@ -62,7 +62,7 @@ describe('Completions', () => {
it(
'prefers non-prefix case sensitive matches to case insensitive non-prefix matches +' +
- ' alphabetical order',
+ ' alphabetical order',
() => {
const completions = [c3, c4];
const compartor = compareHackCompletions('getA');
diff --git a/pkg/nuclide-hack/spec/HackSymbolProvider-spec.js b/pkg/nuclide-hack/spec/HackSymbolProvider-spec.js
index b608b18..e2d4215 100644
--- a/pkg/nuclide-hack/spec/HackSymbolProvider-spec.js
+++ b/pkg/nuclide-hack/spec/HackSymbolProvider-spec.js
@@ -59,7 +59,7 @@ describe('HackSymbolProvider', () => {
it(
'isEligibleForDirectory() should return true when getHackServiceForProject() returns ' +
- 'an instance of HackService',
+ 'an instance of HackService',
() => {
isFileInProject = jasmine.createSpy('isFileInProject').andReturn(true);
@@ -76,7 +76,7 @@ describe('HackSymbolProvider', () => {
it(
'isEligibleForDirectory() should return false when getHackServiceForProject() returns ' +
- 'null',
+ 'null',
() => {
isFileInProject = jasmine.createSpy('isFileInProject').andReturn(false);
diff --git a/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js b/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
index f7a6083..76e5a7a 100644
--- a/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
+++ b/pkg/nuclide-health/lib/ui/sections/ActiveHandlesSectionComponent.js
@@ -23,7 +23,7 @@ export default class ActiveHandlesSectionComponent extends React.Component {
render(): React.Element<any> {
if (
!this.props.activeHandlesByType ||
- Object.keys(this.props.activeHandlesByType).length === 0
+ Object.keys(this.props.activeHandlesByType).length === 0
) {
return <div />;
}
diff --git a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictContext.js b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictContext.js
index 5f855c8..6eac41a 100644
--- a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictContext.js
+++ b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictContext.js
@@ -126,7 +126,7 @@ export class MercurialConflictContext {
const repository = this._conflictingRepository;
const notification = atom.notifications.addSuccess(
'All Conflicts Resolved\n' +
- 'Click `Continue` to run: `hg rebase --continue`',
+ 'Click `Continue` to run: `hg rebase --continue`',
{
buttons: [
{
@@ -139,7 +139,7 @@ export class MercurialConflictContext {
} catch (error) {
atom.notifications.addError(
'Failed to continue rebase\n' +
- 'You will have to run `hg rebase --continue` manually.',
+ 'You will have to run `hg rebase --continue` manually.',
);
}
},
@@ -161,7 +161,7 @@ export class MercurialConflictContext {
const repository = this._conflictingRepository;
const notification = atom.notifications.addWarning(
'Careful, You still have conflict markers!<br/>\n' +
- 'Click `Abort` if you want to give up on this and run: `hg rebase --abort`.',
+ 'Click `Abort` if you want to give up on this and run: `hg rebase --abort`.',
{
buttons: [
{
@@ -174,7 +174,7 @@ export class MercurialConflictContext {
} catch (error) {
atom.notifications.addError(
'Failed to abort rebase\n' +
- 'You will have to run `hg rebase --abort` manually.',
+ 'You will have to run `hg rebase --abort` manually.',
);
}
},
diff --git a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
index eb8cfc8..f72afa8 100644
--- a/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
+++ b/pkg/nuclide-hg-conflict-resolver/lib/MercurialConflictDetector.js
@@ -46,7 +46,7 @@ export class MercurialConflictDetector {
.filter(
repository => repository != null && repository.getType() === 'hg',
)
- // Flow doesn't understand the implications of the filter, so we need to cast.,
+ // Flow doesn't understand the implications of the filter, so we need to cast.,,
): Set<any>);
// Dispose removed projects repositories, if any.
for (const [
diff --git a/pkg/nuclide-hg-repository-client/spec/HgRepositoryClient-spec.js b/pkg/nuclide-hg-repository-client/spec/HgRepositoryClient-spec.js
index b286862..f1faaea 100644
--- a/pkg/nuclide-hg-repository-client/spec/HgRepositoryClient-spec.js
+++ b/pkg/nuclide-hg-repository-client/spec/HgRepositoryClient-spec.js
@@ -71,7 +71,7 @@ describe('HgRepositoryClient', () => {
describe('::getProjectDirectory', () => {
it(
'returns the path of the root project folder in Atom that this Client provides information' +
- ' about.',
+ ' about.',
() => {
expect(repo.getProjectDirectory()).toBe(projectDirectory.getPath());
},
@@ -104,7 +104,7 @@ describe('HgRepositoryClient', () => {
it(
'returns false if the path is null or undefined, but handles files with those' +
- ' names.',
+ ' names.',
() => {
// Force the state of the cache.
repo._hgStatusCache = {
@@ -122,7 +122,7 @@ describe('HgRepositoryClient', () => {
describe('::isPathNew', () => {
it(
'returns false if the path is null or undefined, but handles files with those' +
- ' names.',
+ ' names.',
() => {
// Force the state of the cache.
repo._hgStatusCache = {
@@ -140,7 +140,7 @@ describe('HgRepositoryClient', () => {
describe('::isPathModified', () => {
it(
'returns false if the path is null or undefined, but handles files with those' +
- ' names.',
+ ' names.',
() => {
// Force the state of the cache.
repo._hgStatusCache = {
@@ -158,7 +158,7 @@ describe('HgRepositoryClient', () => {
describe('::isPathAdded', () => {
it(
'returns false if the path is null, untracked, modified or deleted' +
- ' names.',
+ ' names.',
() => {
// Force the state of the cache.
repo._hgStatusCache = {
@@ -190,7 +190,7 @@ describe('HgRepositoryClient', () => {
describe('::isPathUntracked', () => {
it(
'returns false if the path is null, untracked, modified or deleted' +
- ' names.',
+ ' names.',
() => {
// Force the state of the cache.
repo._hgStatusCache = {
@@ -283,7 +283,7 @@ describe('HgRepositoryClient', () => {
// eslint-disable-next-line jasmine/no-disabled-tests
xit(
'is updated when the active pane item changes to an editor, if the editor file is in the' +
- ' project.',
+ ' project.',
() => {
spyOn(repo, '_updateDiffInfo');
const file = temp.openSync({dir: projectDirectory.getPath()});
@@ -297,7 +297,7 @@ describe('HgRepositoryClient', () => {
it(
'is not updated when the active pane item changes to an editor whose file is not in the' +
- ' repo.',
+ ' repo.',
() => {
spyOn(repo, '_updateDiffInfo');
const file = temp.openSync();
@@ -310,7 +310,7 @@ describe('HgRepositoryClient', () => {
it(
'marks a file to be removed from the cache after its editor is closed, if the file is in the' +
- ' project.',
+ ' project.',
() => {
spyOn(repo, '_updateDiffInfo');
const file = temp.openSync({dir: projectDirectory.getPath()});
@@ -435,7 +435,7 @@ describe('HgRepositoryClient', () => {
describe('::getDiffStats', () => {
it(
'returns clean stats if the path is null or undefined, but handles paths with those' +
- ' names.',
+ ' names.',
() => {
const mockDiffInfo = {
added: 1,
@@ -471,7 +471,7 @@ describe('HgRepositoryClient', () => {
describe('::getLineDiffs', () => {
it(
'returns an empty array if the path is null or undefined, but handles paths with those' +
- ' names.',
+ ' names.',
() => {
const mockDiffInfo = {
added: 1,
diff --git a/pkg/nuclide-hg-rpc/lib/hg-revision-expression-helpers.js b/pkg/nuclide-hg-rpc/lib/hg-revision-expression-helpers.js
index 44c7294..841b7b5 100644
--- a/pkg/nuclide-hg-rpc/lib/hg-revision-expression-helpers.js
+++ b/pkg/nuclide-hg-rpc/lib/hg-revision-expression-helpers.js
@@ -160,7 +160,7 @@ export function fetchRevisionsInfo(
.catch(e => {
getLogger().warn(
'Failed to get revision info for revisions' +
- ` ${revisionExpression}: ${e.stderr || e}, ${e.command}`,
+ ` ${revisionExpression}: ${e.stderr || e}, ${e.command}`,
);
throw new Error(
`Could not fetch revision info for revisions: ${revisionExpression}`,
diff --git a/pkg/nuclide-hg-rpc/lib/hg-utils.js b/pkg/nuclide-hg-rpc/lib/hg-utils.js
index ab3181f..621ec35 100644
--- a/pkg/nuclide-hg-rpc/lib/hg-utils.js
+++ b/pkg/nuclide-hg-rpc/lib/hg-utils.js
@@ -97,8 +97,8 @@ function logAndThrowHgError(
): void {
getLogger().error(
`Error executing hg command: ${JSON.stringify(args)}\n` +
- `stderr: ${stderr}\nstdout: ${stdout}\n` +
- `options: ${JSON.stringify(options)}`,
+ `stderr: ${stderr}\nstdout: ${stdout}\n` +
+ `options: ${JSON.stringify(options)}`,
);
if (stderr.length > 0 && stdout.length > 0) {
throw new Error(`hg error\nstderr: ${stderr}\nstdout: ${stdout}`);
diff --git a/pkg/nuclide-hhvm/lib/HhvmToolbar.js b/pkg/nuclide-hhvm/lib/HhvmToolbar.js
index 7bc7a16..804d022 100644
--- a/pkg/nuclide-hhvm/lib/HhvmToolbar.js
+++ b/pkg/nuclide-hhvm/lib/HhvmToolbar.js
@@ -72,7 +72,7 @@ export default class HhvmToolbar extends React.Component {
const store = this.props.projectStore;
if (
store.getDebugMode() === 'script' &&
- !this._isTargetLaunchable(store.getCurrentFilePath())
+ !this._isTargetLaunchable(store.getCurrentFilePath())
) {
store.setDebugMode('webserver');
}
diff --git a/pkg/nuclide-home/lib/HomePaneItem.js b/pkg/nuclide-home/lib/HomePaneItem.js
index 315a54c..b7d2be6 100644
--- a/pkg/nuclide-home/lib/HomePaneItem.js
+++ b/pkg/nuclide-home/lib/HomePaneItem.js
@@ -132,12 +132,10 @@ export default class HomePaneItem extends React.Component {
);
}
- return /* Re-use styles from the Atom welcome pane where possible.*/
- (
- <div className="nuclide-home pane-item padded nuclide-home-containers">
- {containers}
- </div>
- );
+ return; /* Re-use styles from the Atom welcome pane where possible.*/
+ <div className="nuclide-home pane-item padded nuclide-home-containers">
+ {containers}
+ </div>;
}
_handleShowOnStartupChange(checked: boolean): void {
diff --git a/pkg/nuclide-ios-simulator-logs/lib/createMessageStream.js b/pkg/nuclide-ios-simulator-logs/lib/createMessageStream.js
index 441bdc3..c5183b9 100644
--- a/pkg/nuclide-ios-simulator-logs/lib/createMessageStream.js
+++ b/pkg/nuclide-ios-simulator-logs/lib/createMessageStream.js
@@ -54,7 +54,7 @@ function filter(messages: Observable<Message>): Observable<Message> {
} catch (err) {
atom.notifications.addError(
'The nuclide-ios-simulator-logs.whitelistedTags setting contains an invalid regular' +
- ' expression string. Fix it in your Atom settings.',
+ ' expression string. Fix it in your Atom settings.',
);
return /.*/;
}
diff --git a/pkg/nuclide-json/lib/NPMHyperclickProvider.js b/pkg/nuclide-json/lib/NPMHyperclickProvider.js
index d6d508a..25f4911 100644
--- a/pkg/nuclide-json/lib/NPMHyperclickProvider.js
+++ b/pkg/nuclide-json/lib/NPMHyperclickProvider.js
@@ -122,9 +122,9 @@ function getDependencyVersion(json: string, range: atom$Range): ?string {
if (
pathToNode != null &&
- pathToNode.length === 2 &&
- DEPENDENCY_PROPERTIES.has(pathToNode[0].key.value) &&
- isValidVersion(pathToNode[1].value)
+ pathToNode.length === 2 &&
+ DEPENDENCY_PROPERTIES.has(pathToNode[0].key.value) &&
+ isValidVersion(pathToNode[1].value)
) {
const valueNode = pathToNode[1].value;
if (isValidVersion(valueNode)) {
diff --git a/pkg/nuclide-language-service/lib/DiagnosticsProvider.js b/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
index 541b6c1..3a1ab96 100644
--- a/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
+++ b/pkg/nuclide-language-service/lib/DiagnosticsProvider.js
@@ -231,7 +231,7 @@ export class FileDiagnosticsProvider<T: LanguageService> {
const activeTextEditor = atom.workspace.getActiveTextEditor();
if (
activeTextEditor &&
- !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
+ !nuclideUri.isBrokenDeserializedUri(activeTextEditor.getPath())
) {
if (
this._providerBase
@@ -266,7 +266,7 @@ export class FileDiagnosticsProvider<T: LanguageService> {
.filter(
rootPath =>
nuclideUri.contains(projectPath, rootPath) ||
- nuclideUri.contains(rootPath, projectPath),
+ nuclideUri.contains(rootPath, projectPath),
)
.forEach(removedPath => {
this._invalidatePathsForProjectRoot(removedPath);
diff --git a/pkg/nuclide-logging/lib/config.js b/pkg/nuclide-logging/lib/config.js
index b7f8893..f09ab6c 100644
--- a/pkg/nuclide-logging/lib/config.js
+++ b/pkg/nuclide-logging/lib/config.js
@@ -40,7 +40,7 @@ export async function getServerLogAppenderConfig(): Promise<?Object> {
// 2) or the scribe_cat command is missing.
if (
!(await fsPromise.exists(scribeAppenderPath)) ||
- !(await ScribeProcess.isScribeCatOnPath())
+ !(await ScribeProcess.isScribeCatOnPath())
) {
return null;
}
diff --git a/pkg/nuclide-navigation-stack/lib/NavigationStackController.js b/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
index cfb7455..823418a 100644
--- a/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
+++ b/pkg/nuclide-navigation-stack/lib/NavigationStackController.js
@@ -102,7 +102,7 @@ export class NavigationStackController {
updatePosition(editor: atom$TextEditor, newBufferPosition: atom$Point): void {
log(
`updatePosition ${newBufferPosition.row}, ` +
- `${newBufferPosition.column} ${maybeToString(editor.getPath())}`,
+ `${newBufferPosition.column} ${maybeToString(editor.getPath())}`,
);
this._updateStackLocation(editor);
@@ -139,9 +139,9 @@ export class NavigationStackController {
// nav stack entry.
if (
!this._inActivate &&
- this._lastLocation != null &&
- this._lastLocation.editor === editor &&
- this._navigationStack.getCurrentEditor() === editor
+ this._lastLocation != null &&
+ this._lastLocation.editor === editor &&
+ this._navigationStack.getCurrentEditor() === editor
) {
this._navigationStack.attemptUpdate(this._lastLocation);
this._navigationStack.push(getLocationOfEditor(editor));
diff --git a/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js b/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
index e759d6c..838f2f6 100644
--- a/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
+++ b/pkg/nuclide-node-transpiler/lib/inline-invariant-tr.js
@@ -49,10 +49,10 @@ module.exports = context => {
buildIfThrow(
node.arguments[0],
node.arguments[1] ||
- t.stringLiteral(
- 'Invariant violation: ' +
- JSON.stringify(path.get('arguments.0').getSource()),
- ),
+ t.stringLiteral(
+ 'Invariant violation: ' +
+ JSON.stringify(path.get('arguments.0').getSource()),
+ ),
),
);
}
@@ -70,7 +70,7 @@ module.exports = context => {
for (const refPath of binding.referencePaths) {
if (
refPath.parentKey !== 'callee' ||
- refPath.parent.type !== 'CallExpression'
+ refPath.parent.type !== 'CallExpression'
) {
removeBinding = false;
continue;
diff --git a/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js b/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
index 9cefc8f..300ef75 100644
--- a/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
+++ b/pkg/nuclide-node-transpiler/lib/use-minified-libs-tr.js
@@ -43,9 +43,9 @@ module.exports = context => {
// "require.resolve" is not checked.
if (
node.callee.type === 'Identifier' &&
- node.callee.name === 'require' &&
- node.arguments[0] &&
- node.arguments[0].type === 'StringLiteral'
+ node.callee.name === 'require' &&
+ node.arguments[0] &&
+ node.arguments[0].type === 'StringLiteral'
) {
const source = path.get('arguments.0');
replaceModuleId(this, source);
diff --git a/pkg/nuclide-notifications/lib/main.js b/pkg/nuclide-notifications/lib/main.js
index 528c3df..ccfcd41 100644
--- a/pkg/nuclide-notifications/lib/main.js
+++ b/pkg/nuclide-notifications/lib/main.js
@@ -31,7 +31,7 @@ function proxyToNativeNotification(notification: atom$Notification): void {
// Don't proceed if user only wants 'nativeFriendly' proxied notifications and this isn't one.
if (
!options.nativeFriendly &&
- featureConfig.get('nuclide-notifications.onlyNativeFriendly')
+ featureConfig.get('nuclide-notifications.onlyNativeFriendly')
) {
return;
}
@@ -45,7 +45,7 @@ function proxyToNativeNotification(notification: atom$Notification): void {
function raiseNativeNotification(title: string, body: string): void {
if (
!featureConfig.get('nuclide-notifications.whenFocused') &&
- remote.getCurrentWindow().isFocused()
+ remote.getCurrentWindow().isFocused()
) {
return;
}
diff --git a/pkg/nuclide-nux/lib/NuxManager.js b/pkg/nuclide-nux/lib/NuxManager.js
index 91a3921..e789a4f 100644
--- a/pkg/nuclide-nux/lib/NuxManager.js
+++ b/pkg/nuclide-nux/lib/NuxManager.js
@@ -171,7 +171,7 @@ export class NuxManager {
_handleReadyTour(nuxTour: NuxTour): void {
if (
this._activeNuxTour == null &&
- this._numNuxesDisplayed < NUX_PER_SESSION_LIMIT
+ this._numNuxesDisplayed < NUX_PER_SESSION_LIMIT
) {
this._numNuxesDisplayed++;
this._activeNuxTour = nuxTour;
diff --git a/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js b/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
index 3a66a71..e1ac237 100644
--- a/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
+++ b/pkg/nuclide-objc/lib/ObjectiveCBracketBalancer.js
@@ -126,7 +126,7 @@ export default class ObjectiveCBracketBalancer {
if (
currentRowPlusOne !== null &&
- currentRowPlusOne !== closeBracketPosition.row
+ currentRowPlusOne !== closeBracketPosition.row
) {
const targetLine = buffer.lineForRow(currentRowPlusOne);
const targetMatch = /\S/.exec(targetLine);
diff --git a/pkg/nuclide-objc/spec/ObjectiveCBracketBalancer-spec.js b/pkg/nuclide-objc/spec/ObjectiveCBracketBalancer-spec.js
index 6b13b8b..74368d5 100644
--- a/pkg/nuclide-objc/spec/ObjectiveCBracketBalancer-spec.js
+++ b/pkg/nuclide-objc/spec/ObjectiveCBracketBalancer-spec.js
@@ -17,7 +17,7 @@ describe('ObjectiveCBracketBalancer', () => {
describe('getOpenBracketInsertPosition', () => {
it(
'returns the correct point on a line that contains no space before the close' +
- ' bracket',
+ ' bracket',
() => {
expect(
getOpenBracketInsertPosition(
@@ -30,7 +30,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'returns the correct point on a line that contains only whitespace before the close' +
- ' bracket',
+ ' bracket',
() => {
expect(
getOpenBracketInsertPosition(
@@ -91,7 +91,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'inserts an open bracket at the beginning of an unbalanced nested expression with an open' +
- ' bracket in a string literal',
+ ' bracket in a string literal',
() => {
expect(
getOpenBracketInsertPosition(
@@ -104,7 +104,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'inserts an open bracket at the beginning of an unbalanced nested expression with an open' +
- ' bracket in a char literal',
+ ' bracket in a char literal',
() => {
expect(
getOpenBracketInsertPosition(
@@ -117,7 +117,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'does not insert an open bracket at the beginning of a balanced nested expression with an' +
- ' open bracket in a char literal',
+ ' open bracket in a char literal',
() => {
expect(
getOpenBracketInsertPosition(
@@ -130,7 +130,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'inserts an open bracket before the nearest expression when within an existing balanced' +
- ' bracket pair',
+ ' bracket pair',
() => {
// Start with: [self setFoo:@"bar" |]
// cursor ^
@@ -159,7 +159,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'does not insert an open bracket at the beginning of a balanced expression across multiple' +
- ' lines',
+ ' lines',
() => {
expect(
getOpenBracketInsertPosition(
@@ -184,7 +184,7 @@ describe('ObjectiveCBracketBalancer', () => {
it(
'does not insert an open bracket after an equals sign when initalizing or messaging a class' +
- ' with balanced brackets',
+ ' with balanced brackets',
() => {
expect(
getOpenBracketInsertPosition(
diff --git a/pkg/nuclide-ocaml-rpc/lib/MerlinService.js b/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
index 59da15f..a6bf5c6 100644
--- a/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
+++ b/pkg/nuclide-ocaml-rpc/lib/MerlinService.js
@@ -43,8 +43,7 @@ export type MerlinOutline = {
export type MerlinCases = [{
start: MerlinPosition,
end: MerlinPosition,
-}, /* this is the content to replace the start-end by. Merlin has an awkawrd API*/
-/* for case analysis.*/
+} /* this is the content to replace the start-end by. Merlin has an awkawrd API*/, /* for case analysis.*/
string];
export type MerlinOccurrences = Array<{
diff --git a/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js b/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
index 1ec1d26..066b904 100644
--- a/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
+++ b/pkg/nuclide-ocaml-rpc/spec/MerlinService-spec.js
@@ -126,11 +126,11 @@ describe('MerlinService V 2.3.1', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'complete' &&
- command[1] === 'prefix' &&
- command[2] === 'FoodTest.' &&
- command[3] === 'at' &&
- command[4].line === 6 &&
- command[4].col === 3
+ command[1] === 'prefix' &&
+ command[2] === 'FoodTest.' &&
+ command[3] === 'at' &&
+ command[4].line === 6 &&
+ command[4].col === 3
) {
return expectedResult;
}
@@ -203,9 +203,9 @@ describe('MerlinService V 2.5', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'tell' &&
- command[1] === 'start' &&
- command[2] === 'end' &&
- command[3] === content
+ command[1] === 'start' &&
+ command[2] === 'end' &&
+ command[3] === content
) {
return {cursor: {line: 2, col: 0}, marker: false};
}
@@ -264,11 +264,11 @@ describe('MerlinService V 2.5', () => {
const merlinService = await getMockedMerlinService(async command => {
if (
command[0] === 'complete' &&
- command[1] === 'prefix' &&
- command[2] === 'FoodTest.' &&
- command[3] === 'at' &&
- command[4].line === 6 &&
- command[4].col === 3
+ command[1] === 'prefix' &&
+ command[2] === 'FoodTest.' &&
+ command[3] === 'at' &&
+ command[4].line === 6 &&
+ command[4].col === 3
) {
return expectedResult;
}
diff --git a/pkg/nuclide-outline-view/lib/OutlineView.js b/pkg/nuclide-outline-view/lib/OutlineView.js
index 57b34ad..8a84caf 100644
--- a/pkg/nuclide-outline-view/lib/OutlineView.js
+++ b/pkg/nuclide-outline-view/lib/OutlineView.js
@@ -210,11 +210,9 @@ function renderTrees(
if (outlines.length === 0) {
return null;
}
- return /* Add `position: relative;` to let `li.selected` style position itself relative to the list*/
+ return; /* Add `position: relative;` to let `li.selected` style position itself relative to the list*/
/* tree rather than to its container.*/
- (
- <ul className="list-tree" style={{position: 'relative'}}>
- {outlines.map((outline, index) => renderTree(editor, outline, index))}
- </ul>
- );
+ <ul className="list-tree" style={{position: 'relative'}}>
+ {outlines.map((outline, index) => renderTree(editor, outline, index))}
+ </ul>;
}
diff --git a/pkg/nuclide-python-rpc/lib/PythonService.js b/pkg/nuclide-python-rpc/lib/PythonService.js
index bab4cea..c1a0655 100644
--- a/pkg/nuclide-python-rpc/lib/PythonService.js
+++ b/pkg/nuclide-python-rpc/lib/PythonService.js
@@ -317,7 +317,7 @@ class PythonSingleFileLanguageService {
`"${libCommand}" failed with error: ${maybeToString(
result.errorMessage,
)}, ` +
- `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
+ `stderr: ${result.stderr}, stdout: ${result.stdout}.`,
);
} else if (contents !== '' && result.stdout === '') {
// Throw error if the yapf output is empty, which is almost never desirable.
@@ -430,7 +430,7 @@ export async function getDiagnostics(
}
throw new Error(
`flake8 failed with error: ${maybeToString(result.errorMessage)}, ` +
- `stderr: ${result.stderr}, stdout: ${result.stdout}`,
+ `stderr: ${result.stderr}, stdout: ${result.stdout}`,
);
}
return parseFlake8Output(src, result.stdout);
diff --git a/pkg/nuclide-python/lib/LintHelpers.js b/pkg/nuclide-python/lib/LintHelpers.js
index 470cbb7..f1cc4a3 100644
--- a/pkg/nuclide-python/lib/LintHelpers.js
+++ b/pkg/nuclide-python/lib/LintHelpers.js
@@ -21,8 +21,8 @@ export default class LintHelpers {
const src = editor.getPath();
if (
src == null ||
- !getEnableLinting() ||
- getLintExtensionBlacklist().includes(nuclideUri.extname(src))
+ !getEnableLinting() ||
+ getLintExtensionBlacklist().includes(nuclideUri.extname(src))
) {
return Promise.resolve([]);
}
diff --git a/pkg/nuclide-python/lib/diagnostic-range.js b/pkg/nuclide-python/lib/diagnostic-range.js
index dd547b3..4cf1f4c 100644
--- a/pkg/nuclide-python/lib/diagnostic-range.js
+++ b/pkg/nuclide-python/lib/diagnostic-range.js
@@ -60,7 +60,7 @@ function getModuleNameRange(
}
if (
token.value === 'import' &&
- token.scopes.indexOf('keyword.control.import.python') >= 0
+ token.scopes.indexOf('keyword.control.import.python') >= 0
) {
foundImport = true;
}
diff --git a/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js b/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
index 037942a..4ba7ddf 100644
--- a/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
+++ b/pkg/nuclide-quick-open/lib/QuickSelectionComponent.js
@@ -209,8 +209,8 @@ export default class QuickSelectionComponent extends React.Component {
}
if (
prevState.selectedItemIndex !== this.state.selectedItemIndex ||
- prevState.selectedService !== this.state.selectedService ||
- prevState.selectedDirectory !== this.state.selectedDirectory
+ prevState.selectedService !== this.state.selectedService ||
+ prevState.selectedDirectory !== this.state.selectedDirectory
) {
this._updateScrollPosition();
}
@@ -337,7 +337,7 @@ export default class QuickSelectionComponent extends React.Component {
// Otherwise, refocus the input box.
if (
event.target !== this.refs.modal &&
- !this.refs.modal.contains(event.target)
+ !this.refs.modal.contains(event.target)
) {
this.props.onCancellation();
} else {
@@ -375,8 +375,8 @@ export default class QuickSelectionComponent extends React.Component {
() => {
if (
!this.state.hasUserSelection &&
- topProviderName != null &&
- this.state.resultsByService[topProviderName] != null
+ topProviderName != null &&
+ this.state.resultsByService[topProviderName] != null
) {
const topProviderResults = this.state.resultsByService[
topProviderName
@@ -516,7 +516,7 @@ export default class QuickSelectionComponent extends React.Component {
context.currentService.results[
context.directoryNames[context.currentDirectoryIndex - 1]
].results.length -
- 1,
+ 1,
userInitiated,
);
} else {
@@ -601,11 +601,11 @@ export default class QuickSelectionComponent extends React.Component {
): ?FileResult {
if (
itemIndex === -1 ||
- !this.state.resultsByService[serviceName] ||
- !this.state.resultsByService[serviceName].results[directory] ||
- !this.state.resultsByService[serviceName].results[directory].results[
- itemIndex
- ]
+ !this.state.resultsByService[serviceName] ||
+ !this.state.resultsByService[serviceName].results[directory] ||
+ !this.state.resultsByService[serviceName].results[directory].results[
+ itemIndex
+ ]
) {
return null;
}
diff --git a/pkg/nuclide-quick-open/lib/SearchResultManager.js b/pkg/nuclide-quick-open/lib/SearchResultManager.js
index 9793cb0..0ad9cc3 100644
--- a/pkg/nuclide-quick-open/lib/SearchResultManager.js
+++ b/pkg/nuclide-quick-open/lib/SearchResultManager.js
@@ -191,7 +191,7 @@ export default class SearchResultManager {
if (
!(arrayEqual(this._directories, directories) &&
- mapEqual(this._providersByDirectory, providersByDirectories))
+ mapEqual(this._providersByDirectory, providersByDirectories))
) {
this._directories = directories;
this._providersByDirectory = providersByDirectories;
@@ -334,7 +334,7 @@ export default class SearchResultManager {
track('quickopen-query-source-provider', {
'quickopen-source-provider': globalProvider.name,
'quickopen-query-duration': (performance.now() -
- startTime).toString(),
+ startTime).toString(),
'quickopen-result-count': result.length.toString(),
});
this._processResult(query, result, GLOBAL_KEY, globalProvider);
@@ -364,7 +364,7 @@ export default class SearchResultManager {
track('quickopen-query-source-provider', {
'quickopen-source-provider': directoryProvider.name,
'quickopen-query-duration': (performance.now() -
- startTime).toString(),
+ startTime).toString(),
'quickopen-result-count': result.length.toString(),
});
this._processResult(query, result, path, directoryProvider);
@@ -404,11 +404,11 @@ export default class SearchResultManager {
!((cachedPaths = this._resultCache.getAllCachedResults()[
providerName
]) &&
- (cachedQueries = cachedPaths[path]) &&
- ((cachedResult = cachedQueries[query]) ||
- // If the current query hasn't returned anything yet, try the last cached result.
- lastCachedQuery != null &&
- (cachedResult = cachedQueries[lastCachedQuery])))
+ (cachedQueries = cachedPaths[path]) &&
+ ((cachedResult = cachedQueries[query]) ||
+ // If the current query hasn't returned anything yet, try the last cached result.
+ lastCachedQuery != null &&
+ (cachedResult = cachedQueries[lastCachedQuery])))
) {
cachedResult = {};
}
diff --git a/pkg/nuclide-quick-open/lib/main.js b/pkg/nuclide-quick-open/lib/main.js
index 767c5d7..2fa129b 100644
--- a/pkg/nuclide-quick-open/lib/main.js
+++ b/pkg/nuclide-quick-open/lib/main.js
@@ -147,8 +147,8 @@ class Activation {
});
if (
this._searchPanel != null &&
- this._searchPanel.isVisible() &&
- this._searchResultManager.getActiveProviderName() === newProviderName
+ this._searchPanel.isVisible() &&
+ this._searchResultManager.getActiveProviderName() === newProviderName
) {
this._closeSearchPanel();
} else {
@@ -202,7 +202,7 @@ class Activation {
searchComponent.setInputValue(initialQuery);
} else if (
!searchPanel.isVisible() &&
- featureConfig.get('nuclide-quick-open.useSelection')
+ featureConfig.get('nuclide-quick-open.useSelection')
) {
// Only on initial render should you use the current selection as a query.
const editor = atom.workspace.getActiveTextEditor();
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
index dc48757..42b5e28 100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/backend.js
@@ -248,7 +248,7 @@
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -363,7 +363,7 @@
{
scroll: (
isReactDOM &&
- typeof window.document.body.scrollIntoView === 'function'
+ typeof window.document.body.scrollIntoView === 'function'
),
dom: isReactDOM,
editTextContent: false,
@@ -572,7 +572,7 @@
var renderer = this.renderers.get(id);
if (
renderer &&
- this.reactInternals[renderer].getNativeFromReactElement
+ this.reactInternals[renderer].getNativeFromReactElement
) {
return this.reactInternals[renderer].getNativeFromReactElement(
component,
@@ -704,7 +704,7 @@
? 'undefined'
: _typeof(element)) !==
'object' ||
- !element
+ !element
) {
return element;
}
@@ -867,7 +867,7 @@
if (type === 'error') {
if (
!this._events.error ||
- isObject(this._events.error) && !this._events.error.length
+ isObject(this._events.error) && !this._events.error.length
) {
er = arguments[1];
if (er instanceof Error) {
@@ -954,8 +954,8 @@
this._events[type].warned = true;
console.error(
'(node) warning: possible EventEmitter memory ' +
- 'leak detected. %d listeners added. ' +
- 'Use emitter.setMaxListeners() to increase limit.',
+ 'leak detected. %d listeners added. ' +
+ 'Use emitter.setMaxListeners() to increase limit.',
this._events[type].length,
);
if (typeof console.trace === 'function') {
@@ -1006,7 +1006,7 @@
if (
list === listener ||
- isFunction(list.listener) && list.listener === listener
+ isFunction(list.listener) && list.listener === listener
) {
delete this._events[type];
if (this._events.removeListener)
@@ -1015,7 +1015,7 @@
for (i = length; i-- > 0; ) {
if (
list[i] === listener ||
- list[i].listener && list[i].listener === listener
+ list[i].listener && list[i].listener === listener
) {
position = i;
break;
@@ -1469,7 +1469,7 @@
while (
this._buffer.length &&
- (deadline.timeRemaining() > 0 || deadline.didTimeout)
+ (deadline.timeRemaining() > 0 || deadline.didTimeout)
) {
var take = Math.min(
this._buffer.length,
@@ -1653,9 +1653,9 @@
}
if (
isFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -1673,9 +1673,9 @@
) {
if (
pIsFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -1856,12 +1856,12 @@
hasInstance: d(
'',
NativeSymbol && NativeSymbol.hasInstance ||
- SymbolPolyfill('hasInstance'),
+ SymbolPolyfill('hasInstance'),
),
isConcatSpreadable: d(
'',
NativeSymbol && NativeSymbol.isConcatSpreadable ||
- SymbolPolyfill('isConcatSpreadable'),
+ SymbolPolyfill('isConcatSpreadable'),
),
iterator: d(
'',
@@ -1890,17 +1890,17 @@
toPrimitive: d(
'',
NativeSymbol && NativeSymbol.toPrimitive ||
- SymbolPolyfill('toPrimitive'),
+ SymbolPolyfill('toPrimitive'),
),
toStringTag: d(
'',
NativeSymbol && NativeSymbol.toStringTag ||
- SymbolPolyfill('toStringTag'),
+ SymbolPolyfill('toStringTag'),
),
unscopables: d(
'',
NativeSymbol && NativeSymbol.unscopables ||
- SymbolPolyfill('unscopables'),
+ SymbolPolyfill('unscopables'),
),
});
@@ -2249,8 +2249,8 @@
}
if (
!data ||
- (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
- 'object'
+ (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
+ 'object'
) {
if (typeof data === 'string' && data.length > 500) {
return data.slice(0, 500) + '...';
@@ -2295,8 +2295,8 @@
} // TODO when this is in the iframe window, we can just use Object
if (
data.constructor &&
- typeof data.constructor === 'function' &&
- data.constructor.name !== 'Object'
+ typeof data.constructor === 'function' &&
+ data.constructor.name !== 'Object'
) {
cleaned.push(path);
return {
@@ -2702,7 +2702,7 @@
};
walkRoots(
renderer.Mount._instancesByReactRootID ||
- renderer.Mount._instancesByContainerID,
+ renderer.Mount._instancesByContainerID,
onMount,
visitRoot,
isPre013,
@@ -2876,9 +2876,9 @@
name = element.getName(); // 0.14 top-level wrapper // TODO(jared): The backend should just act as if these don't exist.
if (
element._renderedComponent &&
- (element._currentElement.props ===
- element._renderedComponent._currentElement ||
- element._currentElement.type.isReactTopLevelWrapper)
+ (element._currentElement.props ===
+ element._renderedComponent._currentElement ||
+ element._currentElement.type.isReactTopLevelWrapper)
) {
nodeType = 'Wrapper';
}
@@ -3214,7 +3214,7 @@
if (Array.isArray(style)) {
if (
_typeof(style[style.length - 1]) === 'object' &&
- !Array.isArray(style[style.length - 1])
+ !Array.isArray(style[style.length - 1])
) {
customStyle = shallowClone(style[style.length - 1]);
delete customStyle[oldName];
@@ -3260,7 +3260,7 @@
if (Array.isArray(style)) {
if (
_typeof(style[style.length - 1]) === 'object' &&
- !Array.isArray(style[style.length - 1])
+ !Array.isArray(style[style.length - 1])
) {
// $FlowFixMe we know that updater is not null here
data.updater.setInProps(['style', style.length - 1, attr], val);
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js
index 55796eb..3aec3d7 100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js
@@ -682,19 +682,19 @@
assign(this.content.style, {
height: (
box.height -
- dims.borderTop -
- dims.borderBottom -
- dims.paddingTop -
- dims.paddingBottom +
- 'px'
+ dims.borderTop -
+ dims.borderBottom -
+ dims.paddingTop -
+ dims.paddingBottom +
+ 'px'
),
width: (
box.width -
- dims.borderLeft -
- dims.borderRight -
- dims.paddingLeft -
- dims.paddingRight +
- 'px'
+ dims.borderLeft -
+ dims.borderRight -
+ dims.paddingLeft -
+ dims.paddingRight +
+ 'px'
),
});
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
index 74a0312..ea45a6f 100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/standalone.js
@@ -382,7 +382,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -695,48 +695,48 @@ module.exports = /******/ (function(modules) {
attr: function attr(id, node, val, path, name) {
if (
!val ||
- node.get('nodeType') !== 'Composite' ||
- val[consts.type] !== 'function'
+ node.get('nodeType') !== 'Composite' ||
+ val[consts.type] !== 'function'
) {
return undefined;
}
return [
_this7.props.showAttrSource &&
- {
- title: 'Show Source',
- // $FlowFixMe showAttrSource is provided
- action: function action() {
- return _this7.props.showAttrSource(path);
- },
+ {
+ title: 'Show Source',
+ // $FlowFixMe showAttrSource is provided
+ action: function action() {
+ return _this7.props.showAttrSource(path);
},
+ },
_this7.props.executeFn &&
- {
- title: 'Execute function',
- // $FlowFixMe executeFn is provided
- action: function action() {
- return _this7.props.executeFn(path);
- },
+ {
+ title: 'Execute function',
+ // $FlowFixMe executeFn is provided
+ action: function action() {
+ return _this7.props.executeFn(path);
},
+ },
];
},
tree: function tree(id, node) {
return [
_this7.props.showComponentSource &&
- node.get('nodeType') === 'Composite' &&
- {
- title: 'Show Source',
- action: function action() {
- return _this7.viewSource(id);
- },
+ node.get('nodeType') === 'Composite' &&
+ {
+ title: 'Show Source',
+ action: function action() {
+ return _this7.viewSource(id);
},
+ },
_this7.props.selectElement &&
- _this7._store.capabilities.dom &&
- {
- title: 'Show in Elements Pane',
- action: function action() {
- return _this7.sendSelection(id);
- },
+ _this7._store.capabilities.dom &&
+ {
+ title: 'Show in Elements Pane',
+ action: function action() {
+ return _this7.sendSelection(id);
},
+ },
];
},
},
@@ -843,9 +843,9 @@ module.exports = /******/ (function(modules) {
? warning(
warned,
'React.__spread is deprecated and should not be used. Use ' +
- 'Object.assign directly or another helper function with similar ' +
- 'semantics. You may be seeing this warning due to your compiler. ' +
- 'See https://fb.me/react-spread-deprecation for more details.',
+ 'Object.assign directly or another helper function with similar ' +
+ 'semantics. You may be seeing this warning due to your compiler. ' +
+ 'See https://fb.me/react-spread-deprecation for more details.',
)
: void 0;
warned = true;
@@ -1107,10 +1107,10 @@ module.exports = /******/ (function(modules) {
// Keep both the (mapped) and old keys if they differ, just as
// traverseAllChildren used to do for objects as children
keyPrefix +
- (mappedChild.key && (!child || child.key !== mappedChild.key)
- ? escapeUserProvidedKey(mappedChild.key) + '/'
- : '') +
- childKey,
+ (mappedChild.key && (!child || child.key !== mappedChild.key)
+ ? escapeUserProvidedKey(mappedChild.key) + '/'
+ : '') +
+ childKey,
);
}
result.push(mappedChild);
@@ -1426,7 +1426,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.',
+ 'for the full error message and additional helpful warnings.',
);
} else {
var args = [a, b, c, d, e, f];
@@ -1621,10 +1621,10 @@ module.exports = /******/ (function(modules) {
? warning(
/* eslint-disable no-proto */
config.__proto__ == null ||
- config.__proto__ === Object.prototype,
+ config.__proto__ === Object.prototype,
/* eslint-enable no-proto */
'React.createElement(...): Expected props argument to be a plain object. ' +
- 'Properties defined in its prototype chain will be ignored.',
+ 'Properties defined in its prototype chain will be ignored.',
)
: void 0;
}
@@ -1642,7 +1642,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -1684,9 +1684,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `key` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -1702,9 +1702,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `ref` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -1715,7 +1715,7 @@ module.exports = /******/ (function(modules) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
if (!props.hasOwnProperty('key')) {
Object.defineProperty(props, 'key', {
@@ -1800,10 +1800,10 @@ module.exports = /******/ (function(modules) {
? warning(
/* eslint-disable no-proto */
config.__proto__ == null ||
- config.__proto__ === Object.prototype,
+ config.__proto__ === Object.prototype,
/* eslint-enable no-proto */
'React.cloneElement(...): Expected props argument to be a plain object. ' +
- 'Properties defined in its prototype chain will be ignored.',
+ 'Properties defined in its prototype chain will be ignored.',
)
: void 0;
}
@@ -1825,7 +1825,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -1965,7 +1965,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
throw new Error(
'`warning(condition, format, ...args)` requires a warning ' +
- 'message argument',
+ 'message argument',
);
}
@@ -2141,9 +2141,9 @@ module.exports = /******/ (function(modules) {
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -2207,8 +2207,8 @@ module.exports = /******/ (function(modules) {
? warning(
didWarnAboutMaps,
'Using Maps as children is not yet fully supported. It is an ' +
- 'experimental feature that might be removed. Convert it to a ' +
- 'sequence / iterable of keyed ReactElements instead.%s',
+ 'experimental feature that might be removed. Convert it to a ' +
+ 'sequence / iterable of keyed ReactElements instead.%s',
mapsAsChildrenAddendum,
)
: void 0;
@@ -2528,12 +2528,12 @@ module.exports = /******/ (function(modules) {
isMounted: [
'isMounted',
'Instead, make sure to clean up subscriptions and pending requests in ' +
- 'componentWillUnmount to prevent memory leaks.',
+ 'componentWillUnmount to prevent memory leaks.',
],
replaceState: [
'replaceState',
'Refactor your code to use setState instead (see ' +
- 'https://github.com/facebook/react/issues/3236).',
+ 'https://github.com/facebook/react/issues/3236).',
],
};
var defineDeprecationWarning = function(methodName, info) {
@@ -2587,12 +2587,12 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s(...): Can only update a mounted or mounting component. ' +
- 'This usually means you called %s() on an unmounted component. ' +
- 'This is a no-op. Please check the code for the %s component.',
+ 'This usually means you called %s() on an unmounted component. ' +
+ 'This is a no-op. Please check the code for the %s component.',
callerName,
callerName,
constructor && (constructor.displayName || constructor.name) ||
- 'ReactClass',
+ 'ReactClass',
)
: void 0;
}
@@ -3112,7 +3112,7 @@ module.exports = /******/ (function(modules) {
? warning(
typeof typeDef[propName] === 'function',
'%s: %s type `%s` is invalid; it must be a function, usually from ' +
- 'React.PropTypes.',
+ 'React.PropTypes.',
Constructor.displayName || 'ReactClass',
ReactPropTypeLocationNames[location],
propName,
@@ -3169,9 +3169,9 @@ module.exports = /******/ (function(modules) {
? warning(
isMixinValid,
"%s: You're attempting to include a mixin that is either null " +
- 'or not an object. Check the mixins included by the component, ' +
- 'as well as any mixins they include themselves. ' +
- 'Expected object but got %s.',
+ 'or not an object. Check the mixins included by the component, ' +
+ 'as well as any mixins they include themselves. ' +
+ 'Expected object but got %s.',
Constructor.displayName || 'ReactClass',
spec === null ? null : typeofSpec,
)
@@ -3424,7 +3424,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'bind(): React component methods may only be bound to the ' +
- 'component instance. See %s',
+ 'component instance. See %s',
componentName,
)
: void 0;
@@ -3433,8 +3433,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'bind(): You are binding a component method to the component. ' +
- 'React does this for you automatically in a high-performance ' +
- 'way, so you can safely remove this call. See %s',
+ 'React does this for you automatically in a high-performance ' +
+ 'way, so you can safely remove this call. See %s',
componentName,
)
: void 0;
@@ -3521,7 +3521,7 @@ module.exports = /******/ (function(modules) {
? warning(
this instanceof Constructor,
'Something is calling a React component directly. Use a factory or ' +
- 'JSX instead. See: https://fb.me/react-legacyfactory',
+ 'JSX instead. See: https://fb.me/react-legacyfactory',
)
: void 0;
}
@@ -3548,7 +3548,7 @@ module.exports = /******/ (function(modules) {
// We allow auto-mocks to proceed as if they're returning null.
if (
initialState === undefined &&
- this.getInitialState._isMockFunction
+ this.getInitialState._isMockFunction
) {
// This is probably bad practice. Consider warning here and
// deprecating this convenience.
@@ -3610,9 +3610,9 @@ module.exports = /******/ (function(modules) {
? warning(
!Constructor.prototype.componentShouldUpdate,
'%s has a method called ' +
- 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
- 'The name is phrased as a question because the function is ' +
- 'expected to return a value.',
+ 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
+ 'The name is phrased as a question because the function is ' +
+ 'expected to return a value.',
spec.displayName || 'A component',
)
: void 0;
@@ -3620,7 +3620,7 @@ module.exports = /******/ (function(modules) {
? warning(
!Constructor.prototype.componentWillRecieveProps,
'%s has a method called ' +
- 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
+ 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
spec.displayName || 'A component',
)
: void 0;
@@ -4129,8 +4129,8 @@ module.exports = /******/ (function(modules) {
var childOwner = '';
if (
element &&
- element._owner &&
- element._owner !== ReactCurrentOwner.current
+ element._owner &&
+ element._owner !== ReactCurrentOwner.current
) {
// Give the component that originally created this child.
childOwner = ' It was passed a child from ' +
@@ -4142,7 +4142,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'Each child in an array or iterator should have a unique "key" prop.' +
- '%s%s See https://fb.me/react-warning-keys for more information.%s',
+ '%s%s See https://fb.me/react-warning-keys for more information.%s',
currentComponentErrorInfo,
childOwner,
ReactComponentTreeDevtool.getCurrentStackAddendum(element),
@@ -4219,7 +4219,7 @@ module.exports = /******/ (function(modules) {
? warning(
componentClass.getDefaultProps.isReactClassApproved,
'getDefaultProps is only used on classic React.createClass ' +
- 'definitions. Use a static property named `defaultProps` instead.',
+ 'definitions. Use a static property named `defaultProps` instead.',
)
: void 0;
}
@@ -4235,8 +4235,8 @@ module.exports = /******/ (function(modules) {
? warning(
validType,
'React.createElement: type should not be null, undefined, boolean, or ' +
- 'number. It should be a string (for DOM elements) or a ReactClass ' +
- '(for composite components).%s',
+ 'number. It should be a string (for DOM elements) or a ReactClass ' +
+ '(for composite components).%s',
getDeclarationErrorAddendum(),
)
: void 0;
@@ -4281,7 +4281,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'Factory.type is deprecated. Access the class directly ' +
- 'before passing it to createFactory.',
+ 'before passing it to createFactory.',
)
: void 0;
Object.defineProperty(this, 'type', {
@@ -4384,7 +4384,7 @@ module.exports = /******/ (function(modules) {
? warning(
element,
'ReactComponentTreeDevtool: Missing React element for debugID %s when ' +
- 'building stack',
+ 'building stack',
id,
)
: void 0;
@@ -4620,8 +4620,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -4693,10 +4693,10 @@ module.exports = /******/ (function(modules) {
? warning(
!error || error instanceof Error,
'%s: type specification of %s `%s` is invalid; the type checker ' +
- 'function must return `null` or an `Error` but returned a %s. ' +
- 'You may have forgotten to pass an argument to the type checker ' +
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
- 'shape all require an argument).',
+ 'function must return `null` or an `Error` but returned a %s. ' +
+ 'You may have forgotten to pass an argument to the type checker ' +
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
+ 'shape all require an argument).',
componentName || 'React class',
ReactPropTypeLocationNames[location],
typeSpecName,
@@ -4898,10 +4898,10 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'You are manually calling a React.PropTypes validation ' +
- 'function for the `%s` prop on `%s`. This is deprecated ' +
- 'and will not work in the next major version. You may be ' +
- 'seeing this warning due to a third-party PropTypes library. ' +
- 'See https://fb.me/react-warning-dont-call-proptypes for details.',
+ 'function for the `%s` prop on `%s`. This is deprecated ' +
+ 'and will not work in the next major version. You may be ' +
+ 'seeing this warning due to a third-party PropTypes library. ' +
+ 'See https://fb.me/react-warning-dont-call-proptypes for details.',
propFullName,
componentName,
)
@@ -4915,11 +4915,11 @@ module.exports = /******/ (function(modules) {
if (isRequired) {
return new Error(
'Required ' +
- locationName +
- ' `' +
- propFullName +
- '` was not specified in ' +
- ('`' + componentName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` was not specified in ' +
+ ('`' + componentName + '`.'),
);
}
return null;
@@ -4960,16 +4960,16 @@ module.exports = /******/ (function(modules) {
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- preciseType +
- '` supplied to `' +
- componentName +
- '`, expected ') +
- ('`' + expectedType + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ preciseType +
+ '` supplied to `' +
+ componentName +
+ '`, expected ') +
+ ('`' + expectedType + '`.'),
);
}
return null;
@@ -4992,10 +4992,10 @@ module.exports = /******/ (function(modules) {
if (typeof typeChecker !== 'function') {
return new Error(
'Property `' +
- propFullName +
- '` of component `' +
- componentName +
- '` has invalid PropType notation inside arrayOf.',
+ propFullName +
+ '` of component `' +
+ componentName +
+ '` has invalid PropType notation inside arrayOf.',
);
}
var propValue = props[propName];
@@ -5004,15 +5004,15 @@ module.exports = /******/ (function(modules) {
var propType = getPropType(propValue);
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected an array.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected an array.'),
);
}
for (var i = 0; i < propValue.length; i++) {
@@ -5047,15 +5047,15 @@ module.exports = /******/ (function(modules) {
var propType = getPropType(propValue);
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected a single ReactElement.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected a single ReactElement.'),
);
}
return null;
@@ -5077,16 +5077,16 @@ module.exports = /******/ (function(modules) {
var actualClassName = getClassName(props[propName]);
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- actualClassName +
- '` supplied to `' +
- componentName +
- '`, expected ') +
- ('instance of `' + expectedClassName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ actualClassName +
+ '` supplied to `' +
+ componentName +
+ '`, expected ') +
+ ('instance of `' + expectedClassName + '`.'),
);
}
return null;
@@ -5123,17 +5123,17 @@ module.exports = /******/ (function(modules) {
var valuesString = JSON.stringify(expectedValues);
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of value `' +
- propValue +
- '` ' +
- ('supplied to `' +
- componentName +
- '`, expected one of ' +
- valuesString +
- '.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of value `' +
+ propValue +
+ '` ' +
+ ('supplied to `' +
+ componentName +
+ '`, expected one of ' +
+ valuesString +
+ '.'),
);
}
return createChainableTypeChecker(validate);
@@ -5150,10 +5150,10 @@ module.exports = /******/ (function(modules) {
if (typeof typeChecker !== 'function') {
return new Error(
'Property `' +
- propFullName +
- '` of component `' +
- componentName +
- '` has invalid PropType notation inside objectOf.',
+ propFullName +
+ '` of component `' +
+ componentName +
+ '` has invalid PropType notation inside objectOf.',
);
}
var propValue = props[propName];
@@ -5162,15 +5162,15 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected an object.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected an object.'),
);
}
for (var key in propValue) {
@@ -5231,11 +5231,11 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` supplied to ' +
- ('`' + componentName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` supplied to ' +
+ ('`' + componentName + '`.'),
);
}
return createChainableTypeChecker(validate);
@@ -5253,11 +5253,11 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` supplied to ' +
- ('`' + componentName + '`, expected a ReactNode.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` supplied to ' +
+ ('`' + componentName + '`, expected a ReactNode.'),
);
}
return null;
@@ -5279,13 +5279,13 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new Error(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type `' +
- propType +
- '` ' +
- ('supplied to `' + componentName + '`, expected `object`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type `' +
+ propType +
+ '` ' +
+ ('supplied to `' + componentName + '`, expected `object`.'),
);
}
for (var key in shapeTypes) {
@@ -5551,7 +5551,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -5740,7 +5740,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -5844,11 +5844,7 @@ module.exports = /******/ (function(modules) {
'ul',
{style: containerStyle},
!this.props.items.length &&
- React.createElement(
- 'li',
- {style: styles.empty},
- 'No actions',
- ),
+ React.createElement('li', {style: styles.empty}, 'No actions'),
this.props.items.map(function(item, i) {
return item &&
React.createElement(
@@ -6001,7 +5997,7 @@ module.exports = /******/ (function(modules) {
/* eslint-enable camelcase */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function'
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject === 'function'
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({
ComponentTree: {
@@ -6032,7 +6028,7 @@ module.exports = /******/ (function(modules) {
if (
navigator.userAgent.indexOf('Chrome') > -1 &&
navigator.userAgent.indexOf('Edge') === -1 ||
- navigator.userAgent.indexOf('Firefox') > -1
+ navigator.userAgent.indexOf('Firefox') > -1
) {
// Firefox does not have the issue with devtools loaded over file://
var showFileUrlMessage = window.location.protocol.indexOf(
@@ -6042,11 +6038,11 @@ module.exports = /******/ (function(modules) {
navigator.userAgent.indexOf('Firefox') === -1;
console.debug(
'Download the React DevTools ' +
- (showFileUrlMessage
- ? 'and use an HTTP server (instead of a file: URL) '
- : '') +
- 'for a better development experience: ' +
- 'https://fb.me/react-devtools',
+ (showFileUrlMessage
+ ? 'and use an HTTP server (instead of a file: URL) '
+ : '') +
+ 'for a better development experience: ' +
+ 'https://fb.me/react-devtools',
);
}
}
@@ -6056,9 +6052,9 @@ module.exports = /******/ (function(modules) {
? warning(
(testFunc.name || testFunc.toString()).indexOf('testFn') !== -1,
"It looks like you're using a minified copy of the development build " +
- 'of React. When deploying React apps to production, make sure to use ' +
- 'the production build which skips development warnings and is faster. ' +
- 'See https://fb.me/react-minification for more details.',
+ 'of React. When deploying React apps to production, make sure to use ' +
+ 'the production build which skips development warnings and is faster. ' +
+ 'See https://fb.me/react-minification for more details.',
)
: void 0;
@@ -6071,8 +6067,8 @@ module.exports = /******/ (function(modules) {
? warning(
!ieCompatibilityMode,
'Internet Explorer is running in compatibility mode; please add the ' +
- 'following tag to your HTML to prevent this from happening: ' +
- '<meta http-equiv="X-UA-Compatible" content="IE=edge" />',
+ 'following tag to your HTML to prevent this from happening: ' +
+ '<meta http-equiv="X-UA-Compatible" content="IE=edge" />',
)
: void 0;
@@ -6096,7 +6092,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'One or more ES5 shims expected by React are not available: ' +
- 'https://fb.me/react-warning-polyfills',
+ 'https://fb.me/react-warning-polyfills',
)
: void 0;
break;
@@ -6214,10 +6210,10 @@ module.exports = /******/ (function(modules) {
if (
childNode.nodeType === 1 &&
childNode.getAttribute(ATTR_NAME) === String(childID) ||
- childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-text: ' + childID + ' ' ||
- childNode.nodeType === 8 &&
- childNode.nodeValue === ' react-empty: ' + childID + ' '
+ childNode.nodeType === 8 &&
+ childNode.nodeValue === ' react-text: ' + childID + ' ' ||
+ childNode.nodeType === 8 &&
+ childNode.nodeValue === ' react-empty: ' + childID + ' '
) {
precacheNode(childInst, childNode);
continue outer;
@@ -6572,7 +6568,7 @@ module.exports = /******/ (function(modules) {
ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
ATTRIBUTE_NAME_CHAR: (
ATTRIBUTE_NAME_START_CHAR +
- '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040'
+ '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040'
),
/**
* Map from property "standard name" to an object with info about how to set
@@ -6677,7 +6673,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.',
+ 'for the full error message and additional helpful warnings.',
);
} else {
var args = [a, b, c, d, e, f];
@@ -7179,8 +7175,8 @@ module.exports = /******/ (function(modules) {
if (currentComposition) {
if (
topLevelType === topLevelTypes.topCompositionEnd ||
- !canUseCompositionEvent &&
- isFallbackCompositionEnd(topLevelType, nativeEvent)
+ !canUseCompositionEvent &&
+ isFallbackCompositionEnd(topLevelType, nativeEvent)
) {
var chars = currentComposition.getData();
FallbackCompositionState.release(currentComposition);
@@ -8166,7 +8162,7 @@ module.exports = /******/ (function(modules) {
var PluginModule = injectedNamesToPlugins[pluginName];
if (
!namesToPlugins.hasOwnProperty(pluginName) ||
- namesToPlugins[pluginName] !== PluginModule
+ namesToPlugins[pluginName] !== PluginModule
) {
!!namesToPlugins[pluginName]
? process.env.NODE_ENV !== 'production'
@@ -8294,10 +8290,10 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
Injected &&
- Injected.getNodeFromInstance &&
- Injected.getInstanceFromNode,
+ Injected.getNodeFromInstance &&
+ Injected.getInstanceFromNode,
'EventPluginUtils.injection.injectComponentTree(...): Injected ' +
- 'module is missing getNodeFromInstance or getInstanceFromNode.',
+ 'module is missing getNodeFromInstance or getInstanceFromNode.',
)
: void 0;
}
@@ -8308,10 +8304,10 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
Injected &&
- Injected.isAncestor &&
- Injected.getLowestCommonAncestor,
+ Injected.isAncestor &&
+ Injected.getLowestCommonAncestor,
'EventPluginUtils.injection.injectTreeTraversal(...): Injected ' +
- 'module is missing isAncestor or getLowestCommonAncestor.',
+ 'module is missing isAncestor or getLowestCommonAncestor.',
)
: void 0;
}
@@ -8354,7 +8350,7 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
instancesIsArr === listenersIsArr &&
- instancesLen === listenersLen,
+ instancesLen === listenersLen,
'EventPluginUtils: Invalid `event`.',
)
: void 0;
@@ -8593,9 +8589,9 @@ module.exports = /******/ (function(modules) {
*/
if (
typeof window !== 'undefined' &&
- typeof window.dispatchEvent === 'function' &&
- typeof document !== 'undefined' &&
- typeof document.createEvent === 'function'
+ typeof window.dispatchEvent === 'function' &&
+ typeof document !== 'undefined' &&
+ typeof document.createEvent === 'function'
) {
var fakeNode = document.createElement('react');
ReactErrorUtils.invokeGuardedCallback = function(name, func, a, b) {
@@ -8672,7 +8668,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
throw new Error(
'`warning(condition, format, ...args)` requires a warning ' +
- 'message argument',
+ 'message argument',
);
}
@@ -9531,16 +9527,16 @@ module.exports = /******/ (function(modules) {
set: function(target, prop, value) {
if (
prop !== 'isPersistent' &&
- !target.constructor.Interface.hasOwnProperty(prop) &&
- shouldBeReleasedProperties.indexOf(prop) === -1
+ !target.constructor.Interface.hasOwnProperty(prop) &&
+ shouldBeReleasedProperties.indexOf(prop) === -1
) {
process.env.NODE_ENV !== 'production'
? warning(
didWarnForAddedNewProperty || target.isPersistent(),
"This synthetic event is reused for performance reasons. If you're " +
- "seeing this, you're adding a new property in the synthetic event object. " +
- 'The property is never released. See ' +
- 'https://fb.me/react-event-pooling for more information.',
+ "seeing this, you're adding a new property in the synthetic event object. " +
+ 'The property is never released. See ' +
+ 'https://fb.me/react-event-pooling for more information.',
)
: void 0;
didWarnForAddedNewProperty = true;
@@ -9621,9 +9617,9 @@ module.exports = /******/ (function(modules) {
? warning(
warningCondition,
"This synthetic event is reused for performance reasons. If you're seeing this, " +
- "you're %s `%s` on a released/nullified synthetic event. %s. " +
- 'If you must keep the original synthetic event around, use event.persist(). ' +
- 'See https://fb.me/react-event-pooling for more information.',
+ "you're %s `%s` on a released/nullified synthetic event. %s. " +
+ 'If you must keep the original synthetic event around, use event.persist(). ' +
+ 'See https://fb.me/react-event-pooling for more information.',
action,
propName,
result,
@@ -9993,8 +9989,8 @@ module.exports = /******/ (function(modules) {
function getTargetInstForInputEventIE(topLevelType, targetInst) {
if (
topLevelType === topLevelTypes.topSelectionChange ||
- topLevelType === topLevelTypes.topKeyUp ||
- topLevelType === topLevelTypes.topKeyDown
+ topLevelType === topLevelTypes.topKeyUp ||
+ topLevelType === topLevelTypes.topKeyDown
) {
// On the selectionchange event, the target is just document which isn't
// helpful for us so just check activeElement instead.
@@ -10619,7 +10615,7 @@ module.exports = /******/ (function(modules) {
);
if (
internalInstance._currentElement &&
- internalInstance._currentElement.ref != null
+ internalInstance._currentElement.ref != null
) {
transaction
.getReactMountReady()
@@ -10720,8 +10716,8 @@ module.exports = /******/ (function(modules) {
if (
refsChanged &&
- internalInstance._currentElement &&
- internalInstance._currentElement.ref != null
+ internalInstance._currentElement &&
+ internalInstance._currentElement.ref != null
) {
transaction
.getReactMountReady()
@@ -10754,10 +10750,9 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
internalInstance._updateBatchNumber == null ||
- internalInstance._updateBatchNumber ===
- updateBatchNumber + 1,
+ internalInstance._updateBatchNumber === updateBatchNumber + 1,
'performUpdateIfNecessary: Unexpected batch number (current %s, ' +
- 'pending %s)',
+ 'pending %s)',
updateBatchNumber,
internalInstance._updateBatchNumber,
)
@@ -10849,13 +10844,13 @@ module.exports = /******/ (function(modules) {
var prevEmpty = prevElement === null || prevElement === false;
var nextEmpty = nextElement === null || nextElement === false;
- return // This has a few false positives w/r/t empty components.
+ return; // This has a few false positives w/r/t empty components.
prevEmpty ||
- nextEmpty ||
- nextElement.ref !== prevElement.ref ||
- // If owner changes but we have an unchanged function ref, don't update refs
- typeof nextElement.ref === 'string' &&
- nextElement._owner !== prevElement._owner;
+ nextEmpty ||
+ nextElement.ref !== prevElement.ref ||
+ // If owner changes but we have an unchanged function ref, don't update refs
+ typeof nextElement.ref === 'string' &&
+ nextElement._owner !== prevElement._owner;
};
ReactRef.detachRefs = function(instance, element) {
@@ -10974,7 +10969,7 @@ module.exports = /******/ (function(modules) {
// because we do not want to detach the ref if another component stole it.
if (
ownerPublicInstance &&
- ownerPublicInstance.refs[ref] === component.getPublicInstance()
+ ownerPublicInstance.refs[ref] === component.getPublicInstance()
) {
owner.detachRef(ref);
}
@@ -11153,8 +11148,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'There is an internal error in the React performance measurement code. ' +
- 'Did not expect %s timer to start while %s timer is still in ' +
- 'progress for %s instance.',
+ 'Did not expect %s timer to start while %s timer is still in ' +
+ 'progress for %s instance.',
timerType,
currentTimerType || 'no',
debugID === currentTimerDebugID ? 'the same' : 'another',
@@ -11177,8 +11172,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'There is an internal error in the React performance measurement code. ' +
- 'We did not expect %s timer to stop while %s timer is still in ' +
- 'progress for %s instance. Please report this as a bug in React.',
+ 'We did not expect %s timer to stop while %s timer is still in ' +
+ 'progress for %s instance. Please report this as a bug in React.',
timerType,
currentTimerType || 'no',
debugID === currentTimerDebugID ? 'the same' : 'another',
@@ -11192,8 +11187,8 @@ module.exports = /******/ (function(modules) {
instanceID: debugID,
duration: (
performanceNow() -
- currentTimerStartTime -
- currentTimerNestedFlushDuration
+ currentTimerStartTime -
+ currentTimerNestedFlushDuration
),
});
}
@@ -11468,17 +11463,17 @@ module.exports = /******/ (function(modules) {
var hasOwnProperty = Object.prototype.hasOwnProperty;
var reIsNative = RegExp(
'^' +
- funcToString
- // Take an example native function source for comparison
- .call(hasOwnProperty)
- // Strip regex characters so we can use it for regex
- .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
- // Remove hasOwnProperty from the template to make it generic
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?',
- ) +
- '$',
+ funcToString
+ // Take an example native function source for comparison
+ .call(hasOwnProperty)
+ // Strip regex characters so we can use it for regex
+ .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&')
+ // Remove hasOwnProperty from the template to make it generic
+ .replace(
+ /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
+ '$1.*?',
+ ) +
+ '$',
);
try {
var source = funcToString.call(fn);
@@ -11488,8 +11483,7 @@ module.exports = /******/ (function(modules) {
}
}
- var canUseCollections = // Array.from
- typeof Array.from === 'function' &&
+ var canUseCollections = typeof Array.from === 'function' && // Array.from
// Map
typeof Map === 'function' &&
isNative(Map) &&
@@ -11646,7 +11640,7 @@ module.exports = /******/ (function(modules) {
? warning(
element,
'ReactComponentTreeHook: Missing React element for debugID %s when ' +
- 'building stack',
+ 'building stack',
id,
)
: void 0;
@@ -12346,7 +12340,7 @@ module.exports = /******/ (function(modules) {
function isEventSupported(eventNameSuffix, capture) {
if (
!ExecutionEnvironment.canUseDOM ||
- capture && !('addEventListener' in document)
+ capture && !('addEventListener' in document)
) {
return false;
}
@@ -12520,13 +12514,13 @@ module.exports = /******/ (function(modules) {
) {
if (
topLevelType === topLevelTypes.topMouseOver &&
- (nativeEvent.relatedTarget || nativeEvent.fromElement)
+ (nativeEvent.relatedTarget || nativeEvent.fromElement)
) {
return null;
}
if (
topLevelType !== topLevelTypes.topMouseOut &&
- topLevelType !== topLevelTypes.topMouseOver
+ topLevelType !== topLevelTypes.topMouseOver
) {
// Must not be a mouse in or mouse out - ignoring.
return null;
@@ -13435,10 +13429,10 @@ module.exports = /******/ (function(modules) {
// must also be populated prior to insertion into the DOM.
if (
tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE ||
- tree.node.nodeType === ELEMENT_NODE_TYPE &&
- tree.node.nodeName.toLowerCase() === 'object' &&
- (tree.node.namespaceURI == null ||
- tree.node.namespaceURI === DOMNamespaces.html)
+ tree.node.nodeType === ELEMENT_NODE_TYPE &&
+ tree.node.nodeName.toLowerCase() === 'object' &&
+ (tree.node.namespaceURI == null ||
+ tree.node.namespaceURI === DOMNamespaces.html)
) {
insertTreeChildren(tree);
parentNode.insertBefore(tree.node, referenceNode);
@@ -13604,7 +13598,7 @@ module.exports = /******/ (function(modules) {
// and simply check if any non-visible tags appear in the source.
if (
WHITESPACE_TEST.test(html) ||
- html[0] === '<' && NONVISIBLE_TEST.test(html)
+ html[0] === '<' && NONVISIBLE_TEST.test(html)
) {
// Recover leading whitespace by temporarily prepending any character.
// \uFEFF has the potential advantage of being zero-width/invisible.
@@ -13704,8 +13698,8 @@ module.exports = /******/ (function(modules) {
if (
firstChild &&
- firstChild === node.lastChild &&
- firstChild.nodeType === 3
+ firstChild === node.lastChild &&
+ firstChild.nodeType === 3
) {
firstChild.nodeValue = text;
return;
@@ -14079,7 +14073,7 @@ module.exports = /******/ (function(modules) {
? invariant(
false,
"toArray: Object can't be `arguments`. Use rest params " +
- '(function(...args) {}) or Array.from() instead.',
+ '(function(...args) {}) or Array.from() instead.',
)
: invariant(false)
: void 0;
@@ -14120,23 +14114,23 @@ module.exports = /******/ (function(modules) {
* @return {boolean}
*/
function hasArrayNature(obj) {
- return // not null/false
+ return; // not null/false
!!obj &&
- // arrays are objects, NodeLists are functions in Safari
- (typeof obj == 'object' || typeof obj == 'function') &&
- // quacks like an array
- 'length' in obj &&
- // not window
- !('setInterval' in obj) &&
- // no DOM node should be considered an array-like
- // a 'select' element has 'length' and 'item' properties on IE8
- typeof obj.nodeType != 'number' &&
- // a real array
- (Array.isArray(obj) ||
- // arguments
- 'callee' in obj ||
- // HTMLCollection/NodeList
- 'item' in obj);
+ // arrays are objects, NodeLists are functions in Safari
+ (typeof obj == 'object' || typeof obj == 'function') &&
+ // quacks like an array
+ 'length' in obj &&
+ // not window
+ !('setInterval' in obj) &&
+ // no DOM node should be considered an array-like
+ // a 'select' element has 'length' and 'item' properties on IE8
+ typeof obj.nodeType != 'number' &&
+ // a real array
+ (Array.isArray(obj) ||
+ // arguments
+ 'callee' in obj ||
+ // HTMLCollection/NodeList
+ 'item' in obj);
}
/**
@@ -14503,8 +14497,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'`%s` was passed a style object that has previously been mutated. ' +
- 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' +
- 'the `render` %s. Previous style: %s. Mutated style: %s.',
+ 'Mutating `style` is deprecated. Consider cloning it beforehand. Check ' +
+ 'the `render` %s. Previous style: %s. Mutated style: %s.',
componentName,
owner
? 'of `' + ownerName + '`'
@@ -14572,26 +14566,26 @@ module.exports = /******/ (function(modules) {
? warning(
props.innerHTML == null,
'Directly setting property `innerHTML` is not permitted. ' +
- 'For more information, lookup documentation on `dangerouslySetInnerHTML`.',
+ 'For more information, lookup documentation on `dangerouslySetInnerHTML`.',
)
: void 0;
process.env.NODE_ENV !== 'production'
? warning(
props.suppressContentEditableWarning ||
- !props.contentEditable ||
- props.children == null,
+ !props.contentEditable ||
+ props.children == null,
'A component is `contentEditable` and contains `children` managed by ' +
- 'React. It is now your responsibility to guarantee that none of ' +
- 'those nodes are unexpectedly modified or duplicated. This is ' +
- 'probably not intentional.',
+ 'React. It is now your responsibility to guarantee that none of ' +
+ 'those nodes are unexpectedly modified or duplicated. This is ' +
+ 'probably not intentional.',
)
: void 0;
process.env.NODE_ENV !== 'production'
? warning(
props.onFocusIn == null && props.onFocusOut == null,
'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' +
- 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' +
- 'are not needed/supported by React.',
+ 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' +
+ 'are not needed/supported by React.',
)
: void 0;
}
@@ -14621,7 +14615,7 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
registrationName !== 'onScroll' ||
- isEventSupported('scroll', true),
+ isEventSupported('scroll', true),
"This browser doesn't support the `onScroll` event",
)
: void 0;
@@ -15021,8 +15015,7 @@ module.exports = /******/ (function(modules) {
}
if (
namespaceURI == null ||
- namespaceURI === DOMNamespaces.svg &&
- parentTag === 'foreignobject'
+ namespaceURI === DOMNamespaces.svg && parentTag === 'foreignobject'
) {
namespaceURI = DOMNamespaces.html;
}
@@ -15419,8 +15412,8 @@ module.exports = /******/ (function(modules) {
for (propKey in lastProps) {
if (
nextProps.hasOwnProperty(propKey) ||
- !lastProps.hasOwnProperty(propKey) ||
- lastProps[propKey] == null
+ !lastProps.hasOwnProperty(propKey) ||
+ lastProps[propKey] == null
) {
continue;
}
@@ -15449,7 +15442,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
DOMProperty.properties[propKey] ||
- DOMProperty.isCustomAttribute(propKey)
+ DOMProperty.isCustomAttribute(propKey)
) {
DOMPropertyOperations.deleteValueForProperty(
getNode(this),
@@ -15464,8 +15457,8 @@ module.exports = /******/ (function(modules) {
: lastProps != null ? lastProps[propKey] : undefined;
if (
!nextProps.hasOwnProperty(propKey) ||
- nextProp === lastProp ||
- nextProp == null && lastProp == null
+ nextProp === lastProp ||
+ nextProp == null && lastProp == null
) {
continue;
}
@@ -15488,7 +15481,7 @@ module.exports = /******/ (function(modules) {
for (styleName in lastProp) {
if (
lastProp.hasOwnProperty(styleName) &&
- (!nextProp || !nextProp.hasOwnProperty(styleName))
+ (!nextProp || !nextProp.hasOwnProperty(styleName))
) {
styleUpdates = styleUpdates || {};
styleUpdates[styleName] = '';
@@ -15498,7 +15491,7 @@ module.exports = /******/ (function(modules) {
for (styleName in nextProp) {
if (
nextProp.hasOwnProperty(styleName) &&
- lastProp[styleName] !== nextProp[styleName]
+ lastProp[styleName] !== nextProp[styleName]
) {
styleUpdates = styleUpdates || {};
styleUpdates[styleName] = nextProp[styleName];
@@ -15524,7 +15517,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
DOMProperty.properties[propKey] ||
- DOMProperty.isCustomAttribute(propKey)
+ DOMProperty.isCustomAttribute(propKey)
) {
var node = getNode(this);
// If we're updating to null or undefined, we should remove the property
@@ -15848,7 +15841,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
"Style property values shouldn't contain a semicolon.%s " +
- 'Try "%s: %s" instead.',
+ 'Try "%s: %s" instead.',
checkRenderMessage(owner),
name,
value.replace(badStyleValueWithSemicolonPattern, ''),
@@ -16281,8 +16274,8 @@ module.exports = /******/ (function(modules) {
var isNonNumeric = isNaN(value);
if (
isNonNumeric ||
- value === 0 ||
- isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]
+ value === 0 ||
+ isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]
) {
return '' + value; // cast to string
}
@@ -16310,8 +16303,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'a `%s` tag (owner: `%s`) was passed a numeric string value ' +
- 'for CSS property `%s` (value: `%s`) which will be treated ' +
- 'as a unitless number in a future version of React.',
+ 'for CSS property `%s` (value: `%s`) which will be treated ' +
+ 'as a unitless number in a future version of React.',
component._currentElement.type,
ownerName || 'unknown',
name,
@@ -16464,10 +16457,10 @@ module.exports = /******/ (function(modules) {
var VALID_ATTRIBUTE_NAME_REGEX = new RegExp(
'^[' +
- DOMProperty.ATTRIBUTE_NAME_START_CHAR +
- '][' +
- DOMProperty.ATTRIBUTE_NAME_CHAR +
- ']*$',
+ DOMProperty.ATTRIBUTE_NAME_START_CHAR +
+ '][' +
+ DOMProperty.ATTRIBUTE_NAME_CHAR +
+ ']*$',
);
var illegalAttributeNameCache = {};
var validatedAttributeNameCache = {};
@@ -16540,7 +16533,7 @@ module.exports = /******/ (function(modules) {
var attributeName = propertyInfo.attributeName;
if (
propertyInfo.hasBooleanValue ||
- propertyInfo.hasOverloadedBooleanValue && value === true
+ propertyInfo.hasOverloadedBooleanValue && value === true
) {
return attributeName + '=""';
}
@@ -16597,7 +16590,7 @@ module.exports = /******/ (function(modules) {
node.setAttributeNS(namespace, attributeName, '' + value);
} else if (
propertyInfo.hasBooleanValue ||
- propertyInfo.hasOverloadedBooleanValue && value === true
+ propertyInfo.hasOverloadedBooleanValue && value === true
) {
node.setAttribute(attributeName, '');
} else {
@@ -16821,7 +16814,7 @@ module.exports = /******/ (function(modules) {
),
topAnimationIteration: (
getVendorPrefixedEventName('animationiteration') ||
- 'animationiteration'
+ 'animationiteration'
),
topAnimationStart: (
getVendorPrefixedEventName('animationstart') || 'animationstart'
@@ -16982,7 +16975,7 @@ module.exports = /******/ (function(modules) {
var dependency = dependencies[i];
if (
!(isListening.hasOwnProperty(dependency) &&
- isListening[dependency])
+ isListening[dependency])
) {
if (dependency === topLevelTypes.topWheel) {
if (isEventSupported('wheel')) {
@@ -17022,7 +17015,7 @@ module.exports = /******/ (function(modules) {
}
} else if (
dependency === topLevelTypes.topFocus ||
- dependency === topLevelTypes.topBlur
+ dependency === topLevelTypes.topBlur
) {
if (isEventSupported('focus', true)) {
ReactBrowserEventEmitter.ReactEventListener.trapCapturedEvent(
@@ -17477,18 +17470,18 @@ module.exports = /******/ (function(modules) {
}
if (
props.checked !== undefined &&
- props.defaultChecked !== undefined &&
- !didWarnCheckedDefaultChecked
+ props.defaultChecked !== undefined &&
+ !didWarnCheckedDefaultChecked
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'%s contains an input of type %s with both checked and defaultChecked props. ' +
- 'Input elements must be either controlled or uncontrolled ' +
- '(specify either the checked prop, or the defaultChecked prop, but not ' +
- 'both). Decide between using a controlled or uncontrolled input ' +
- 'element and remove one of these props. More info: ' +
- 'https://fb.me/react-controlled-components',
+ 'Input elements must be either controlled or uncontrolled ' +
+ '(specify either the checked prop, or the defaultChecked prop, but not ' +
+ 'both). Decide between using a controlled or uncontrolled input ' +
+ 'element and remove one of these props. More info: ' +
+ 'https://fb.me/react-controlled-components',
owner && owner.getName() || 'A component',
props.type,
)
@@ -17497,18 +17490,18 @@ module.exports = /******/ (function(modules) {
}
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValueDefaultValue
+ props.defaultValue !== undefined &&
+ !didWarnValueDefaultValue
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'%s contains an input of type %s with both value and defaultValue props. ' +
- 'Input elements must be either controlled or uncontrolled ' +
- '(specify either the value prop, or the defaultValue prop, but not ' +
- 'both). Decide between using a controlled or uncontrolled input ' +
- 'element and remove one of these props. More info: ' +
- 'https://fb.me/react-controlled-components',
+ 'Input elements must be either controlled or uncontrolled ' +
+ '(specify either the value prop, or the defaultValue prop, but not ' +
+ 'both). Decide between using a controlled or uncontrolled input ' +
+ 'element and remove one of these props. More info: ' +
+ 'https://fb.me/react-controlled-components',
owner && owner.getName() || 'A component',
props.type,
)
@@ -17540,16 +17533,16 @@ module.exports = /******/ (function(modules) {
if (
!inst._wrapperState.controlled &&
- controlled &&
- !didWarnUncontrolledToControlled
+ controlled &&
+ !didWarnUncontrolledToControlled
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'%s is changing an uncontrolled input of type %s to be controlled. ' +
- 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
- 'Decide between using a controlled or uncontrolled input ' +
- 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
+ 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' +
+ 'Decide between using a controlled or uncontrolled input ' +
+ 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
owner && owner.getName() || 'A component',
props.type,
)
@@ -17558,16 +17551,16 @@ module.exports = /******/ (function(modules) {
}
if (
inst._wrapperState.controlled &&
- !controlled &&
- !didWarnControlledToUncontrolled
+ !controlled &&
+ !didWarnControlledToUncontrolled
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'%s is changing a controlled input of type %s to be uncontrolled. ' +
- 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
- 'Decide between using a controlled or uncontrolled input ' +
- 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
+ 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' +
+ 'Decide between using a controlled or uncontrolled input ' +
+ 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components',
owner && owner.getName() || 'A component',
props.type,
)
@@ -17791,34 +17784,34 @@ module.exports = /******/ (function(modules) {
value: function(props, propName, componentName) {
if (
!props[propName] ||
- hasReadOnlyValue[props.type] ||
- props.onChange ||
- props.readOnly ||
- props.disabled
+ hasReadOnlyValue[props.type] ||
+ props.onChange ||
+ props.readOnly ||
+ props.disabled
) {
return null;
}
return new Error(
'You provided a `value` prop to a form field without an ' +
- '`onChange` handler. This will render a read-only field. If ' +
- 'the field should be mutable use `defaultValue`. Otherwise, ' +
- 'set either `onChange` or `readOnly`.',
+ '`onChange` handler. This will render a read-only field. If ' +
+ 'the field should be mutable use `defaultValue`. Otherwise, ' +
+ 'set either `onChange` or `readOnly`.',
);
},
checked: function(props, propName, componentName) {
if (
!props[propName] ||
- props.onChange ||
- props.readOnly ||
- props.disabled
+ props.onChange ||
+ props.readOnly ||
+ props.disabled
) {
return null;
}
return new Error(
'You provided a `checked` prop to a form field without an ' +
- '`onChange` handler. This will render a read-only field. If ' +
- 'the field should be mutable use `defaultChecked`. Otherwise, ' +
- 'set either `onChange` or `readOnly`.',
+ '`onChange` handler. This will render a read-only field. If ' +
+ 'the field should be mutable use `defaultChecked`. Otherwise, ' +
+ 'set either `onChange` or `readOnly`.',
);
},
onChange: ReactPropTypes.func,
@@ -18062,10 +18055,10 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'You are manually calling a React.PropTypes validation ' +
- 'function for the `%s` prop on `%s`. This is deprecated ' +
- 'and will not work in the next major version. You may be ' +
- 'seeing this warning due to a third-party PropTypes library. ' +
- 'See https://fb.me/react-warning-dont-call-proptypes for details.',
+ 'function for the `%s` prop on `%s`. This is deprecated ' +
+ 'and will not work in the next major version. You may be ' +
+ 'seeing this warning due to a third-party PropTypes library. ' +
+ 'See https://fb.me/react-warning-dont-call-proptypes for details.',
propFullName,
componentName,
)
@@ -18079,11 +18072,11 @@ module.exports = /******/ (function(modules) {
if (isRequired) {
return new PropTypeError(
'Required ' +
- locationName +
- ' `' +
- propFullName +
- '` was not specified in ' +
- ('`' + componentName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` was not specified in ' +
+ ('`' + componentName + '`.'),
);
}
return null;
@@ -18124,16 +18117,16 @@ module.exports = /******/ (function(modules) {
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- preciseType +
- '` supplied to `' +
- componentName +
- '`, expected ') +
- ('`' + expectedType + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ preciseType +
+ '` supplied to `' +
+ componentName +
+ '`, expected ') +
+ ('`' + expectedType + '`.'),
);
}
return null;
@@ -18156,10 +18149,10 @@ module.exports = /******/ (function(modules) {
if (typeof typeChecker !== 'function') {
return new PropTypeError(
'Property `' +
- propFullName +
- '` of component `' +
- componentName +
- '` has invalid PropType notation inside arrayOf.',
+ propFullName +
+ '` of component `' +
+ componentName +
+ '` has invalid PropType notation inside arrayOf.',
);
}
var propValue = props[propName];
@@ -18168,15 +18161,15 @@ module.exports = /******/ (function(modules) {
var propType = getPropType(propValue);
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected an array.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected an array.'),
);
}
for (var i = 0; i < propValue.length; i++) {
@@ -18211,15 +18204,15 @@ module.exports = /******/ (function(modules) {
var propType = getPropType(propValue);
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected a single ReactElement.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected a single ReactElement.'),
);
}
return null;
@@ -18241,16 +18234,16 @@ module.exports = /******/ (function(modules) {
var actualClassName = getClassName(props[propName]);
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- actualClassName +
- '` supplied to `' +
- componentName +
- '`, expected ') +
- ('instance of `' + expectedClassName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ actualClassName +
+ '` supplied to `' +
+ componentName +
+ '`, expected ') +
+ ('instance of `' + expectedClassName + '`.'),
);
}
return null;
@@ -18287,17 +18280,17 @@ module.exports = /******/ (function(modules) {
var valuesString = JSON.stringify(expectedValues);
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of value `' +
- propValue +
- '` ' +
- ('supplied to `' +
- componentName +
- '`, expected one of ' +
- valuesString +
- '.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of value `' +
+ propValue +
+ '` ' +
+ ('supplied to `' +
+ componentName +
+ '`, expected one of ' +
+ valuesString +
+ '.'),
);
}
return createChainableTypeChecker(validate);
@@ -18314,10 +18307,10 @@ module.exports = /******/ (function(modules) {
if (typeof typeChecker !== 'function') {
return new PropTypeError(
'Property `' +
- propFullName +
- '` of component `' +
- componentName +
- '` has invalid PropType notation inside objectOf.',
+ propFullName +
+ '` of component `' +
+ componentName +
+ '` has invalid PropType notation inside objectOf.',
);
}
var propValue = props[propName];
@@ -18326,15 +18319,15 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type ' +
- ('`' +
- propType +
- '` supplied to `' +
- componentName +
- '`, expected an object.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type ' +
+ ('`' +
+ propType +
+ '` supplied to `' +
+ componentName +
+ '`, expected an object.'),
);
}
for (var key in propValue) {
@@ -18395,11 +18388,11 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` supplied to ' +
- ('`' + componentName + '`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` supplied to ' +
+ ('`' + componentName + '`.'),
);
}
return createChainableTypeChecker(validate);
@@ -18417,11 +18410,11 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` supplied to ' +
- ('`' + componentName + '`, expected a ReactNode.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` supplied to ' +
+ ('`' + componentName + '`, expected a ReactNode.'),
);
}
return null;
@@ -18443,13 +18436,13 @@ module.exports = /******/ (function(modules) {
var locationName = ReactPropTypeLocationNames[location];
return new PropTypeError(
'Invalid ' +
- locationName +
- ' `' +
- propFullName +
- '` of type `' +
- propType +
- '` ' +
- ('supplied to `' + componentName + '`, expected `object`.'),
+ locationName +
+ ' `' +
+ propFullName +
+ '` of type `' +
+ propType +
+ '` ' +
+ ('supplied to `' + componentName + '`, expected `object`.'),
);
}
for (var key in shapeTypes) {
@@ -18654,9 +18647,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `key` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -18677,9 +18670,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `ref` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -18811,7 +18804,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -18844,7 +18837,7 @@ module.exports = /******/ (function(modules) {
if (key || ref) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
var displayName = typeof type === 'function'
? type.displayName || type.name || 'Unknown'
@@ -18939,7 +18932,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -19196,7 +19189,7 @@ module.exports = /******/ (function(modules) {
? warning(
props.selected == null,
'Use the `defaultValue` or `value` props on <select> instead of ' +
- 'setting `selected` on <option>.',
+ 'setting `selected` on <option>.',
)
: void 0;
}
@@ -19400,10 +19393,10 @@ module.exports = /******/ (function(modules) {
// Keep both the (mapped) and old keys if they differ, just as
// traverseAllChildren used to do for objects as children
keyPrefix +
- (mappedChild.key && (!child || child.key !== mappedChild.key)
- ? escapeUserProvidedKey(mappedChild.key) + '/'
- : '') +
- childKey,
+ (mappedChild.key && (!child || child.key !== mappedChild.key)
+ ? escapeUserProvidedKey(mappedChild.key) + '/'
+ : '') +
+ childKey,
);
}
result.push(mappedChild);
@@ -19580,9 +19573,9 @@ module.exports = /******/ (function(modules) {
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -19646,8 +19639,8 @@ module.exports = /******/ (function(modules) {
? warning(
didWarnAboutMaps,
'Using Maps as children is not yet fully supported. It is an ' +
- 'experimental feature that might be removed. Convert it to a ' +
- 'sequence / iterable of keyed ReactElements instead.%s',
+ 'experimental feature that might be removed. Convert it to a ' +
+ 'sequence / iterable of keyed ReactElements instead.%s',
mapsAsChildrenAddendum,
)
: void 0;
@@ -19890,7 +19883,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'The `%s` prop supplied to <select> must be an array if ' +
- '`multiple` is true.%s',
+ '`multiple` is true.%s',
propName,
getDeclarationErrorAddendum(owner),
)
@@ -19900,7 +19893,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'The `%s` prop supplied to <select> must be a scalar ' +
- 'value if `multiple` is false.%s',
+ 'value if `multiple` is false.%s',
propName,
getDeclarationErrorAddendum(owner),
)
@@ -19984,17 +19977,17 @@ module.exports = /******/ (function(modules) {
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValueDefaultValue
+ props.defaultValue !== undefined &&
+ !didWarnValueDefaultValue
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'Select elements must be either controlled or uncontrolled ' +
- '(specify either the value prop, or the defaultValue prop, but not ' +
- 'both). Decide between using a controlled or uncontrolled select ' +
- 'element and remove one of these props. More info: ' +
- 'https://fb.me/react-controlled-components',
+ '(specify either the value prop, or the defaultValue prop, but not ' +
+ 'both). Decide between using a controlled or uncontrolled select ' +
+ 'element and remove one of these props. More info: ' +
+ 'https://fb.me/react-controlled-components',
)
: void 0;
didWarnValueDefaultValue = true;
@@ -20147,17 +20140,17 @@ module.exports = /******/ (function(modules) {
}
if (
props.value !== undefined &&
- props.defaultValue !== undefined &&
- !didWarnValDefaultVal
+ props.defaultValue !== undefined &&
+ !didWarnValDefaultVal
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'Textarea elements must be either controlled or uncontrolled ' +
- '(specify either the value prop, or the defaultValue prop, but not ' +
- 'both). Decide between using a controlled or uncontrolled textarea ' +
- 'and remove one of these props. More info: ' +
- 'https://fb.me/react-controlled-components',
+ '(specify either the value prop, or the defaultValue prop, but not ' +
+ 'both). Decide between using a controlled or uncontrolled textarea ' +
+ 'and remove one of these props. More info: ' +
+ 'https://fb.me/react-controlled-components',
)
: void 0;
didWarnValDefaultVal = true;
@@ -20178,7 +20171,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'Use the `defaultValue` or `value` props instead of setting ' +
- 'children on <textarea>.',
+ 'children on <textarea>.',
)
: void 0;
}
@@ -20946,8 +20939,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -20969,8 +20962,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'flattenChildren(...): Encountered two children with the same key, ' +
- '`%s`. Child keys must be unique; when two children share a key, only ' +
- 'the first child will be used.%s',
+ '`%s`. Child keys must be unique; when two children share a key, only ' +
+ 'the first child will be used.%s',
KeyEscapeUtils.unescape(name),
ReactComponentTreeHook.getStackAddendumByID(selfDebugID),
)
@@ -21064,7 +21057,7 @@ module.exports = /******/ (function(modules) {
var nextElement = nextChildren[name];
if (
prevChild != null &&
- shouldUpdateReactComponent(prevElement, nextElement)
+ shouldUpdateReactComponent(prevElement, nextElement)
) {
ReactReconciler.receiveComponent(
prevChild,
@@ -21101,7 +21094,7 @@ module.exports = /******/ (function(modules) {
for (name in prevChildren) {
if (
prevChildren.hasOwnProperty(name) &&
- !(nextChildren && nextChildren.hasOwnProperty(name))
+ !(nextChildren && nextChildren.hasOwnProperty(name))
) {
prevChild = prevChildren[name];
removedNodes[name] = ReactReconciler.getHostNode(prevChild);
@@ -21258,9 +21251,9 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
typeof instance.mountComponent === 'function' &&
- typeof instance.receiveComponent === 'function' &&
- typeof instance.getHostNode === 'function' &&
- typeof instance.unmountComponent === 'function',
+ typeof instance.receiveComponent === 'function' &&
+ typeof instance.getHostNode === 'function' &&
+ typeof instance.unmountComponent === 'function',
'Only React Components can be mounted.',
)
: void 0;
@@ -21344,10 +21337,10 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
element === null ||
- element === false ||
- ReactElement.isValidElement(element),
+ element === false ||
+ ReactElement.isValidElement(element),
'%s(...): A valid React element (or null) must be returned. You may have ' +
- 'returned undefined, an array or some other invalid object.',
+ 'returned undefined, an array or some other invalid object.',
Component.displayName || Component.name || 'Component',
)
: void 0;
@@ -21547,7 +21540,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s(...): No `render` method found on the returned component ' +
- 'instance: you may have forgotten to define `render`.',
+ 'instance: you may have forgotten to define `render`.',
Component.displayName || Component.name || 'Component',
)
: void 0;
@@ -21562,7 +21555,7 @@ module.exports = /******/ (function(modules) {
? warning(
inst.props === undefined || !propsMutated,
'%s(...): When calling super() in `%s`, make sure to pass ' +
- "up the same props that your component's constructor was passed.",
+ "up the same props that your component's constructor was passed.",
componentName,
componentName,
)
@@ -21588,20 +21581,20 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
!inst.getInitialState ||
- inst.getInitialState.isReactClassApproved,
+ inst.getInitialState.isReactClassApproved,
'getInitialState was defined on %s, a plain JavaScript class. ' +
- 'This is only supported for classes created using React.createClass. ' +
- 'Did you mean to define a state property instead?',
+ 'This is only supported for classes created using React.createClass. ' +
+ 'Did you mean to define a state property instead?',
this.getName() || 'a component',
)
: void 0;
process.env.NODE_ENV !== 'production'
? warning(
!inst.getDefaultProps ||
- inst.getDefaultProps.isReactClassApproved,
+ inst.getDefaultProps.isReactClassApproved,
'getDefaultProps was defined on %s, a plain JavaScript class. ' +
- 'This is only supported for classes created using React.createClass. ' +
- 'Use a static property to define defaultProps instead.',
+ 'This is only supported for classes created using React.createClass. ' +
+ 'Use a static property to define defaultProps instead.',
this.getName() || 'a component',
)
: void 0;
@@ -21609,7 +21602,7 @@ module.exports = /******/ (function(modules) {
? warning(
!inst.propTypes,
'propTypes was defined as an instance property on %s. Use a static ' +
- 'property to define propTypes instead.',
+ 'property to define propTypes instead.',
this.getName() || 'a component',
)
: void 0;
@@ -21617,7 +21610,7 @@ module.exports = /******/ (function(modules) {
? warning(
!inst.contextTypes,
'contextTypes was defined as an instance property on %s. Use a ' +
- 'static property to define contextTypes instead.',
+ 'static property to define contextTypes instead.',
this.getName() || 'a component',
)
: void 0;
@@ -21625,9 +21618,9 @@ module.exports = /******/ (function(modules) {
? warning(
typeof inst.componentShouldUpdate !== 'function',
'%s has a method called ' +
- 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
- 'The name is phrased as a question because the function is ' +
- 'expected to return a value.',
+ 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
+ 'The name is phrased as a question because the function is ' +
+ 'expected to return a value.',
this.getName() || 'A component',
)
: void 0;
@@ -21635,8 +21628,8 @@ module.exports = /******/ (function(modules) {
? warning(
typeof inst.componentDidUnmount !== 'function',
'%s has a method called ' +
- 'componentDidUnmount(). But there is no such lifecycle method. ' +
- 'Did you mean componentWillUnmount()?',
+ 'componentDidUnmount(). But there is no such lifecycle method. ' +
+ 'Did you mean componentWillUnmount()?',
this.getName() || 'A component',
)
: void 0;
@@ -21644,7 +21637,7 @@ module.exports = /******/ (function(modules) {
? warning(
typeof inst.componentWillRecieveProps !== 'function',
'%s has a method called ' +
- 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
+ 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
this.getName() || 'A component',
)
: void 0;
@@ -22231,7 +22224,7 @@ module.exports = /******/ (function(modules) {
? warning(
shouldUpdate !== undefined,
'%s.shouldComponentUpdate(): Returned undefined instead of a ' +
- 'boolean value. Make sure to return true or false.',
+ 'boolean value. Make sure to return true or false.',
this.getName() || 'ReactCompositeComponent',
)
: void 0;
@@ -22498,7 +22491,7 @@ module.exports = /******/ (function(modules) {
var renderedComponent;
if (
process.env.NODE_ENV !== 'production' ||
- this._compositeType !== CompositeTypes.StatelessFunctional
+ this._compositeType !== CompositeTypes.StatelessFunctional
) {
ReactCurrentOwner.current = this;
try {
@@ -22553,11 +22546,11 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
publicComponentInstance != null ||
- component._compositeType !==
- CompositeTypes.StatelessFunctional,
+ component._compositeType !==
+ CompositeTypes.StatelessFunctional,
'Stateless function components cannot be given refs ' +
- '(See ref "%s" in %s created by %s). ' +
- 'Attempts to access this ref will fail.',
+ '(See ref "%s" in %s created by %s). ' +
+ 'Attempts to access this ref will fail.',
ref,
componentName,
this.getName(),
@@ -22693,8 +22686,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -22766,10 +22759,10 @@ module.exports = /******/ (function(modules) {
? warning(
!error || error instanceof Error,
'%s: type specification of %s `%s` is invalid; the type checker ' +
- 'function must return `null` or an `Error` but returned a %s. ' +
- 'You may have forgotten to pass an argument to the type checker ' +
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
- 'shape all require an argument).',
+ 'function must return `null` or an `Error` but returned a %s. ' +
+ 'You may have forgotten to pass an argument to the type checker ' +
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
+ 'shape all require an argument).',
componentName || 'React class',
ReactPropTypeLocationNames[location],
typeSpecName,
@@ -22889,9 +22882,9 @@ module.exports = /******/ (function(modules) {
if (
typeof objA !== 'object' ||
- objA === null ||
- typeof objB !== 'object' ||
- objB === null
+ objA === null ||
+ typeof objB !== 'object' ||
+ objB === null
) {
return false;
}
@@ -22907,7 +22900,7 @@ module.exports = /******/ (function(modules) {
for (var i = 0; i < keysA.length; i++) {
if (
!hasOwnProperty.call(objB, keysA[i]) ||
- !is(objA[keysA[i]], objB[keysA[i]])
+ !is(objA[keysA[i]], objB[keysA[i]])
) {
return false;
}
@@ -23113,8 +23106,8 @@ module.exports = /******/ (function(modules) {
if (
typeof process !== 'undefined' &&
- process.env &&
- process.env.NODE_ENV === 'test'
+ process.env &&
+ process.env.NODE_ENV === 'test'
) {
// Temporary hack.
// Inline requires don't work well with Jest:
@@ -23149,8 +23142,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'flattenChildren(...): Encountered two children with the same key, ' +
- '`%s`. Child keys must be unique; when two children share a key, only ' +
- 'the first child will be used.%s',
+ '`%s`. Child keys must be unique; when two children share a key, only ' +
+ 'the first child will be used.%s',
KeyEscapeUtils.unescape(name),
ReactComponentTreeHook.getStackAddendumByID(selfDebugID),
)
@@ -23322,12 +23315,12 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s(...): Can only update a mounting component. ' +
- 'This usually means you called %s() outside componentWillMount() on the server. ' +
- 'This is a no-op. Please check the code for the %s component.',
+ 'This usually means you called %s() outside componentWillMount() on the server. ' +
+ 'This is a no-op. Please check the code for the %s component.',
callerName,
callerName,
constructor && (constructor.displayName || constructor.name) ||
- 'ReactClass',
+ 'ReactClass',
)
: void 0;
}
@@ -23516,8 +23509,8 @@ module.exports = /******/ (function(modules) {
? warning(
!callerName,
'%s(...): Can only update a mounted or mounting component. ' +
- 'This usually means you called %s() on an unmounted component. ' +
- 'This is a no-op. Please check the code for the %s component.',
+ 'This usually means you called %s() on an unmounted component. ' +
+ 'This is a no-op. Please check the code for the %s component.',
callerName,
callerName,
ctor && (ctor.displayName || ctor.name) || 'ReactClass',
@@ -23532,10 +23525,10 @@ module.exports = /******/ (function(modules) {
? warning(
ReactCurrentOwner.current == null,
'%s(...): Cannot update during an existing state transition (such as ' +
- "within `render` or another component's constructor). Render methods " +
- 'should be a pure function of props and state; constructor ' +
- 'side-effects are an anti-pattern, but can be moved to ' +
- '`componentWillMount`.',
+ "within `render` or another component's constructor). Render methods " +
+ 'should be a pure function of props and state; constructor ' +
+ 'side-effects are an anti-pattern, but can be moved to ' +
+ '`componentWillMount`.',
callerName,
)
: void 0;
@@ -23564,10 +23557,10 @@ module.exports = /******/ (function(modules) {
? warning(
owner._warnedAboutRefsInRender,
'%s is accessing isMounted inside its render() function. ' +
- 'render() should be a pure function of props and state. It should ' +
- 'never access something that requires stale data from the previous ' +
- 'render, such as refs. Move this logic to componentDidMount and ' +
- 'componentDidUpdate instead.',
+ 'render() should be a pure function of props and state. It should ' +
+ 'never access something that requires stale data from the previous ' +
+ 'render, such as refs. Move this logic to componentDidMount and ' +
+ 'componentDidUpdate instead.',
owner.getName() || 'A component',
)
: void 0;
@@ -23697,7 +23690,7 @@ module.exports = /******/ (function(modules) {
? warning(
partialState != null,
'setState(...): You passed an undefined or null state object; ' +
- 'instead, use forceUpdate().',
+ 'instead, use forceUpdate().',
)
: void 0;
}
@@ -23931,9 +23924,9 @@ module.exports = /******/ (function(modules) {
// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
if (
specialTags.indexOf(tag) !== -1 &&
- tag !== 'address' &&
- tag !== 'div' &&
- tag !== 'p'
+ tag !== 'address' &&
+ tag !== 'div' &&
+ tag !== 'p'
) {
ancestorInfo.listItemTagAutoclosing = null;
ancestorInfo.dlItemTagAutoclosing = null;
@@ -24288,7 +24281,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s ' +
- 'See %s.%s',
+ 'See %s.%s',
tagDisplayName,
ancestorTag,
whitespaceInfo,
@@ -24301,7 +24294,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'validateDOMNesting(...): %s cannot appear as a descendant of ' +
- '<%s>. See %s.',
+ '<%s>. See %s.',
tagDisplayName,
ancestorTag,
ownerInfo,
@@ -25069,8 +25062,8 @@ module.exports = /******/ (function(modules) {
if (process.env.NODE_ENV !== 'production') {
console.error(
'Attempted to listen to events during the capture phase on a ' +
- 'browser that does not support the capture phase. Your application ' +
- 'will not receive some events.',
+ 'browser that does not support the capture phase. Your application ' +
+ 'will not receive some events.',
);
}
return {
@@ -25540,7 +25533,7 @@ module.exports = /******/ (function(modules) {
? warning(
typeof typeDef[propName] === 'function',
'%s: %s type `%s` is invalid; it must be a function, usually from ' +
- 'React.PropTypes.',
+ 'React.PropTypes.',
Constructor.displayName || 'ReactClass',
ReactPropTypeLocationNames[location],
propName,
@@ -25597,9 +25590,9 @@ module.exports = /******/ (function(modules) {
? warning(
isMixinValid,
"%s: You're attempting to include a mixin that is either null " +
- 'or not an object. Check the mixins included by the component, ' +
- 'as well as any mixins they include themselves. ' +
- 'Expected object but got %s.',
+ 'or not an object. Check the mixins included by the component, ' +
+ 'as well as any mixins they include themselves. ' +
+ 'Expected object but got %s.',
Constructor.displayName || 'ReactClass',
spec === null ? null : typeofSpec,
)
@@ -25852,7 +25845,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'bind(): React component methods may only be bound to the ' +
- 'component instance. See %s',
+ 'component instance. See %s',
componentName,
)
: void 0;
@@ -25861,8 +25854,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'bind(): You are binding a component method to the component. ' +
- 'React does this for you automatically in a high-performance ' +
- 'way, so you can safely remove this call. See %s',
+ 'React does this for you automatically in a high-performance ' +
+ 'way, so you can safely remove this call. See %s',
componentName,
)
: void 0;
@@ -25949,7 +25942,7 @@ module.exports = /******/ (function(modules) {
? warning(
this instanceof Constructor,
'Something is calling a React component directly. Use a factory or ' +
- 'JSX instead. See: https://fb.me/react-legacyfactory',
+ 'JSX instead. See: https://fb.me/react-legacyfactory',
)
: void 0;
}
@@ -25976,7 +25969,7 @@ module.exports = /******/ (function(modules) {
// We allow auto-mocks to proceed as if they're returning null.
if (
initialState === undefined &&
- this.getInitialState._isMockFunction
+ this.getInitialState._isMockFunction
) {
// This is probably bad practice. Consider warning here and
// deprecating this convenience.
@@ -26038,9 +26031,9 @@ module.exports = /******/ (function(modules) {
? warning(
!Constructor.prototype.componentShouldUpdate,
'%s has a method called ' +
- 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
- 'The name is phrased as a question because the function is ' +
- 'expected to return a value.',
+ 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +
+ 'The name is phrased as a question because the function is ' +
+ 'expected to return a value.',
spec.displayName || 'A component',
)
: void 0;
@@ -26048,7 +26041,7 @@ module.exports = /******/ (function(modules) {
? warning(
!Constructor.prototype.componentWillRecieveProps,
'%s has a method called ' +
- 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
+ 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
spec.displayName || 'A component',
)
: void 0;
@@ -26184,12 +26177,12 @@ module.exports = /******/ (function(modules) {
isMounted: [
'isMounted',
'Instead, make sure to clean up subscriptions and pending requests in ' +
- 'componentWillUnmount to prevent memory leaks.',
+ 'componentWillUnmount to prevent memory leaks.',
],
replaceState: [
'replaceState',
'Refactor your code to use setState instead (see ' +
- 'https://github.com/facebook/react/issues/3236).',
+ 'https://github.com/facebook/react/issues/3236).',
],
};
var defineDeprecationWarning = function(methodName, info) {
@@ -26243,12 +26236,12 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s(...): Can only update a mounted or mounting component. ' +
- 'This usually means you called %s() on an unmounted component. ' +
- 'This is a no-op. Please check the code for the %s component.',
+ 'This usually means you called %s() on an unmounted component. ' +
+ 'This is a no-op. Please check the code for the %s component.',
callerName,
callerName,
constructor && (constructor.displayName || constructor.name) ||
- 'ReactClass',
+ 'ReactClass',
)
: void 0;
}
@@ -26565,7 +26558,7 @@ module.exports = /******/ (function(modules) {
var priorSelectionRange = priorSelectionInformation.selectionRange;
if (
curFocusedElem !== priorFocusedElem &&
- isInDocument(priorFocusedElem)
+ isInDocument(priorFocusedElem)
) {
if (
ReactInputSelection.hasSelectionCapabilities(priorFocusedElem)
@@ -26595,8 +26588,8 @@ module.exports = /******/ (function(modules) {
};
} else if (
document.selection &&
- input.nodeName &&
- input.nodeName.toLowerCase() === 'input'
+ input.nodeName &&
+ input.nodeName.toLowerCase() === 'input'
) {
// IE8 input.
var range = document.selection.createRange();
@@ -26633,8 +26626,8 @@ module.exports = /******/ (function(modules) {
input.selectionEnd = Math.min(end, input.value.length);
} else if (
document.selection &&
- input.nodeName &&
- input.nodeName.toLowerCase() === 'input'
+ input.nodeName &&
+ input.nodeName.toLowerCase() === 'input'
) {
var range = input.createTextRange();
range.collapse(true);
@@ -27483,7 +27476,7 @@ module.exports = /******/ (function(modules) {
function getSelection(node) {
if (
'selectionStart' in node &&
- ReactInputSelection.hasSelectionCapabilities(node)
+ ReactInputSelection.hasSelectionCapabilities(node)
) {
return {
start: node.selectionStart,
@@ -27521,8 +27514,8 @@ module.exports = /******/ (function(modules) {
// won't dispatch.
if (
mouseDown ||
- activeElement == null ||
- activeElement !== getActiveElement()
+ activeElement == null ||
+ activeElement !== getActiveElement()
) {
return null;
}
@@ -27585,7 +27578,7 @@ module.exports = /******/ (function(modules) {
case topLevelTypes.topFocus:
if (
isTextInputElement(targetNode) ||
- targetNode.contentEditable === 'true'
+ targetNode.contentEditable === 'true'
) {
activeElement = targetNode;
activeElementInst = targetInst;
@@ -28925,18 +28918,15 @@ module.exports = /******/ (function(modules) {
var WheelEventInterface = {
deltaX: function(event) {
return 'deltaX' in event
- ? event.deltaX
- : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
- 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
+ ? event.deltaX // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
+ : 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
},
deltaY: function(event) {
return 'deltaY' in event
- ? event.deltaY
- : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
- 'wheelDeltaY' in event
- ? -event.wheelDeltaY
- : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
- 'wheelDelta' in event ? -event.wheelDelta : 0;
+ ? event.deltaY // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
+ : 'wheelDeltaY' in event
+ ? -event.wheelDeltaY // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
+ : 'wheelDelta' in event ? -event.wheelDelta : 0;
},
deltaZ: null,
// Browsers without "deltaMode" is reporting in raw wheel delta where one
@@ -29342,12 +29332,12 @@ module.exports = /******/ (function(modules) {
? warning(
ReactCurrentOwner.current == null,
'_renderNewRootComponent(): Render methods should be a pure function ' +
- 'of props and state; triggering nested component updates from ' +
- 'render is not allowed. If necessary, trigger nested updates in ' +
- 'componentDidUpdate. Check the render method of %s.',
+ 'of props and state; triggering nested component updates from ' +
+ 'render is not allowed. If necessary, trigger nested updates in ' +
+ 'componentDidUpdate. Check the render method of %s.',
ReactCurrentOwner.current &&
ReactCurrentOwner.current.getName() ||
- 'ReactCompositeComponent',
+ 'ReactCompositeComponent',
)
: void 0;
@@ -29431,9 +29421,8 @@ module.exports = /******/ (function(modules) {
"React.createElement('div') or <div />."
: typeof nextElement === 'function'
? ' Instead of passing a class like Foo, pass ' +
- 'React.createElement(Foo) or <Foo />.'
- : // Check if it quacks like an element
- nextElement != null &&
+ 'React.createElement(Foo) or <Foo />.' // Check if it quacks like an element
+ : nextElement != null &&
nextElement.props !== undefined
? ' This may be caused by unintentionally loading two independent ' +
'copies of React.'
@@ -29458,13 +29447,13 @@ module.exports = /******/ (function(modules) {
process.env.NODE_ENV !== 'production'
? warning(
!container ||
- !container.tagName ||
- container.tagName.toUpperCase() !== 'BODY',
+ !container.tagName ||
+ container.tagName.toUpperCase() !== 'BODY',
'render(): Rendering components directly into document.body is ' +
- 'discouraged, since its children are often manipulated by third-party ' +
- 'scripts and browser extensions. This may lead to subtle ' +
- 'reconciliation issues. Try rendering into a container element created ' +
- 'for your app.',
+ 'discouraged, since its children are often manipulated by third-party ' +
+ 'scripts and browser extensions. This may lead to subtle ' +
+ 'reconciliation issues. Try rendering into a container element created ' +
+ 'for your app.',
)
: void 0;
@@ -29520,9 +29509,9 @@ module.exports = /******/ (function(modules) {
? warning(
!containerHasNonRootReactChild,
'render(...): Replacing React-rendered children with a new root ' +
- 'component. If you intended to update the children of this node, ' +
- 'you should instead have the existing children update their state ' +
- 'and render the new components instead of calling ReactDOM.render.',
+ 'component. If you intended to update the children of this node, ' +
+ 'you should instead have the existing children update their state ' +
+ 'and render the new components instead of calling ReactDOM.render.',
)
: void 0;
@@ -29534,8 +29523,8 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'render(): Target node has markup rendered by React, but there ' +
- 'are unrelated nodes as well. This is most commonly caused by ' +
- 'white-space inserted around server-rendered markup.',
+ 'are unrelated nodes as well. This is most commonly caused by ' +
+ 'white-space inserted around server-rendered markup.',
)
: void 0;
break;
@@ -29597,12 +29586,12 @@ module.exports = /******/ (function(modules) {
? warning(
ReactCurrentOwner.current == null,
'unmountComponentAtNode(): Render methods should be a pure function ' +
- 'of props and state; triggering nested component updates from render ' +
- 'is not allowed. If necessary, trigger nested updates in ' +
- 'componentDidUpdate. Check the render method of %s.',
+ 'of props and state; triggering nested component updates from render ' +
+ 'is not allowed. If necessary, trigger nested updates in ' +
+ 'componentDidUpdate. Check the render method of %s.',
ReactCurrentOwner.current &&
ReactCurrentOwner.current.getName() ||
- 'ReactCompositeComponent',
+ 'ReactCompositeComponent',
)
: void 0;
@@ -29620,7 +29609,7 @@ module.exports = /******/ (function(modules) {
? warning(
!nodeIsRenderedByOtherInstance(container),
"unmountComponentAtNode(): The node you're attempting to unmount " +
- 'was rendered by another copy of React.',
+ 'was rendered by another copy of React.',
)
: void 0;
}
@@ -29640,7 +29629,7 @@ module.exports = /******/ (function(modules) {
? warning(
!containerHasNonRootReactChild,
"unmountComponentAtNode(): The node you're attempting to unmount " +
- 'was rendered by React and is not a top-level container. %s',
+ 'was rendered by React and is not a top-level container. %s',
isContainerReactRoot
? 'You may have accidentally passed in a React root node instead ' +
'of its container.'
@@ -29740,13 +29729,13 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'React attempted to reuse markup in a container but the ' +
- 'checksum was invalid. This generally means that you are ' +
- 'using server rendering and the markup generated on the ' +
- 'server was not what the client was expecting. React injected ' +
- 'new markup to compensate which works but you have lost many ' +
- 'of the benefits of server rendering. Instead, figure out ' +
- 'why the markup being generated is different on the client ' +
- 'or server:\n%s',
+ 'checksum was invalid. This generally means that you are ' +
+ 'using server rendering and the markup generated on the ' +
+ 'server was not what the client was expecting. React injected ' +
+ 'new markup to compensate which works but you have lost many ' +
+ 'of the benefits of server rendering. Instead, figure out ' +
+ 'why the markup being generated is different on the client ' +
+ 'or server:\n%s',
difference,
)
: void 0;
@@ -29892,10 +29881,10 @@ module.exports = /******/ (function(modules) {
return markup.replace(
TAG_END,
' ' +
- ReactMarkupChecksum.CHECKSUM_ATTR_NAME +
- '="' +
- checksum +
- '"$&',
+ ReactMarkupChecksum.CHECKSUM_ATTR_NAME +
+ '="' +
+ checksum +
+ '"$&',
);
}
},
@@ -30027,10 +30016,10 @@ module.exports = /******/ (function(modules) {
? warning(
owner._warnedAboutRefsInRender,
'%s is accessing findDOMNode inside its render(). ' +
- 'render() should be a pure function of props and state. It should ' +
- 'never access something that requires stale data from the previous ' +
- 'render, such as refs. Move this logic to componentDidMount and ' +
- 'componentDidUpdate instead.',
+ 'render() should be a pure function of props and state. It should ' +
+ 'never access something that requires stale data from the previous ' +
+ 'render, such as refs. Move this logic to componentDidMount and ' +
+ 'componentDidUpdate instead.',
owner.getName() || 'A component',
)
: void 0;
@@ -30171,13 +30160,13 @@ module.exports = /******/ (function(modules) {
var validateProperty = function(tagName, name, debugID) {
if (
DOMProperty.properties.hasOwnProperty(name) ||
- DOMProperty.isCustomAttribute(name)
+ DOMProperty.isCustomAttribute(name)
) {
return true;
}
if (
reactProps.hasOwnProperty(name) && reactProps[name] ||
- warnedProperties.hasOwnProperty(name) && warnedProperties[name]
+ warnedProperties.hasOwnProperty(name) && warnedProperties[name]
) {
return true;
}
@@ -30254,7 +30243,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'Unknown prop %s on <%s> tag. Remove this prop from the element. ' +
- 'For details, see https://fb.me/react-unknown-prop%s',
+ 'For details, see https://fb.me/react-unknown-prop%s',
unknownPropString,
element.type,
ReactComponentTreeHook.getStackAddendumByID(debugID),
@@ -30265,7 +30254,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'Unknown props %s on <%s> tag. Remove these props from the element. ' +
- 'For details, see https://fb.me/react-unknown-prop%s',
+ 'For details, see https://fb.me/react-unknown-prop%s',
unknownPropString,
element.type,
ReactComponentTreeHook.getStackAddendumByID(debugID),
@@ -30323,22 +30312,22 @@ module.exports = /******/ (function(modules) {
}
if (
element.type !== 'input' &&
- element.type !== 'textarea' &&
- element.type !== 'select'
+ element.type !== 'textarea' &&
+ element.type !== 'select'
) {
return;
}
if (
element.props != null &&
- element.props.value === null &&
- !didWarnValueNull
+ element.props.value === null &&
+ !didWarnValueNull
) {
process.env.NODE_ENV !== 'production'
? warning(
false,
'`value` prop on `%s` should not be null. ' +
- 'Consider using the empty string to clear the component or `undefined` ' +
- 'for uncontrolled components.%s',
+ 'Consider using the empty string to clear the component or `undefined` ' +
+ 'for uncontrolled components.%s',
element.type,
ReactComponentTreeHook.getStackAddendumByID(debugID),
)
@@ -30412,7 +30401,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -30441,7 +30430,7 @@ module.exports = /******/ (function(modules) {
var _this = _possibleConstructorReturn(
this,
(HighlightHover.__proto__ ||
- Object.getPrototypeOf(HighlightHover)).call(this, props),
+ Object.getPrototypeOf(HighlightHover)).call(this, props),
);
_this.state = {hover: false};
@@ -30606,7 +30595,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -30883,7 +30872,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -31021,27 +31010,27 @@ module.exports = /******/ (function(modules) {
hint: '($r in the console)',
},
key &&
- React.createElement(
- DetailPaneSection,
- {
- title: 'Key',
- key: this.props.id + '-key',
- },
- React.createElement(PropVal, {
- val: key,
- }),
- ),
+ React.createElement(
+ DetailPaneSection,
+ {
+ title: 'Key',
+ key: this.props.id + '-key',
+ },
+ React.createElement(PropVal, {
+ val: key,
+ }),
+ ),
ref &&
- React.createElement(
- DetailPaneSection,
- {
- title: 'Ref',
- key: this.props.id + '-ref',
- },
- React.createElement(PropVal, {
- val: ref,
- }),
- ),
+ React.createElement(
+ DetailPaneSection,
+ {
+ title: 'Ref',
+ key: this.props.id + '-ref',
+ },
+ React.createElement(PropVal, {
+ val: ref,
+ }),
+ ),
editTextContent,
React.createElement(
DetailPaneSection,
@@ -31059,33 +31048,33 @@ module.exports = /******/ (function(modules) {
}),
),
state &&
- React.createElement(
- DetailPaneSection,
- {title: 'State'},
- React.createElement(DataView, {
- data: state,
- path: ['state'],
- inspect: this.props.inspect,
- showMenu: this.props.showMenu,
- key: this.props.id + '-state',
- }),
- ),
+ React.createElement(
+ DetailPaneSection,
+ {title: 'State'},
+ React.createElement(DataView, {
+ data: state,
+ path: ['state'],
+ inspect: this.props.inspect,
+ showMenu: this.props.showMenu,
+ key: this.props.id + '-state',
+ }),
+ ),
context &&
- React.createElement(
- DetailPaneSection,
- {title: 'Context'},
- React.createElement(DataView, {
- data: context,
- path: ['context'],
- inspect: this.props.inspect,
- showMenu: this.props.showMenu,
- key: this.props.id + '-context',
- }),
- ),
- this.props.extraPanes &&
- this.props.extraPanes.map(function(fn) {
- return fn && fn(_this3.props.node, _this3.props.id);
+ React.createElement(
+ DetailPaneSection,
+ {title: 'Context'},
+ React.createElement(DataView, {
+ data: context,
+ path: ['context'],
+ inspect: this.props.inspect,
+ showMenu: this.props.showMenu,
+ key: this.props.id + '-context',
}),
+ ),
+ this.props.extraPanes &&
+ this.props.extraPanes.map(function(fn) {
+ return fn && fn(_this3.props.node, _this3.props.id);
+ }),
React.createElement('div', {style: {flex: 1}}),
this.renderSource(),
);
@@ -31215,7 +31204,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -31372,7 +31361,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -31442,16 +31431,16 @@ module.exports = /******/ (function(modules) {
'ul',
{style: styles.container},
data[consts.proto] &&
- React.createElement(DataItem, {
- name: '__proto__',
- path: path.concat(['__proto__']),
- key: '__proto__',
- startOpen: this.props.startOpen,
- inspect: this.props.inspect,
- showMenu: this.props.showMenu,
- readOnly: this.props.readOnly,
- value: this.props.data[consts.proto],
- }),
+ React.createElement(DataItem, {
+ name: '__proto__',
+ path: path.concat(['__proto__']),
+ key: '__proto__',
+ startOpen: this.props.startOpen,
+ inspect: this.props.inspect,
+ showMenu: this.props.showMenu,
+ readOnly: this.props.readOnly,
+ value: this.props.data[consts.proto],
+ }),
names.map(function(name, i) {
return React.createElement(DataItem, {
name: name,
@@ -31496,8 +31485,8 @@ module.exports = /******/ (function(modules) {
value: function componentDidMount() {
if (
this.state.open &&
- this.props.value &&
- this.props.value[consts.inspected] === false
+ this.props.value &&
+ this.props.value[consts.inspected] === false
) {
this.inspect();
}
@@ -31508,8 +31497,8 @@ module.exports = /******/ (function(modules) {
value: function componentWillReceiveProps(nextProps) {
if (
this.state.open &&
- nextProps.value &&
- nextProps.value[consts.inspected] === false
+ nextProps.value &&
+ nextProps.value[consts.inspected] === false
) {
this.inspect();
}
@@ -31558,9 +31547,9 @@ module.exports = /******/ (function(modules) {
var preview;
if (
otype === 'number' ||
- otype === 'string' ||
- data == null /* null or undefined */ ||
- otype === 'boolean'
+ otype === 'string' ||
+ data == null /* null or undefined */ ||
+ otype === 'boolean'
) {
preview = React.createElement(Simple, {
readOnly: this.props.readOnly,
@@ -31791,7 +31780,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -32197,12 +32186,12 @@ module.exports = /******/ (function(modules) {
hasInstance: d(
'',
NativeSymbol && NativeSymbol.hasInstance ||
- SymbolPolyfill('hasInstance'),
+ SymbolPolyfill('hasInstance'),
),
isConcatSpreadable: d(
'',
NativeSymbol && NativeSymbol.isConcatSpreadable ||
- SymbolPolyfill('isConcatSpreadable'),
+ SymbolPolyfill('isConcatSpreadable'),
),
iterator: d(
'',
@@ -32231,17 +32220,17 @@ module.exports = /******/ (function(modules) {
toPrimitive: d(
'',
NativeSymbol && NativeSymbol.toPrimitive ||
- SymbolPolyfill('toPrimitive'),
+ SymbolPolyfill('toPrimitive'),
),
toStringTag: d(
'',
NativeSymbol && NativeSymbol.toStringTag ||
- SymbolPolyfill('toStringTag'),
+ SymbolPolyfill('toStringTag'),
),
unscopables: d(
'',
NativeSymbol && NativeSymbol.unscopables ||
- SymbolPolyfill('unscopables'),
+ SymbolPolyfill('unscopables'),
),
}); // Internal tweaks for real symbol producer
defineProperties(HiddenSymbol.prototype, {
@@ -32364,9 +32353,15 @@ module.exports = /******/ (function(modules) {
obj = {
foo: 'raz',
};
- assign(obj, {bar: 'dwa'}, {
- trzy: 'trzy',
- });
+ assign(
+ obj,
+ {
+ bar: 'dwa',
+ },
+ {
+ trzy: 'trzy',
+ },
+ );
return obj.foo + obj.bar + obj.trzy === 'razdwatrzy';
}; /***/
} /* 221 */ /***/,
@@ -32375,7 +32370,7 @@ module.exports = /******/ (function(modules) {
var keys = __webpack_require__(222),
value = __webpack_require__(225),
max = Math.max;
- module.exports = function(dest, src /*, …srcn*/) {
+ module.exports = function(dest, src) /*, …srcn*/ {
var error, i, l = max(arguments.length, 2), assign;
dest = Object(value(dest));
assign = function(key) {
@@ -32391,13 +32386,15 @@ module.exports = /******/ (function(modules) {
}
if (error !== undefined) throw error;
return dest;
- }; /***/
+ };
+ /***/
} /* 222 */ /***/,
function(module, exports, __webpack_require__) {
'use strict';
module.exports = __webpack_require__(223)()
? Object.keys
- : __webpack_require__(224); /***/
+ : __webpack_require__(224);
+ /***/
} /* 223 */ /***/,
function(module, exports) {
'use strict';
@@ -32408,21 +32405,24 @@ module.exports = /******/ (function(modules) {
} catch (e) {
return false;
}
- }; /***/
+ };
+ /***/
} /* 224 */ /***/,
function(module, exports) {
'use strict';
var keys = Object.keys;
module.exports = function(object) {
return keys(object == null ? object : Object(object));
- }; /***/
+ };
+ /***/
} /* 225 */ /***/,
function(module, exports) {
'use strict';
module.exports = function(value) {
if (value == null) throw new TypeError('Cannot use null or undefined');
return value;
- }; /***/
+ };
+ /***/
} /* 226 */ /***/,
function(module, exports) {
'use strict';
@@ -32432,60 +32432,67 @@ module.exports = /******/ (function(modules) {
for (key in src)
obj[key] = src[key];
};
- module.exports = function(options /*, …options*/) {
+ module.exports = function(options) /*, …options*/ {
var result = create(null);
forEach.call(arguments, function(options) {
if (options == null) return;
process(Object(options), result);
});
return result;
- }; /***/
- } /* 227 */ /***/,
- function(module, exports) {
+ };
+ /***/
+ } /* 227 */,
+ /***/ function(module, exports) {
// Deprecated
'use strict';
module.exports = function(obj) {
return typeof obj === 'function';
- }; /***/
- } /* 228 */ /***/,
- function(module, exports, __webpack_require__) {
+ };
+ /***/
+ } /* 228 */,
+ /***/ function(module, exports, __webpack_require__) {
'use strict';
module.exports = __webpack_require__(229)()
? String.prototype.contains
- : __webpack_require__(230); /***/
- } /* 229 */ /***/,
- function(module, exports) {
+ : __webpack_require__(230);
+ /***/
+ } /* 229 */,
+ /***/ function(module, exports) {
'use strict';
var str = 'razdwatrzy';
module.exports = function() {
if (typeof str.contains !== 'function') return false;
return str.contains('dwa') === true && str.contains('foo') === false;
- }; /***/
- } /* 230 */ /***/,
- function(module, exports) {
+ };
+ /***/
+ } /* 230 */,
+ /***/ function(module, exports) {
'use strict';
var indexOf = String.prototype.indexOf;
- module.exports = function(searchString /*, position*/) {
+ module.exports = function(searchString) /*, position*/ {
return indexOf.call(this, searchString, arguments[1]) > -1;
- }; /***/
- } /* 231 */ /***/,
- function(module, exports, __webpack_require__) {
+ };
+ /***/
+ } /* 231 */,
+ /***/ function(module, exports, __webpack_require__) {
'use strict';
var isSymbol = __webpack_require__(232);
module.exports = function(value) {
if (!isSymbol(value)) throw new TypeError(value + ' is not a symbol');
return value;
- }; /***/
- } /* 232 */ /***/,
- function(module, exports) {
+ };
+ /***/
+ } /* 232 */,
+ /***/ function(module, exports) {
'use strict';
module.exports = function(x) {
return x &&
(typeof x === 'symbol' || x['@@toStringTag'] === 'Symbol') ||
false;
- }; /***/
- } /* 233 */ /***/,
- function(module, exports, __webpack_require__) {
+ };
+ /***/
+ } /* 233 */,
+ /***/ function(module, exports, __webpack_require__) {
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
@@ -32591,7 +32598,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -32735,7 +32742,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -32759,7 +32766,7 @@ module.exports = /******/ (function(modules) {
return _possibleConstructorReturn(
this,
(DetailPaneSection.__proto__ ||
- Object.getPrototypeOf(DetailPaneSection)).apply(this, arguments),
+ Object.getPrototypeOf(DetailPaneSection)).apply(this, arguments),
);
}
_createClass(DetailPaneSection, [
@@ -32861,7 +32868,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -32904,9 +32911,9 @@ module.exports = /******/ (function(modules) {
}
if (
this.props.val &&
- prevProps.val &&
- _typeof(this.props.val) === 'object' &&
- _typeof(prevProps.val) === 'object'
+ prevProps.val &&
+ _typeof(this.props.val) === 'object' &&
+ _typeof(prevProps.val) === 'object'
) {
return;
}
@@ -33142,7 +33149,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'React.addons.createFragment does not accept a ReactElement ' +
- 'without a wrapper object.',
+ 'without a wrapper object.',
)
: void 0;
return object;
@@ -33155,7 +33162,6 @@ module.exports = /******/ (function(modules) {
)
: _prodInvariant('0')
: void 0;
-
var result = [];
for (var key in object) {
if (process.env.NODE_ENV !== 'production') {
@@ -33164,7 +33170,7 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'React.addons.createFragment(...): Child objects should have ' +
- 'non-numeric keys so ordering is preserved.',
+ 'non-numeric keys so ordering is preserved.',
)
: void 0;
warnedAboutNumeric = true;
@@ -33325,10 +33331,10 @@ module.exports = /******/ (function(modules) {
mappedChild = ReactElement.cloneAndReplaceKey(
mappedChild, // Keep both the (mapped) and old keys if they differ, just as // traverseAllChildren used to do for objects as children
keyPrefix +
- (mappedChild.key && (!child || child.key !== mappedChild.key)
- ? escapeUserProvidedKey(mappedChild.key) + '/'
- : '') +
- childKey,
+ (mappedChild.key && (!child || child.key !== mappedChild.key)
+ ? escapeUserProvidedKey(mappedChild.key) + '/'
+ : '') +
+ childKey,
);
}
result.push(mappedChild);
@@ -33541,8 +33547,7 @@ module.exports = /******/ (function(modules) {
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Use invariant() to assert state which your program assumes to be true.
*
* Provide sprintf-style format (only %s is supported) and arguments
@@ -33563,7 +33568,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.',
+ 'for the full error message and additional helpful warnings.',
);
} else {
var args = [a, b, c, d, e, f];
@@ -33638,9 +33643,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `key` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -33660,9 +33665,9 @@ module.exports = /******/ (function(modules) {
? warning(
false,
'%s: `ref` is not a prop. Trying to access it will result ' +
- 'in `undefined` being returned. If you need to access the same ' +
- 'value within the child component, you should pass it as a different ' +
- 'prop. (https://fb.me/react-special-props)',
+ 'in `undefined` being returned. If you need to access the same ' +
+ 'value within the child component, you should pass it as a different ' +
+ 'prop. (https://fb.me/react-special-props)',
displayName,
)
: void 0;
@@ -33759,7 +33764,6 @@ module.exports = /******/ (function(modules) {
var key = null;
var ref = null;
var self = null;
-
var source = null;
if (config != null) {
if (hasValidRef(config)) {
@@ -33773,7 +33777,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
props[propName] = config[propName];
}
@@ -33801,7 +33805,7 @@ module.exports = /******/ (function(modules) {
if (key || ref) {
if (
typeof props.$$typeof === 'undefined' ||
- props.$$typeof !== REACT_ELEMENT_TYPE
+ props.$$typeof !== REACT_ELEMENT_TYPE
) {
var displayName = typeof type === 'function'
? type.displayName || type.name || 'Unknown'
@@ -33831,7 +33835,6 @@ module.exports = /******/ (function(modules) {
ReactElement.createFactory = function(type) {
var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be // easily accessed on elements. E.g. `<Foo />.type === Foo`. // This should not be named `constructor` since this may not be the function // that created the element, and it may not even be a constructor. // Legacy hook TODO: Warn if this is accessed
factory.type = type;
-
return factory;
};
ReactElement.cloneAndReplaceKey = function(oldElement, newKey) {
@@ -33873,7 +33876,7 @@ module.exports = /******/ (function(modules) {
for (propName in config) {
if (
hasOwnProperty.call(config, propName) &&
- !RESERVED_PROPS.hasOwnProperty(propName)
+ !RESERVED_PROPS.hasOwnProperty(propName)
) {
if (
config[propName] === undefined && defaultProps !== undefined
@@ -33995,8 +33998,7 @@ module.exports = /******/ (function(modules) {
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ReactCurrentOwner
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Keeps track of the current owner.
*
* The current owner is the component who should own any components that are
@@ -34006,9 +34008,7 @@ module.exports = /******/ (function(modules) {
/**
* @internal
* @type {ReactComponent}
- */
-
- current: null,
+ */ current: null,
};
module.exports = ReactCurrentOwner; /***/
} /* 246 */ /***/,
@@ -34063,7 +34063,7 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
throw new Error(
'`warning(condition, format, ...args)` requires a warning ' +
- 'message argument',
+ 'message argument',
);
}
if (format.indexOf('Failed Composite propType: ') === 0) {
@@ -34203,9 +34203,9 @@ module.exports = /******/ (function(modules) {
}
if (
children === null ||
- type === 'string' ||
- type === 'number' ||
- ReactElement.isValidElement(children)
+ type === 'string' ||
+ type === 'number' ||
+ ReactElement.isValidElement(children)
) {
callback(
traverseContext,
@@ -34265,8 +34265,8 @@ module.exports = /******/ (function(modules) {
? warning(
didWarnAboutMaps,
'Using Maps as children is not yet fully supported. It is an ' +
- 'experimental feature that might be removed. Convert it to a ' +
- 'sequence / iterable of keyed ReactElements instead.%s',
+ 'experimental feature that might be removed. Convert it to a ' +
+ 'sequence / iterable of keyed ReactElements instead.%s',
mapsAsChildrenAddendum,
)
: void 0;
@@ -34368,7 +34368,6 @@ module.exports = /******/ (function(modules) {
* @providesModule getIteratorFn
*
*/ 'use strict';
-
/* global Symbol */ var ITERATOR_SYMBOL = typeof Symbol === 'function' &&
Symbol.iterator;
var FAUX_ITERATOR_SYMBOL = '@@iterator'; /**
@@ -34406,8 +34405,7 @@ module.exports = /******/ (function(modules) {
*
* @providesModule KeyEscapeUtils
*
- */
- 'use strict'; /**
+ */ 'use strict'; /**
* Escape and wrap key so it is safe to use as a reactid
*
* @param {string} key to be escaped.
@@ -34481,16 +34479,16 @@ module.exports = /******/ (function(modules) {
if (format === undefined) {
error = new Error(
'Minified exception occurred; use the non-minified dev environment ' +
- 'for the full error message and additional helpful warnings.',
+ 'for the full error message and additional helpful warnings.',
);
} else {
var args = [a, b, c, d, e, f];
var argIndex = 0;
error = new Error(
'Invariant Violation: ' +
- format.replace(/%s/g, function() {
- return args[argIndex++];
- }),
+ format.replace(/%s/g, function() {
+ return args[argIndex++];
+ }),
);
}
error.framesToPop = 1; // we don't care about invariant's own frame
@@ -34559,7 +34557,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -34700,14 +34698,14 @@ module.exports = /******/ (function(modules) {
},
}),
!!this.props.searchText &&
- React.createElement(
- 'div',
- {
- onClick: this.cancel.bind(this),
- style: styles.cancelButton,
- },
- '\xD7',
- ),
+ React.createElement(
+ 'div',
+ {
+ onClick: this.cancel.bind(this),
+ style: styles.cancelButton,
+ },
+ '\xD7',
+ ),
),
);
},
@@ -34828,7 +34826,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -34855,7 +34853,7 @@ module.exports = /******/ (function(modules) {
return _possibleConstructorReturn(
this,
(SettingsPane.__proto__ ||
- Object.getPrototypeOf(SettingsPane)).apply(this, arguments),
+ Object.getPrototypeOf(SettingsPane)).apply(this, arguments),
);
}
_createClass(SettingsPane, [
@@ -34965,7 +34963,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -34993,7 +34991,7 @@ module.exports = /******/ (function(modules) {
var _this = _possibleConstructorReturn(
this,
(SettingsCheckbox.__proto__ ||
- Object.getPrototypeOf(SettingsCheckbox)).call(this, props),
+ Object.getPrototypeOf(SettingsCheckbox)).call(this, props),
);
_this._toggle = _this._toggle.bind(_this);
_this._defaultState = new StateRecord();
@@ -35138,7 +35136,6 @@ module.exports = /******/ (function(modules) {
var DID_ALTER = {value: false};
function MakeRef(ref) {
ref.value = false;
-
return ref;
}
function SetRef(ref) {
@@ -35197,7 +35194,6 @@ module.exports = /******/ (function(modules) {
? Math.max(0, size + index)
: size === undefined ? index : Math.min(size, index);
}
-
/* global Symbol */ var ITERATE_KEYS = 0;
var ITERATE_VALUES = 1;
var ITERATE_ENTRIES = 2;
@@ -35518,8 +35514,8 @@ module.exports = /******/ (function(modules) {
if (!seq) {
throw new TypeError(
'Expected Array or iterable object of [k, v] entries, ' +
- 'or keyed object: ' +
- value,
+ 'or keyed object: ' +
+ value,
);
}
return seq;
@@ -35539,7 +35535,7 @@ module.exports = /******/ (function(modules) {
if (!seq) {
throw new TypeError(
'Expected Array or iterable object of values, or keyed object: ' +
- value,
+ value,
);
}
return seq;
@@ -35680,7 +35676,7 @@ module.exports = /******/ (function(modules) {
}
if (
typeof valueA.valueOf === 'function' &&
- typeof valueB.valueOf === 'function'
+ typeof valueB.valueOf === 'function'
) {
valueA = valueA.valueOf();
valueB = valueB.valueOf();
@@ -35693,12 +35689,11 @@ module.exports = /******/ (function(modules) {
}
if (
typeof valueA.equals === 'function' &&
- typeof valueB.equals === 'function' &&
- valueA.equals(valueB)
+ typeof valueB.equals === 'function' &&
+ valueA.equals(valueB)
) {
return true;
}
-
return false;
}
function deepEqual(a, b) {
@@ -35707,15 +35702,13 @@ module.exports = /******/ (function(modules) {
}
if (
!isIterable(b) ||
- a.size !== undefined &&
- b.size !== undefined &&
- a.size !== b.size ||
- a.__hash !== undefined &&
- b.__hash !== undefined &&
- a.__hash !== b.__hash ||
- isKeyed(a) !== isKeyed(b) ||
- isIndexed(a) !== isIndexed(b) ||
- isOrdered(a) !== isOrdered(b)
+ a.size !== undefined && b.size !== undefined && a.size !== b.size ||
+ a.__hash !== undefined &&
+ b.__hash !== undefined &&
+ a.__hash !== b.__hash ||
+ isKeyed(a) !== isKeyed(b) ||
+ isIndexed(a) !== isIndexed(b) ||
+ isOrdered(a) !== isOrdered(b)
) {
return false;
}
@@ -36081,8 +36074,8 @@ module.exports = /******/ (function(modules) {
});
} else if (
obj.propertyIsEnumerable !== undefined &&
- obj.propertyIsEnumerable ===
- obj.constructor.prototype.propertyIsEnumerable
+ obj.propertyIsEnumerable ===
+ obj.constructor.prototype.propertyIsEnumerable
) {
// Since we can't define a non-enumerable property on the object
// we'll hijack one of the less-used non-enumerable properties to
@@ -36106,7 +36099,6 @@ module.exports = /******/ (function(modules) {
'Unable to set a non-enumerable property on object.',
);
}
-
return hash;
} // Get references to ES5 object methods.
var isExtensible = Object.isExtensible; // True if Object.defineProperty works as expected. IE8 fails this test.
@@ -36121,9 +36113,11 @@ module.exports = /******/ (function(modules) {
function getIENodeHash(node) {
if (node && node.nodeType > 0) {
switch (node.nodeType) {
- case 1: // Element
+ case 1:
+ // Element
return node.uniqueID;
- case 9: // Document
+ case 9:
+ // Document
return node.documentElement && node.documentElement.uniqueID;
}
}
@@ -36133,7 +36127,6 @@ module.exports = /******/ (function(modules) {
if (usingWeakMap) {
weakMap = new WeakMap();
}
-
var objHashUID = 0;
var UID_HASH_KEY = '__immutablehash__';
if (typeof Symbol === 'function') {
@@ -36167,7 +36160,6 @@ module.exports = /******/ (function(modules) {
Map.prototype.toString = function() {
return this.__toString('Map {', '}');
};
-
// @pragma Access
Map.prototype.get = function(k, notSetValue) {
return this._root
@@ -36285,13 +36277,13 @@ module.exports = /******/ (function(modules) {
var this$0 = this;
var iterations = 0;
this._root &&
- this._root.iterate(
- function(entry) {
- iterations++;
- return fn(entry[1], entry[0], this$0);
- },
- reverse,
- );
+ this._root.iterate(
+ function(entry) {
+ iterations++;
+ return fn(entry[1], entry[0], this$0);
+ },
+ reverse,
+ );
return iterations;
};
Map.prototype.__ensureOwner = function(ownerID) {
@@ -36357,8 +36349,7 @@ module.exports = /******/ (function(modules) {
SetRef(didAlter);
(removed || !exists) && SetRef(didChangeSize);
if (removed && entries.length === 1) {
- return;
- // undefined
+ return; // undefined
}
if (!exists && !removed && entries.length >= MAX_ARRAY_MAP_SIZE) {
return createNodes(ownerID, entries, key, value);
@@ -36447,9 +36438,9 @@ module.exports = /******/ (function(modules) {
}
if (
exists &&
- !newNode &&
- nodes.length === 2 &&
- isLeafNode(nodes[idx ^ 1])
+ !newNode &&
+ nodes.length === 2 &&
+ isLeafNode(nodes[idx ^ 1])
) {
return nodes[idx ^ 1];
}
@@ -36642,8 +36633,7 @@ module.exports = /******/ (function(modules) {
SetRef(didAlter);
if (removed) {
SetRef(didChangeSize);
- return;
- // undefined
+ return; // undefined
}
if (keyMatch) {
if (ownerID && ownerID === this.ownerID) {
@@ -37036,7 +37026,6 @@ module.exports = /******/ (function(modules) {
List.prototype.toString = function() {
return this.__toString('List [', ']');
};
-
// @pragma Access
List.prototype.get = function(index, notSetValue) {
index = wrapIndex(this, index);
@@ -37403,7 +37392,6 @@ module.exports = /******/ (function(modules) {
if (nodeHas && node.array[idx] === value) {
return node;
}
-
SetRef(didAlter);
newNode = editableVNode(node, ownerID);
if (value === undefined && idx === newNode.array.length - 1) {
@@ -37487,9 +37475,9 @@ module.exports = /******/ (function(modules) {
: newTailOffset > oldTailOffset ? new VNode([], owner) : oldTail; // Merge Tail into tree.
if (
oldTail &&
- newTailOffset > oldTailOffset &&
- newOrigin < oldCapacity &&
- oldTail.array.length
+ newTailOffset > oldTailOffset &&
+ newOrigin < oldCapacity &&
+ oldTail.array.length
) {
newRoot = editableVNode(newRoot, owner);
var node = newRoot;
@@ -37598,7 +37586,6 @@ module.exports = /******/ (function(modules) {
OrderedMap.prototype.toString = function() {
return this.__toString('OrderedMap {', '}');
};
-
// @pragma Access
OrderedMap.prototype.get = function(k, notSetValue) {
var index = this._map.get(k);
@@ -38311,8 +38298,8 @@ module.exports = /******/ (function(modules) {
var singleton = iters[0];
if (
singleton === iterable ||
- isKeyedIterable && isKeyed(singleton) ||
- isIndexed(iterable) && isIndexed(singleton)
+ isKeyedIterable && isKeyed(singleton) ||
+ isIndexed(iterable) && isIndexed(singleton)
) {
return singleton;
}
@@ -38632,7 +38619,6 @@ module.exports = /******/ (function(modules) {
Record.prototype.toString = function() {
return this.__toString(recordName(this) + ' {', '}');
};
-
// @pragma Access
Record.prototype.has = function(k) {
return this._defaultValues.hasOwnProperty(k);
@@ -38772,7 +38758,6 @@ module.exports = /******/ (function(modules) {
Set.prototype.toString = function() {
return this.__toString('Set {', '}');
};
-
// @pragma Access
Set.prototype.has = function(value) {
return this._map.has(value);
@@ -38988,7 +38973,6 @@ module.exports = /******/ (function(modules) {
Stack.prototype.toString = function() {
return this.__toString('Stack [', ']');
};
-
// @pragma Access
Stack.prototype.get = function(index, notSetValue) {
var head = this._head;
@@ -39170,11 +39154,10 @@ module.exports = /******/ (function(modules) {
};
Object.keys(methods).forEach(keyCopier);
Object.getOwnPropertySymbols &&
- Object.getOwnPropertySymbols(methods).forEach(keyCopier);
+ Object.getOwnPropertySymbols(methods).forEach(keyCopier);
return ctor;
}
Iterable.Iterator = Iterator;
-
mixin(Iterable, {
// ### Conversion to other types
toArray: function() {
@@ -39543,7 +39526,8 @@ module.exports = /******/ (function(modules) {
return this.toString();
};
IterablePrototype.chain = IterablePrototype.flatMap;
- IterablePrototype.contains = IterablePrototype.includes; // Temporary warning about using length
+ IterablePrototype.contains = IterablePrototype.includes;
+ // Temporary warning about using length
(function() {
try {
Object.defineProperty(IterablePrototype, 'length', {
@@ -39557,13 +39541,13 @@ module.exports = /******/ (function(modules) {
}
if (stack.indexOf('_wrapObject') === -1) {
console &&
- console.warn &&
- console.warn(
- 'iterable.length has been deprecated, ' +
- 'use iterable.size or iterable.count(). ' +
- 'This warning will become a silent error in a future version. ' +
- stack,
- );
+ console.warn &&
+ console.warn(
+ 'iterable.length has been deprecated, ' +
+ 'use iterable.size or iterable.count(). ' +
+ 'This warning will become a silent error in a future version. ' +
+ stack,
+ );
return this.size;
}
}
@@ -39686,7 +39670,7 @@ module.exports = /******/ (function(modules) {
index = wrapIndex(this, index);
return index < 0 ||
(this.size === Infinity ||
- this.size !== undefined && index > this.size)
+ this.size !== undefined && index > this.size)
? notSetValue
: this.find(
function(_, key) {
@@ -39818,7 +39802,8 @@ module.exports = /******/ (function(modules) {
return h;
}
function hashMerge(a, b) {
- return a ^ b + 0x9e3779b9 + (a << 6) + (a >> 2) | 0; // int
+ return a ^ b + 0x9e3779b9 + (a << 6) + (a >> 2) | 0;
+ // int
}
var Immutable = {
Iterable: Iterable,
@@ -39949,7 +39934,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -40034,25 +40019,25 @@ module.exports = /******/ (function(modules) {
null,
'Waiting for roots to load...',
this.props.reload &&
+ React.createElement(
+ 'span',
+ null,
+ 'to reload the inspector ',
React.createElement(
- 'span',
- null,
- 'to reload the inspector ',
- React.createElement(
- 'button',
- {
- onClick: this.props.reload,
- },
- ' click here',
- ),
+ 'button',
+ {
+ onClick: this.props.reload,
+ },
+ ' click here',
),
+ ),
),
);
}
}
if (
this.props.searching &&
- this.props.roots.count() > MAX_SEARCH_ROOTS
+ this.props.roots.count() > MAX_SEARCH_ROOTS
) {
return React.createElement(
'div',
@@ -40191,7 +40176,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -40383,7 +40368,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -40478,8 +40463,8 @@ module.exports = /******/ (function(modules) {
styles.head,
this.props.hovered && styles.headHover,
this.props.selected &&
- (collapsed || !this.props.isBottomTagSelected) &&
- styles.headSelect,
+ (collapsed || !this.props.isBottomTagSelected) &&
+ styles.headSelect,
leftPad,
);
var tagEvents = {
@@ -40600,52 +40585,58 @@ module.exports = /******/ (function(modules) {
name,
),
node.get('key') &&
- React.createElement(Props, {
- key: 'key',
- props: {
- key: node.get('key'),
- },
- }),
+ React.createElement(Props, {
+ key: 'key',
+ props: {
+ key: node.get('key'),
+ },
+ }),
node.get('ref') &&
- React.createElement(Props, {
- key: 'ref',
- props: {
- ref: node.get('ref'),
- },
- }),
+ React.createElement(Props, {
+ key: 'ref',
+ props: {
+ ref: node.get('ref'),
+ },
+ }),
node.get('props') &&
- React.createElement(Props, {
- key: 'props',
- props: node.get('props'),
- }),
+ React.createElement(Props, {
+ key: 'props',
+ props: node.get('props'),
+ }),
!content && '/',
- React.createElement('span', {style: tagStyle}, '>'),
+ React.createElement(
+ 'span',
+ {
+ style: tagStyle,
+ },
+ '>',
+ ),
),
content &&
- [
- React.createElement(
- 'span',
- {
- key: 'content',
- style: styles.textContent,
- },
- content,
- ),
+ [
+ React.createElement(
+ 'span',
+ {
+ key: 'content',
+ style: styles.textContent,
+ },
+ content,
+ ),
+ React.createElement(
+ 'span',
+ {
+ key: 'close',
+ style: styles.closeTag,
+ },
React.createElement(
'span',
- {
- key: 'close',
- style: styles.closeTag,
- },
- React.createElement(
- 'span',
- {style: tagStyle},
- '</',
- name,
- '>',
- ),
+ {style: tagStyle},
+ '</',
+ name,
+ '>',
),
- ],
+ ),
+ ],
),
),
);
@@ -40722,24 +40713,24 @@ module.exports = /******/ (function(modules) {
'' + node.get('name'),
),
node.get('key') &&
- React.createElement(Props, {
- key: 'key',
- props: {
- key: node.get('key'),
- },
- }),
+ React.createElement(Props, {
+ key: 'key',
+ props: {
+ key: node.get('key'),
+ },
+ }),
node.get('ref') &&
- React.createElement(Props, {
- key: 'ref',
- props: {
- ref: node.get('ref'),
- },
- }),
+ React.createElement(Props, {
+ key: 'ref',
+ props: {
+ ref: node.get('ref'),
+ },
+ }),
node.get('props') &&
- React.createElement(Props, {
- key: 'props',
- props: node.get('props'),
- }),
+ React.createElement(Props, {
+ key: 'props',
+ props: node.get('props'),
+ }),
React.createElement(
'span',
{
@@ -40766,8 +40757,8 @@ module.exports = /******/ (function(modules) {
styles.tail,
this.props.hovered && styles.headHover,
this.props.selected &&
- this.props.isBottomTagSelected &&
- styles.headSelect,
+ this.props.isBottomTagSelected &&
+ styles.headSelect,
leftPad,
);
return React.createElement(
@@ -40921,7 +40912,8 @@ module.exports = /******/ (function(modules) {
backgroundColor: '#eee',
},
};
- module.exports = WrappedNode; /***/
+ module.exports = WrappedNode;
+ /***/
} /* 263 */,
/***/ function(module, exports, __webpack_require__) {
/**
@@ -40982,7 +40974,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -41028,10 +41020,10 @@ module.exports = /******/ (function(modules) {
var props = this.props.props;
if (
!props ||
- (typeof props === 'undefined'
- ? 'undefined'
- : _typeof(props)) !==
- 'object'
+ (typeof props === 'undefined'
+ ? 'undefined'
+ : _typeof(props)) !==
+ 'object'
) {
return React.createElement('span', null);
}
@@ -41104,7 +41096,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41127,7 +41118,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -41278,7 +41269,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41301,7 +41291,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -41408,7 +41398,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41431,7 +41420,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -41635,7 +41624,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -41658,7 +41646,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -41679,7 +41667,6 @@ module.exports = /******/ (function(modules) {
var _require2 = __webpack_require__(257);
var Map = _require2.Map;
var Set = _require2.Set;
-
var List = _require2.List;
var assign = __webpack_require__(206);
var nodeMatchesText = __webpack_require__(269);
@@ -41743,7 +41730,6 @@ module.exports = /******/ (function(modules) {
_this._nodes = new Map();
_this._parents = new Map();
_this._nodesByName = new Map();
-
_this._bridge = bridge; // Public state
_this.roots = new List();
_this.contextMenu = null;
@@ -41795,7 +41781,6 @@ module.exports = /******/ (function(modules) {
_this._establishConnection();
_this._eventQueue = [];
_this._eventTimer = null;
-
return _this;
} // Public state // an object describing the capabilities of the inspected runtime.
_createClass(Store, [
@@ -41832,7 +41817,7 @@ module.exports = /******/ (function(modules) {
});
this._eventQueue = [];
}
- // Public actions,
+ // Public actions,,
},
{
key: 'scrollToNode',
@@ -41880,8 +41865,8 @@ module.exports = /******/ (function(modules) {
} else {
if (
this.searchRoots &&
- needle.indexOf(this.searchText.toLowerCase()) === 0 &&
- (!this.regexState || !this.regexState.enabled)
+ needle.indexOf(this.searchText.toLowerCase()) === 0 &&
+ (!this.regexState || !this.regexState.enabled)
) {
this.searchRoots = this.searchRoots.filter(function(item) {
var node = _this4.get(item);
@@ -42037,9 +42022,9 @@ module.exports = /******/ (function(modules) {
}
if (
typeof children === 'string' ||
- !children ||
- !children.length ||
- node.get('collapsed')
+ !children ||
+ !children.length ||
+ node.get('collapsed')
) {
return false;
}
@@ -42173,7 +42158,7 @@ module.exports = /******/ (function(modules) {
this.highlight(id);
}
}
- // Public methods,
+ // Public methods,,
},
{
key: 'get',
@@ -42200,9 +42185,9 @@ module.exports = /******/ (function(modules) {
}
if (
nodeType === 'Native' &&
- (!up ||
- this.get(this._parents.get(id)).get('nodeType') !==
- 'NativeWrapper')
+ (!up ||
+ this.get(this._parents.get(id)).get('nodeType') !==
+ 'NativeWrapper')
) {
return id;
}
@@ -42224,8 +42209,8 @@ module.exports = /******/ (function(modules) {
var _this5 = this;
invariant(
path[0] === 'props' ||
- path[0] === 'state' ||
- path[0] === 'context',
+ path[0] === 'state' ||
+ path[0] === 'context',
'Inspected path must be one of props, state, or context',
);
this._bridge.inspect(id, path, function(value) {
@@ -42278,7 +42263,7 @@ module.exports = /******/ (function(modules) {
this.refreshSearch = true;
this.changeSearch(this.searchText);
}
- // Private stuff,
+ // Private stuff,,
},
{
key: '_establishConnection',
@@ -42366,12 +42351,12 @@ module.exports = /******/ (function(modules) {
var childID = childNode.get('id');
if (
_this8.searchRoots &&
- nodeMatchesText(
- childNode,
- _this8.searchText.toLowerCase(),
- childID,
- _this8,
- )
+ nodeMatchesText(
+ childNode,
+ _this8.searchText.toLowerCase(),
+ childID,
+ _this8,
+ )
) {
_this8.searchRoots = _this8.searchRoots.push(childID);
_this8.emit('searchRoots');
@@ -42451,8 +42436,8 @@ module.exports = /******/ (function(modules) {
var wrapper = store.get(store.getParent(key));
if (
node.get('nodeType') === 'Native' &&
- wrapper &&
- wrapper.get('nodeType') === 'NativeWrapper'
+ wrapper &&
+ wrapper.get('nodeType') === 'NativeWrapper'
) {
return false;
}
@@ -42499,8 +42484,7 @@ module.exports = /******/ (function(modules) {
'72': 'left', // 'h',
'74': 'down', // 'j',
'75': 'up', // 'k',
- '76': 'right',
- // 'l',
+ '76': 'right', // 'l',
'37': 'left',
'38': 'up',
'39': 'right',
@@ -42569,7 +42553,6 @@ module.exports = /******/ (function(modules) {
store.isBottomTagSelected = false;
}
store.toggleCollapse(id);
-
return undefined;
}
var children = node.get('children');
@@ -42725,7 +42708,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -42955,7 +42937,7 @@ module.exports = /******/ (function(modules) {
var minChunkSize = this._paused ? 50 : 100;
while (
this._buffer.length &&
- (deadline.timeRemaining() > 0 || deadline.didTimeout)
+ (deadline.timeRemaining() > 0 || deadline.didTimeout)
) {
var take = Math.min(
this._buffer.length,
@@ -43136,9 +43118,9 @@ module.exports = /******/ (function(modules) {
}
if (
isFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -43154,9 +43136,9 @@ module.exports = /******/ (function(modules) {
) {
if (
pIsFn &&
- (name === 'arguments' ||
- name === 'callee' ||
- name === 'caller')
+ (name === 'arguments' ||
+ name === 'callee' ||
+ name === 'caller')
) {
return;
}
@@ -43221,7 +43203,6 @@ module.exports = /******/ (function(modules) {
obj[last] = replace;
});
}
-
module.exports = hydrate; /***/
} /***/ /* 274 */,
function(module, exports) {
@@ -43279,8 +43260,8 @@ module.exports = /******/ (function(modules) {
}
if (
!data ||
- (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
- 'object'
+ (typeof data === 'undefined' ? 'undefined' : _typeof(data)) !==
+ 'object'
) {
if (typeof data === 'string' && data.length > 500) {
return data.slice(0, 500) + '...';
@@ -43325,8 +43306,8 @@ module.exports = /******/ (function(modules) {
} // TODO when this is in the iframe window, we can just use Object
if (
data.constructor &&
- typeof data.constructor === 'function' &&
- data.constructor.name !== 'Object'
+ typeof data.constructor === 'function' &&
+ data.constructor.name !== 'Object'
) {
cleaned.push(path);
return {
@@ -43451,7 +43432,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43474,7 +43454,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -43506,7 +43486,7 @@ module.exports = /******/ (function(modules) {
var _this = _possibleConstructorReturn(
this,
(NativeStyler.__proto__ ||
- Object.getPrototypeOf(NativeStyler)).call(this, props),
+ Object.getPrototypeOf(NativeStyler)).call(this, props),
);
_this.state = {
style: null,
@@ -43619,7 +43599,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43642,7 +43621,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -43738,12 +43717,12 @@ module.exports = /******/ (function(modules) {
}),
':',
this.state.newAttr &&
- React.createElement(BlurInput, {
- value: '',
- onChange: function onChange(val) {
- return _this2.onNew(val);
- },
- }),
+ React.createElement(BlurInput, {
+ value: '',
+ onChange: function onChange(val) {
+ return _this2.onNew(val);
+ },
+ }),
),
);
},
@@ -43785,7 +43764,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -43808,7 +43786,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -43925,7 +43903,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44040,7 +44017,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44076,7 +44052,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -44167,7 +44143,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44203,7 +44178,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -44295,7 +44270,6 @@ module.exports = /******/ (function(modules) {
bridge.on('relay:failure', function(_ref2) {
var id = _ref2.id;
var error = _ref2.error;
-
var end = _ref2.end;
_this.queries = _this.queries.mergeIn([id], new Map({
status: 'failure',
@@ -44310,7 +44284,7 @@ module.exports = /******/ (function(modules) {
bridge.on('mount', function(data) {
if (
!data.props ||
- !data.props.relay && data.name.indexOf('Relay(') !== 0
+ !data.props.relay && data.name.indexOf('Relay(') !== 0
) {
return;
// not a relay child
@@ -44522,7 +44496,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44545,7 +44518,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -44655,7 +44628,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44678,7 +44650,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -44852,7 +44824,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -44875,7 +44846,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -45027,7 +44998,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -45065,7 +45035,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -45294,7 +45264,6 @@ module.exports = /******/ (function(modules) {
return function(Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
-
return Constructor;
};
})();
@@ -45317,7 +45286,7 @@ module.exports = /******/ (function(modules) {
if (typeof superClass !== 'function' && superClass !== null) {
throw new TypeError(
'Super expression must either be null or a function, not ' +
- typeof superClass,
+ typeof superClass,
);
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
@@ -45342,7 +45311,7 @@ module.exports = /******/ (function(modules) {
return _possibleConstructorReturn(
this,
(ElementPanel.__proto__ ||
- Object.getPrototypeOf(ElementPanel)).apply(this, arguments),
+ Object.getPrototypeOf(ElementPanel)).apply(this, arguments),
);
}
_createClass(ElementPanel, [
@@ -45396,13 +45365,13 @@ module.exports = /******/ (function(modules) {
);
}),
!queries.length &&
- React.createElement(
- 'li',
- {
- style: styles.noQueries,
- },
- 'No Queries',
- ),
+ React.createElement(
+ 'li',
+ {
+ style: styles.noQueries,
+ },
+ 'No Queries',
+ ),
),
);
}),
diff --git a/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js b/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
index 8c0bc90..ad87b9f 100644
--- a/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
+++ b/pkg/nuclide-react-native/lib/debugging/DebugUiComponent.js
@@ -92,6 +92,7 @@ export class DebugUiComponent extends React.Component {
<div className="text-left text-smaller text-subtle">
After starting the debugger, enable JS debugging from the developer menu of your React
+
Native app
</div>
<div className="nuclide-react-native-debugging-launch-attach-actions">
diff --git a/pkg/nuclide-react-native/lib/debugging/executor.js b/pkg/nuclide-react-native/lib/debugging/executor.js
index 3e9d222..a1893aa 100644
--- a/pkg/nuclide-react-native/lib/debugging/executor.js
+++ b/pkg/nuclide-react-native/lib/debugging/executor.js
@@ -67,7 +67,7 @@ process.on('message', request => {
try {
if (
currentContext != null &&
- typeof currentContext.__fbBatchedBridge === 'object'
+ typeof currentContext.__fbBatchedBridge === 'object'
) {
returnValue = currentContext.__fbBatchedBridge[request.method].apply(
null,
diff --git a/pkg/nuclide-react-native/lib/debugging/runApp.js b/pkg/nuclide-react-native/lib/debugging/runApp.js
index 8c4fa42..f873dee 100644
--- a/pkg/nuclide-react-native/lib/debugging/runApp.js
+++ b/pkg/nuclide-react-native/lib/debugging/runApp.js
@@ -71,7 +71,7 @@ function connectToRnApp(): Observable<WS> {
// indefinitely.
if (
error.name === 'PrematureCloseError' ||
- (error: any).code === 'ECONNREFUSED'
+ (error: any).code === 'ECONNREFUSED'
) {
return errorCount;
}
diff --git a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
index fb7a1d7..917a9ee 100644
--- a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
+++ b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
@@ -64,8 +64,8 @@ export class PackagerActivation {
dismissable: true,
description: (
'Make sure that your current working root (or its ancestor) contains a' +
- ' "node_modules" directory with react-native installed, or a .buckconfig file' +
- ' with a "[react-native]" section that has a "server" key.'
+ ' "node_modules" directory with react-native installed, or a .buckconfig file' +
+ ' with a "[react-native]" section that has a "server" key.'
),
},
);
@@ -180,11 +180,10 @@ function getPackagerObservable(
editor.push('--dev');
}
return observeProcess(
- () =>
- safeSpawn(command, args, {
- cwd,
- env: {...process.env, REACT_EDITOR: quote(editor)},
- }),
+ () => safeSpawn(command, args, {
+ cwd,
+ env: {...process.env, REACT_EDITOR: quote(editor)},
+ }),
true, // Kill all descendant processes when unsubscribing
);
})
diff --git a/pkg/nuclide-recent-files-provider/lib/RecentFilesProvider.js b/pkg/nuclide-recent-files-provider/lib/RecentFilesProvider.js
index 03ed0ce..74fa1da 100644
--- a/pkg/nuclide-recent-files-provider/lib/RecentFilesProvider.js
+++ b/pkg/nuclide-recent-files-provider/lib/RecentFilesProvider.js
@@ -43,9 +43,9 @@ function getRecentFilesMatching(query: string): Array<FileResult> {
.filter(
result =>
!openFiles.has(result.path) &&
- projectPaths.some(
- projectPath => result.path.indexOf(projectPath) !== -1,
- ),
+ projectPaths.some(
+ projectPath => result.path.indexOf(projectPath) !== -1,
+ ),
);
const timestamps: Map<FilePath, TimeStamp> = new Map();
const matcher = new Matcher(
diff --git a/pkg/nuclide-refactorizer/lib/main.js b/pkg/nuclide-refactorizer/lib/main.js
index b8fa0f2..8353800 100644
--- a/pkg/nuclide-refactorizer/lib/main.js
+++ b/pkg/nuclide-refactorizer/lib/main.js
@@ -110,7 +110,7 @@ class Activation {
invariant(
mouseEvent != null,
'No mouse event found. Do not invoke this command directly. ' +
- 'If you did use the context menu, please report this issue.',
+ 'If you did use the context menu, please report this issue.',
);
const editor = atom.workspace.getActiveTextEditor();
invariant(editor != null);
diff --git a/pkg/nuclide-remote-atom-rpc/bin/main.js b/pkg/nuclide-remote-atom-rpc/bin/main.js
index 95c454d..c340afa 100644
--- a/pkg/nuclide-remote-atom-rpc/bin/main.js
+++ b/pkg/nuclide-remote-atom-rpc/bin/main.js
@@ -140,7 +140,7 @@ async function run() {
alias: 'add',
describe: (
'Ignored, as --add as always implied. ' +
- 'Included for compatibility with atom CLI.'
+ 'Included for compatibility with atom CLI.'
),
type: 'boolean',
})
diff --git a/pkg/nuclide-remote-atom/lib/main.js b/pkg/nuclide-remote-atom/lib/main.js
index d2be116..c095246 100644
--- a/pkg/nuclide-remote-atom/lib/main.js
+++ b/pkg/nuclide-remote-atom/lib/main.js
@@ -111,13 +111,13 @@ function openFile(
if (
isWaiting &&
- featureConfig.get(
- 'nuclide-remote-atom.shouldNotifyWhenCommandLineIsWaitingOnFile',
- )
+ featureConfig.get(
+ 'nuclide-remote-atom.shouldNotifyWhenCommandLineIsWaitingOnFile',
+ )
) {
const notification = atom.notifications.addInfo(
`The command line has opened \`${nuclideUri.getPath(uri)}\`` +
- ' and is waiting for it to be closed.',
+ ' and is waiting for it to be closed.',
{
dismissable: true,
buttons: [
diff --git a/pkg/nuclide-remote-connection/lib/ConnectionHealthNotifier.js b/pkg/nuclide-remote-connection/lib/ConnectionHealthNotifier.js
index c805229..cdc127f 100644
--- a/pkg/nuclide-remote-connection/lib/ConnectionHealthNotifier.js
+++ b/pkg/nuclide-remote-connection/lib/ConnectionHealthNotifier.js
@@ -110,7 +110,7 @@ export class ConnectionHealthNotifier {
HEARTBEAT_NOTIFICATION_WARNING,
code,
`Nuclide server cannot be reached at "${serverUri}".<br/>` +
- 'Nuclide will reconnect when the network is restored.',
+ 'Nuclide will reconnect when the network is restored.',
/* dismissable */ true,
/* askToReload */ false,
);
@@ -141,7 +141,7 @@ export class ConnectionHealthNotifier {
HEARTBEAT_NOTIFICATION_ERROR,
code,
'**Nuclide Server Crashed**<br/>' +
- 'Please reload Atom to restore your remote project connection.',
+ 'Please reload Atom to restore your remote project connection.',
/* dismissable */ true,
/* askToReload */ true,
);
@@ -155,9 +155,9 @@ export class ConnectionHealthNotifier {
HEARTBEAT_NOTIFICATION_ERROR,
code,
'**Nuclide Server Is Not Reachable**<br/>' +
- `It could be running on a port that is not accessible: ${String(
- port,
- )}.`,
+ `It could be running on a port that is not accessible: ${String(
+ port,
+ )}.`,
/* dismissable */ true,
/* askToReload */ false,
);
@@ -169,9 +169,9 @@ export class ConnectionHealthNotifier {
HEARTBEAT_NOTIFICATION_ERROR,
code,
'**Connection Reset Error**<br/>' +
- 'This could be caused by the client certificate mismatching the ' +
- 'server certificate.<br/>' +
- 'Please reload Atom to restore your remote project connection.',
+ 'This could be caused by the client certificate mismatching the ' +
+ 'server certificate.<br/>' +
+ 'Please reload Atom to restore your remote project connection.',
/* dismissable */ true,
/* askToReload */ true,
);
diff --git a/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js b/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
index ce455aa..3eac940 100644
--- a/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
+++ b/pkg/nuclide-remote-connection/lib/NuclideTextBuffer.js
@@ -178,7 +178,7 @@ export default class NuclideTextBuffer extends TextBuffer {
setTextViaDiff(newText: string): void {
if (
this.getLineCount() > DIFF_LINE_LIMIT ||
- countOccurrences(newText, '\n') > DIFF_LINE_LIMIT
+ countOccurrences(newText, '\n') > DIFF_LINE_LIMIT
) {
this.setText(newText);
} else {
@@ -212,8 +212,8 @@ export default class NuclideTextBuffer extends TextBuffer {
// Otherwise, what we wrote and what we read should match exactly.
if (
this._saveID !== previousSaveID ||
- previousContents === this.cachedDiskContents ||
- this._pendingSaveContents === this.cachedDiskContents
+ previousContents === this.cachedDiskContents ||
+ this._pendingSaveContents === this.cachedDiskContents
) {
this.conflict = false;
return;
diff --git a/pkg/nuclide-remote-connection/lib/ServerConnection.js b/pkg/nuclide-remote-connection/lib/ServerConnection.js
index 087697f..0eb6f3a 100644
--- a/pkg/nuclide-remote-connection/lib/ServerConnection.js
+++ b/pkg/nuclide-remote-connection/lib/ServerConnection.js
@@ -285,8 +285,8 @@ export class ServerConnection {
_isSecure(): boolean {
return Boolean(
this._config.certificateAuthorityCertificate &&
- this._config.clientCertificate &&
- this._config.clientKey,
+ this._config.clientCertificate &&
+ this._config.clientKey,
);
}
diff --git a/pkg/nuclide-remote-connection/lib/SshHandshake.js b/pkg/nuclide-remote-connection/lib/SshHandshake.js
index 30f71f3..a06d1ea 100644
--- a/pkg/nuclide-remote-connection/lib/SshHandshake.js
+++ b/pkg/nuclide-remote-connection/lib/SshHandshake.js
@@ -183,7 +183,7 @@ export class SshHandshake {
// Upon authentication failure, fall back to using a password.
if (
errorLevel === 'client-authentication' &&
- this._passwordRetryCount < PASSWORD_RETRIES
+ this._passwordRetryCount < PASSWORD_RETRIES
) {
const config = this._config;
const retryText = this._passwordRetryCount ? ' again' : '';
@@ -384,8 +384,8 @@ export class SshHandshake {
_isSecure(): boolean {
return Boolean(
this._certificateAuthorityCertificate &&
- this._clientCertificate &&
- this._clientKey,
+ this._clientCertificate &&
+ this._clientKey,
);
}
diff --git a/pkg/nuclide-remote-connection/spec/RemoteDirectory-spec.js b/pkg/nuclide-remote-connection/spec/RemoteDirectory-spec.js
index d9ce31b..c1afa52 100644
--- a/pkg/nuclide-remote-connection/spec/RemoteDirectory-spec.js
+++ b/pkg/nuclide-remote-connection/spec/RemoteDirectory-spec.js
@@ -31,7 +31,7 @@ describe('RemoteDirectory', () => {
it(
'does not list the property used to mark the directory as remote as one of its enumerable' +
- ' properties.',
+ ' properties.',
() => {
const remoteDirectory = new RemoteDirectory(
connectionMock,
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDetailsForm.js b/pkg/nuclide-remote-projects/lib/ConnectionDetailsForm.js
index b426171..9d17941 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDetailsForm.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDetailsForm.js
@@ -262,8 +262,8 @@ export default class ConnectionDetailsForm extends React.Component {
},
title: (
'One of your profiles uses a host name that resolves to the' +
- ' same IP as this one. Consider using the uniform host ' +
- 'name to avoid potential collisions.'
+ ' same IP as this one. Consider using the uniform host ' +
+ 'name to avoid potential collisions.'
),
})}
/>
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
index 857c858..871686d 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
@@ -103,11 +103,11 @@ export default class ConnectionDetailsPrompt extends React.Component {
if (
prevProps.indexOfSelectedConnectionProfile !==
this.props.indexOfSelectedConnectionProfile ||
- // If the connection profiles changed length, the effective selected profile also changed.
- prevProps.connectionProfiles != null &&
- this.props.connectionProfiles != null &&
- prevProps.connectionProfiles.length !==
- this.props.connectionProfiles.length
+ // If the connection profiles changed length, the effective selected profile also changed.
+ prevProps.connectionProfiles != null &&
+ this.props.connectionProfiles != null &&
+ prevProps.connectionProfiles.length !==
+ this.props.connectionProfiles.length
) {
const existingConnectionDetailsForm = this.refs[
'connection-details-form'
@@ -128,7 +128,7 @@ export default class ConnectionDetailsPrompt extends React.Component {
if (
prevProps.connectionProfiles !== this.props.connectionProfiles &&
- this.props.connectionProfiles
+ this.props.connectionProfiles
) {
this.setState({
IPs: getIPsForHosts(
@@ -152,8 +152,8 @@ export default class ConnectionDetailsPrompt extends React.Component {
// profile.
if (
this.props.connectionProfiles != null &&
- this.props.connectionProfiles.length > 0 &&
- this.props.indexOfSelectedConnectionProfile != null
+ this.props.connectionProfiles.length > 0 &&
+ this.props.indexOfSelectedConnectionProfile != null
) {
const selectedProfile = this.props.connectionProfiles[
this.props.indexOfSelectedConnectionProfile
@@ -255,7 +255,7 @@ export default class ConnectionDetailsPrompt extends React.Component {
},
title: (
'The settings most recently used to connect. To save settings permanently, ' +
- 'create a profile.'
+ 'create a profile.'
),
})}
/>
@@ -307,8 +307,8 @@ export default class ConnectionDetailsPrompt extends React.Component {
},
title: (
'Two or more of your profiles use host names that resolve ' +
- 'to the same IP address. Consider unifying them to avoid ' +
- 'potential collisions.'
+ 'to the same IP address. Consider unifying them to avoid ' +
+ 'potential collisions.'
),
})}
/>
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDialog.js b/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
index 4d82aee..6759115 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDialog.js
@@ -155,12 +155,11 @@ export default class ConnectionDialog extends React.Component {
indexOfSelectedConnectionProfile = -1;
} else if (
this.props.connectionProfiles == null ||
- // The current selection is outside the bounds of the next profiles list
- indexOfSelectedConnectionProfile >
- nextProps.connectionProfiles.length - 1 ||
- // The next profiles list is longer than before, a new one was added
- nextProps.connectionProfiles.length >
- this.props.connectionProfiles.length
+ // The current selection is outside the bounds of the next profiles list
+ indexOfSelectedConnectionProfile >
+ nextProps.connectionProfiles.length - 1 ||
+ // The next profiles list is longer than before, a new one was added
+ nextProps.connectionProfiles.length > this.props.connectionProfiles.length
) {
// Select the final connection profile in the list because one of the above conditions means
// the current selected index is outdated.
@@ -176,10 +175,10 @@ export default class ConnectionDialog extends React.Component {
this._focus();
} else if (
this.state.mode === REQUEST_CONNECTION_DETAILS &&
- this.state.indexOfSelectedConnectionProfile ===
- prevState.indexOfSelectedConnectionProfile &&
- !this.state.isDirty &&
- prevState.isDirty
+ this.state.indexOfSelectedConnectionProfile ===
+ prevState.indexOfSelectedConnectionProfile &&
+ !this.state.isDirty &&
+ prevState.isDirty
) {
// When editing a profile and clicking "Save", the Save button disappears. Focus the primary
// button after re-rendering so focus is on a logical element.
@@ -220,7 +219,7 @@ export default class ConnectionDialog extends React.Component {
invariant(
validationResult.validatedProfile != null &&
- typeof validationResult.validatedProfile === 'object',
+ typeof validationResult.validatedProfile === 'object',
);
// Save the validated profile, and show any warning messages.
const newProfile = validationResult.validatedProfile;
@@ -286,7 +285,7 @@ export default class ConnectionDialog extends React.Component {
let selectedProfile;
if (
this.state.indexOfSelectedConnectionProfile >= 0 &&
- this.props.connectionProfiles != null
+ this.props.connectionProfiles != null
) {
selectedProfile = this.props.connectionProfiles[
this.state.indexOfSelectedConnectionProfile
diff --git a/pkg/nuclide-remote-projects/lib/CreateConnectionProfileForm.js b/pkg/nuclide-remote-projects/lib/CreateConnectionProfileForm.js
index bf5b61e..a2f61e3 100644
--- a/pkg/nuclide-remote-projects/lib/CreateConnectionProfileForm.js
+++ b/pkg/nuclide-remote-projects/lib/CreateConnectionProfileForm.js
@@ -95,7 +95,7 @@ export default class CreateConnectionProfileForm
initialCwd={initialFields.cwd}
initialRemoteServerCommand={
initialFields.remoteServerCommand ||
- DEFAULT_SERVER_COMMAND_PLACEHOLDER
+ DEFAULT_SERVER_COMMAND_PLACEHOLDER
}
initialSshPort={initialFields.sshPort}
initialPathToPrivateKey={initialFields.pathToPrivateKey}
@@ -143,7 +143,7 @@ export default class CreateConnectionProfileForm
}
invariant(
validationResult.validatedProfile != null &&
- typeof validationResult.validatedProfile === 'object',
+ typeof validationResult.validatedProfile === 'object',
);
const newProfile = validationResult.validatedProfile;
// Save the validated profile, and show any warning messages.
diff --git a/pkg/nuclide-remote-projects/lib/connection-profile-utils.js b/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
index f479d4b..4d5ed84 100644
--- a/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
+++ b/pkg/nuclide-remote-projects/lib/connection-profile-utils.js
@@ -72,7 +72,7 @@ export function getDefaultConnectionProfile(
let remoteServerCommand = currentOfficialRSC;
if (
lastOfficialRemoteServerCommand === currentOfficialRSC &&
- lastConfig.remoteServerCommand
+ lastConfig.remoteServerCommand
) {
remoteServerCommand = lastConfig.remoteServerCommand;
}
diff --git a/pkg/nuclide-remote-projects/lib/connection-types.js b/pkg/nuclide-remote-projects/lib/connection-types.js
index 264c91a..7762b8b 100644
--- a/pkg/nuclide-remote-projects/lib/connection-types.js
+++ b/pkg/nuclide-remote-projects/lib/connection-types.js
@@ -10,13 +10,10 @@
import type {SshHandshake} from '../../nuclide-remote-connection';
-export type NuclideRemoteAuthMethods = /* $FlowFixMe: Flow can't find the PASSWORD property on SupportedMethods.*/
-
- | SshHandshake.SupportedMethods.PASSWORD
- | /* $FlowFixMe: Flow can't find the SSL_AGENT property on SupportedMethods.*/
- SshHandshake.SupportedMethods.SSL_AGENT
- | /* $FlowFixMe: Flow can't find the PRIVATE_KEY property on SupportedMethods.*/
- SshHandshake.SupportedMethods.PRIVATE_KEY;
+export type NuclideRemoteAuthMethods /* $FlowFixMe: Flow can't find the PASSWORD property on SupportedMethods.*/ =
+ | SshHandshake.SupportedMethods.PASSWORD /* $FlowFixMe: Flow can't find the SSL_AGENT property on SupportedMethods.*/
+ | SshHandshake.SupportedMethods.SSL_AGENT /* $FlowFixMe: Flow can't find the PRIVATE_KEY property on SupportedMethods.*/
+ | SshHandshake.SupportedMethods.PRIVATE_KEY;
export type NuclideRemoteConnectionParams = {
username: string,
diff --git a/pkg/nuclide-remote-projects/lib/form-validation-utils.js b/pkg/nuclide-remote-projects/lib/form-validation-utils.js
index 4e82d2d..59be2a0 100644
--- a/pkg/nuclide-remote-projects/lib/form-validation-utils.js
+++ b/pkg/nuclide-remote-projects/lib/form-validation-utils.js
@@ -77,7 +77,7 @@ export function validateFormInputs(
}
if (
authMethod === SshHandshake.SupportedMethods.PRIVATE_KEY &&
- !connectionDetails.pathToPrivateKey
+ !connectionDetails.pathToPrivateKey
) {
missingFields.push(
'Private Key File (required for the authentication method you selected)',
@@ -100,7 +100,7 @@ export function validateFormInputs(
// 1. If a password is provided, all parts of the profile will be save except the password.
if (
authMethod === SshHandshake.SupportedMethods.PASSWORD &&
- connectionDetails.password
+ connectionDetails.password
) {
warningMessage += '* You provided a password for this profile. ' +
'For security, Nuclide will save the other parts of this profile, ' +
@@ -109,7 +109,7 @@ export function validateFormInputs(
// 2. Save the remote server command only if it is changed.
if (
connectionDetails.remoteServerCommand &&
- connectionDetails.remoteServerCommand !== defaultRemoteServerCommand
+ connectionDetails.remoteServerCommand !== defaultRemoteServerCommand
) {
profileParams.remoteServerCommand = connectionDetails.remoteServerCommand;
} else {
diff --git a/pkg/nuclide-remote-projects/lib/main.js b/pkg/nuclide-remote-projects/lib/main.js
index 474b577..33c4633 100644
--- a/pkg/nuclide-remote-projects/lib/main.js
+++ b/pkg/nuclide-remote-projects/lib/main.js
@@ -168,8 +168,8 @@ function addRemoteFolderToProject(connection: RemoteConnection) {
const choice = atom.confirm({
message: (
"No more remote projects on the host: '" +
- hostname +
- "'. Would you like to shutdown Nuclide server there?"
+ hostname +
+ "'. Would you like to shutdown Nuclide server there?"
),
buttons,
});
@@ -190,7 +190,7 @@ function closeOpenFilesForRemoteProject(connection: RemoteConnection): void {
// Only clean up these files if we're the only connection left.
if (
connection.isOnlyConnection() ||
- nuclideUri.contains(connection.getUriForInitialWorkingDirectory(), uri)
+ nuclideUri.contains(connection.getUriForInitialWorkingDirectory(), uri)
) {
pane.removeItem(editor);
editor.destroy();
@@ -213,7 +213,7 @@ function deleteDummyRemoteRootDirectories() {
for (const directory of atom.project.getDirectories()) {
if (
nuclideUri.isRemote(directory.getPath()) &&
- !RemoteDirectory.isRemoteDirectory(directory)
+ !RemoteDirectory.isRemoteDirectory(directory)
) {
atom.project.removePath(directory.getPath());
}
@@ -345,7 +345,7 @@ async function reloadRemoteProjects(
const {cwd, host, displayTitle} = config;
if (
connection.getPathForInitialWorkingDirectory() !== cwd &&
- connection.getRemoteHostname() === host
+ connection.getRemoteHostname() === host
) {
// eslint-disable-next-line no-await-in-loop
const subConnection = await RemoteConnection.createConnectionBySavedConfig(
@@ -372,7 +372,7 @@ function shutdownServersAndRestartNuclide(): void {
atom.confirm({
message: (
'This will shutdown your Nuclide servers and restart Atom, ' +
- 'discarding all unsaved changes. Continue?'
+ 'discarding all unsaved changes. Continue?'
),
buttons: {
'Shutdown & Restart': async () => {
@@ -475,7 +475,7 @@ export function activate(
// directory. We can't let that create a file with the initial working directory path.
if (
connection != null &&
- uri === connection.getUriForInitialWorkingDirectory()
+ uri === connection.getUriForInitialWorkingDirectory()
) {
const blankEditor = atom.workspace.buildTextEditor({});
// No matter what we do here, Atom is going to create a blank editor.
diff --git a/pkg/nuclide-remote-projects/lib/notification.js b/pkg/nuclide-remote-projects/lib/notification.js
index e22832f..eb33835 100644
--- a/pkg/nuclide-remote-projects/lib/notification.js
+++ b/pkg/nuclide-remote-projects/lib/notification.js
@@ -49,10 +49,10 @@ export function notifySshHandshakeError(
const originalErrorDetail = `Original error message:\n ${error.message}`;
const createTimeoutDetail = () =>
'Troubleshooting:\n' +
- `Make sure you can run "sftp ${config.host}" on the command line.\n` +
- 'Check your .bashrc / .bash_profile for extraneous output.\n' +
- 'You may need to add the following to the top of your .bashrc:\n' +
- ' [ -z "$PS1" ] && return';
+ `Make sure you can run "sftp ${config.host}" on the command line.\n` +
+ 'Check your .bashrc / .bash_profile for extraneous output.\n' +
+ 'You may need to add the following to the top of your .bashrc:\n' +
+ ' [ -z "$PS1" ] && return';
switch (errorType) {
case SshHandshake.ErrorType.HOST_NOT_FOUND:
diff --git a/pkg/nuclide-remote-projects/lib/open-connection.js b/pkg/nuclide-remote-projects/lib/open-connection.js
index c98d49b..9c09094 100644
--- a/pkg/nuclide-remote-projects/lib/open-connection.js
+++ b/pkg/nuclide-remote-projects/lib/open-connection.js
@@ -90,7 +90,7 @@ export function openConnectionDialog(
if (indexToDelete >= compositeConnectionProfiles.length) {
logger.fatal(
'Tried to delete a connection profile with an index that does not exist. ' +
- 'This should never happen.',
+ 'This should never happen.',
);
return;
}
diff --git a/pkg/nuclide-remote-projects/lib/utils.js b/pkg/nuclide-remote-projects/lib/utils.js
index 407fbb8..6104300 100644
--- a/pkg/nuclide-remote-projects/lib/utils.js
+++ b/pkg/nuclide-remote-projects/lib/utils.js
@@ -43,8 +43,8 @@ export function sanitizeNuclideUri(uri_: string): string {
// Add the missing slash, if removed through a path.normalize() call.
if (
uri.startsWith(NUCLIDE_PROTOCOL_PREFIX) &&
- uri[NUCLIDE_PROTOCOL_PREFIX_LENGTH] !==
- '/' /* protocol missing last slash */
+ uri[NUCLIDE_PROTOCOL_PREFIX_LENGTH] !==
+ '/' /* protocol missing last slash */
) {
uri = uri.substring(0, NUCLIDE_PROTOCOL_PREFIX_LENGTH) +
'/' +
diff --git a/pkg/nuclide-rpc/lib/DefinitionValidator.js b/pkg/nuclide-rpc/lib/DefinitionValidator.js
index c8aea7d..1ea2f85 100644
--- a/pkg/nuclide-rpc/lib/DefinitionValidator.js
+++ b/pkg/nuclide-rpc/lib/DefinitionValidator.js
@@ -351,13 +351,13 @@ export function validateDefinitions(definitions: Definitions): void {
previousAlternates.forEach(previous => {
invariant(
previous.kind === 'string-literal' ||
- previous.kind === 'number-literal' ||
- previous.kind === 'boolean-literal',
+ previous.kind === 'number-literal' ||
+ previous.kind === 'boolean-literal',
);
invariant(
alternate.kind === 'string-literal' ||
- alternate.kind === 'number-literal' ||
- alternate.kind === 'boolean-literal',
+ alternate.kind === 'number-literal' ||
+ alternate.kind === 'boolean-literal',
);
if (previous.value === alternate.value) {
throw errorLocations(
diff --git a/pkg/nuclide-rpc/lib/RpcConnection.js b/pkg/nuclide-rpc/lib/RpcConnection.js
index 0772134..ec405ad 100644
--- a/pkg/nuclide-rpc/lib/RpcConnection.js
+++ b/pkg/nuclide-rpc/lib/RpcConnection.js
@@ -144,7 +144,7 @@ class Call {
this.cleanup();
this._reject(new Error(
`Timeout after ${SERVICE_FRAMEWORK_RPC_TIMEOUT_MS} for id: ` +
- `${this._message.id}, ${this._timeoutMessage}.`,
+ `${this._message.id}, ${this._timeoutMessage}.`,
));
}
}
diff --git a/pkg/nuclide-rpc/lib/TypeRegistry.js b/pkg/nuclide-rpc/lib/TypeRegistry.js
index d0b41fe..9d8bcdc 100644
--- a/pkg/nuclide-rpc/lib/TypeRegistry.js
+++ b/pkg/nuclide-rpc/lib/TypeRegistry.js
@@ -254,9 +254,9 @@ export class TypeRegistry {
`${locationToString(
location,
)}: A type by the name ${typeName} has already` +
- ` been registered at ${locationToString(
- existingMarshaller.location,
- )}.`,
+ ` been registered at ${locationToString(
+ existingMarshaller.location,
+ )}.`,
);
}
} else {
@@ -335,7 +335,7 @@ export class TypeRegistry {
argTypes.map((arg, i) => {
invariant(
Object.hasOwnProperty.call(args, arg.name) ||
- canBeUndefined(arg.type),
+ canBeUndefined(arg.type),
`unmarshalArguments: Missing argument: ${arg.name}`,
);
return this.unmarshal(context, args[arg.name], arg.type);
@@ -427,8 +427,8 @@ export class TypeRegistry {
const literalTransformer = (arg, type) => {
invariant(
type.kind === 'string-literal' ||
- type.kind === 'number-literal' ||
- type.kind === 'boolean-literal',
+ type.kind === 'number-literal' ||
+ type.kind === 'boolean-literal',
);
invariant(arg === type.value);
return arg;
@@ -456,8 +456,8 @@ export class TypeRegistry {
const alternate = type.types.find(element => {
invariant(
element.kind === 'string-literal' ||
- element.kind === 'number-literal' ||
- element.kind === 'boolean-literal',
+ element.kind === 'number-literal' ||
+ element.kind === 'boolean-literal',
);
return arg === element.value;
});
@@ -859,8 +859,8 @@ function findAlternate(arg: Object, type: UnionType): ObjectType {
).type;
invariant(
alternateType.kind === 'string-literal' ||
- alternateType.kind === 'number-literal' ||
- alternateType.kind === 'boolean-literal',
+ alternateType.kind === 'number-literal' ||
+ alternateType.kind === 'boolean-literal',
);
return alternateType.value === discriminant;
});
diff --git a/pkg/nuclide-rpc/lib/service-parser.js b/pkg/nuclide-rpc/lib/service-parser.js
index 09a25cc..22f1310 100644
--- a/pkg/nuclide-rpc/lib/service-parser.js
+++ b/pkg/nuclide-rpc/lib/service-parser.js
@@ -286,7 +286,7 @@ class FileParser {
this._assert(
declaration,
declaration.returnType != null &&
- declaration.returnType.type === 'TypeAnnotation',
+ declaration.returnType.type === 'TypeAnnotation',
'Remote functions must be annotated with a return type.',
);
@@ -707,7 +707,7 @@ class FileParser {
this._assert(
typeAnnotation,
typeAnnotation.typeParameters != null &&
- typeAnnotation.typeParameters.params.length === 2,
+ typeAnnotation.typeParameters.params.length === 2,
`${id} takes exactly two type parameters.`,
);
return {
@@ -753,7 +753,7 @@ class FileParser {
this._assert(
typeAnnotation,
typeAnnotation.typeParameters != null &&
- typeAnnotation.typeParameters.params.length === 1,
+ typeAnnotation.typeParameters.params.length === 1,
`${id} has exactly one type parameter.`,
);
return this._parseTypeAnnotation(typeAnnotation.typeParameters.params[0]);
diff --git a/pkg/nuclide-rpc/spec/ErrorService-spec.js b/pkg/nuclide-rpc/spec/ErrorService-spec.js
index 79b3b89..b245961 100644
--- a/pkg/nuclide-rpc/spec/ErrorService-spec.js
+++ b/pkg/nuclide-rpc/spec/ErrorService-spec.js
@@ -48,7 +48,7 @@ describe('ErrorServer', () => {
expect(
e.message.startsWith(
'Remote Error: msg processing message {"protocol":"error_protocol","type":' +
- '"call","method":"ErrorService/promiseError","id":1,"args":{"message":"msg"}}',
+ '"call","method":"ErrorService/promiseError","id":1,"args":{"message":"msg"}}',
),
).toBe(true);
}
@@ -105,7 +105,7 @@ describe('ErrorServer', () => {
expect(
e.message.startsWith(
'Remote Error: msg processing message {"protocol":"error_protocol","type":' +
- '"call","method":"ErrorService/observableError","id":1,"args":{"message":"msg"}}',
+ '"call","method":"ErrorService/observableError","id":1,"args":{"message":"msg"}}',
),
).toBe(true);
completed = true;
diff --git a/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js b/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
index 29f1bb5..eeaca17 100644
--- a/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
+++ b/pkg/nuclide-server/lib/XhrConnectionHeartbeat.js
@@ -66,7 +66,7 @@ export class XhrConnectionHeartbeat {
this._lastHeartbeatTime = this._lastHeartbeatTime || now;
if (
this._lastHeartbeat === 'away' ||
- now - this._lastHeartbeatTime > MAX_HEARTBEAT_AWAY_RECONNECT_MS
+ now - this._lastHeartbeatTime > MAX_HEARTBEAT_AWAY_RECONNECT_MS
) {
// Trigger a websocket reconnect.
this._emitter.emit('reconnect');
diff --git a/pkg/nuclide-settings/lib/SettingsPaneItem.js b/pkg/nuclide-settings/lib/SettingsPaneItem.js
index 222ae4c..e3aff10 100644
--- a/pkg/nuclide-settings/lib/SettingsPaneItem.js
+++ b/pkg/nuclide-settings/lib/SettingsPaneItem.js
@@ -100,10 +100,10 @@ export default class NuclideSettingsPaneItem extends React.Component {
const description = getDescription(schema);
if (
this.state == null ||
- categoryMatches ||
- packageMatches ||
- matchesFilter(this.state.filter, title) ||
- matchesFilter(this.state.filter, description)
+ categoryMatches ||
+ packageMatches ||
+ matchesFilter(this.state.filter, title) ||
+ matchesFilter(this.state.filter, description)
) {
settings[settingName] = {
name: settingName,
diff --git a/pkg/nuclide-source-control-helpers/lib/hg-repository.js b/pkg/nuclide-source-control-helpers/lib/hg-repository.js
index 88e3975..c009115 100644
--- a/pkg/nuclide-source-control-helpers/lib/hg-repository.js
+++ b/pkg/nuclide-source-control-helpers/lib/hg-repository.js
@@ -35,7 +35,7 @@ export default function findHgRepository(
const config = ini.parse(hgrc);
if (
typeof config.paths === 'object' &&
- typeof config.paths.default === 'string'
+ typeof config.paths.default === 'string'
) {
originURL = config.paths.default;
}
diff --git a/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js b/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
index 0f4f00d..9cd14ed 100644
--- a/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
+++ b/pkg/nuclide-source-control-side-bar/lib/RepositorySectionComponent.js
@@ -242,8 +242,8 @@ export default class RepositorySectionComponent extends React.Component {
);
if (
repository != null &&
- uncommittedChanges != null &&
- uncommittedChanges.size > 0
+ uncommittedChanges != null &&
+ uncommittedChanges.size > 0
) {
uncommittedChangesSection = (
<Section
diff --git a/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js b/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
index bea995d..f28f78e 100644
--- a/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
+++ b/pkg/nuclide-source-control-side-bar/lib/SideBarComponent.js
@@ -297,7 +297,7 @@ export default class SideBarComponent extends React.Component {
bookmarks = this.props.projectBookmarks.get(repository.getPath());
if (
this.state.selectedItem != null &&
- this.state.selectedItem.repository === repository
+ this.state.selectedItem.repository === repository
) {
selectedItem = this.state.selectedItem;
}
diff --git a/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js b/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
index f125af3..e97deec 100644
--- a/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
+++ b/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
@@ -49,9 +49,9 @@ export async function asyncExecuteSourceKitten(
{
description: (
'Please double-check that the path you have set for the ' +
- '`nuclide-swift.sourceKittenPath` config setting is correct.<br>' +
- `**Error code:** \`${errorCode}\`<br>` +
- `**Error message:** <pre>${errorMessage}</pre>`
+ '`nuclide-swift.sourceKittenPath` config setting is correct.<br>' +
+ `**Error code:** \`${errorCode}\`<br>` +
+ `**Error message:** <pre>${errorMessage}</pre>`
),
},
);
@@ -60,12 +60,12 @@ export async function asyncExecuteSourceKitten(
atom.notifications.addError('An error occured when invoking SourceKitten', {
description: (
'Please file a bug.<br>' +
- `**exit code:** \`${String(result.exitCode)}\`<br>` +
- `**stdout:** <pre>${String(result.stdout)}</pre><br>` +
- `**stderr:** <pre>${String(result.stderr)}</pre><br>` +
- `**command:** <pre>${String(
- result.command ? result.command : '',
- )}</pre><br>`
+ `**exit code:** \`${String(result.exitCode)}\`<br>` +
+ `**stdout:** <pre>${String(result.stdout)}</pre><br>` +
+ `**stderr:** <pre>${String(result.stderr)}</pre><br>` +
+ `**command:** <pre>${String(
+ result.command ? result.command : '',
+ )}</pre><br>`
),
});
return null;
diff --git a/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js b/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js
index d4c0862..09f89ae 100644
--- a/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js
+++ b/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js
@@ -66,8 +66,8 @@ export default class SwiftPMTaskRunnerActions {
{
description: (
`Nuclide could not parse the YAML file at \`${yamlPath}\`. ` +
- 'Please file a bug, and include the contents of the file in ' +
- 'your report.'
+ 'Please file a bug, and include the contents of the file in ' +
+ 'your report.'
),
},
);
diff --git a/pkg/nuclide-task-runner/lib/main.js b/pkg/nuclide-task-runner/lib/main.js
index ab1347d..a6f6f01 100644
--- a/pkg/nuclide-task-runner/lib/main.js
+++ b/pkg/nuclide-task-runner/lib/main.js
@@ -168,7 +168,7 @@ class Activation {
tasks.filter(
task =>
task.disabled !== true &&
- COMMON_TASK_TYPES.includes(task.type),
+ COMMON_TASK_TYPES.includes(task.type),
),
),
),
@@ -337,7 +337,7 @@ function getInitialVisibility(
// `atom.project.getDirectories()[0]`, but using explicitly serialized package state is better.
if (
serializedState &&
- typeof serializedState.previousSessionVisible === 'boolean'
+ typeof serializedState.previousSessionVisible === 'boolean'
) {
return serializedState.previousSessionVisible;
} else {
diff --git a/pkg/nuclide-task-runner/lib/redux/Epics.js b/pkg/nuclide-task-runner/lib/redux/Epics.js
index aa8e30e..364a1d6 100644
--- a/pkg/nuclide-task-runner/lib/redux/Epics.js
+++ b/pkg/nuclide-task-runner/lib/redux/Epics.js
@@ -224,11 +224,7 @@ export function runTaskEpic(
return Observable.empty();
}
- return createTaskObservable(
- taskMeta,
- store.getState,
- )// Stop listening once the task is done.
- .takeUntil(
+ return createTaskObservable(taskMeta, store.getState).takeUntil(
actions.ofType(
Actions.TASK_COMPLETED,
Actions.TASK_ERRORED,
@@ -271,8 +267,8 @@ export function toggleToolbarVisibilityEpic(
const taskRunnerState = statesForTaskRunners.get(taskRunner);
if (
taskRunnerState != null &&
- taskRunnerState.enabled &&
- taskRunner !== activeTaskRunner
+ taskRunnerState.enabled &&
+ taskRunner !== activeTaskRunner
) {
return Observable.of(
Actions.setToolbarVisibility(true, true),
diff --git a/pkg/nuclide-test-runner/lib/TestRunnerController.js b/pkg/nuclide-test-runner/lib/TestRunnerController.js
index b7a7426..6f7aae6 100644
--- a/pkg/nuclide-test-runner/lib/TestRunnerController.js
+++ b/pkg/nuclide-test-runner/lib/TestRunnerController.js
@@ -152,7 +152,7 @@ export class TestRunnerController {
// the debugger before running the tests. We do not handle killing the debugger.
if (
this._isSelectedTestRunnerDebuggable() &&
- this._attachDebuggerBeforeRunning
+ this._attachDebuggerBeforeRunning
) {
const isAttached = await this._isDebuggerAttached(
selectedTestRunner.debuggerProviderName,
@@ -345,7 +345,7 @@ export class TestRunnerController {
let progressValue;
if (
this._testSuiteModel &&
- this._executionState === TestRunnerPanel.ExecutionState.RUNNING
+ this._executionState === TestRunnerPanel.ExecutionState.RUNNING
) {
progressValue = this._testSuiteModel.progressPercent();
} else {
diff --git a/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js b/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js
index f5b713a..e65ca72 100644
--- a/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js
+++ b/pkg/nuclide-test-runner/lib/ui/TestRunnerPanel.js
@@ -237,8 +237,8 @@ export default class TestRunnerPanel extends React.Component {
className="trashcan inline-block"
disabled={
this.isDisabled() ||
- this.props.executionState ===
- TestRunnerPanel.ExecutionState.RUNNING
+ this.props.executionState ===
+ TestRunnerPanel.ExecutionState.RUNNING
}
onClick={this.props.onClickClear}
title="Clear Output"
diff --git a/pkg/nuclide-type-coverage/lib/StatusBarTileComponent.js b/pkg/nuclide-type-coverage/lib/StatusBarTileComponent.js
index 6581d58..dabebf1 100644
--- a/pkg/nuclide-type-coverage/lib/StatusBarTileComponent.js
+++ b/pkg/nuclide-type-coverage/lib/StatusBarTileComponent.js
@@ -46,7 +46,7 @@ export class StatusBarTileComponent extends React.Component {
'text-error': percentage <= REALLY_BAD_THRESHOLD,
'text-warning': (
percentage > REALLY_BAD_THRESHOLD &&
- percentage <= NOT_GREAT_THRESHOLD
+ percentage <= NOT_GREAT_THRESHOLD
),
// Nothing applied if percentage > NOT_GREAT_THRESHOLD,
'nuclide-type-coverage-status-bar-active': this.props.isActive,
diff --git a/pkg/nuclide-ui/AtomInput.js b/pkg/nuclide-ui/AtomInput.js
index ead050c..d4a8753 100644
--- a/pkg/nuclide-ui/AtomInput.js
+++ b/pkg/nuclide-ui/AtomInput.js
@@ -194,19 +194,17 @@ export class AtomInput extends React.Component {
),
});
- return /* Because the contents of `<atom-text-editor>` elements are managed by its custom web*/
+ return; /* Because the contents of `<atom-text-editor>` elements are managed by its custom web*/
/* component class when "Use Shadow DOM" is disabled, this element should never have children.*/
/* If an element has no children, React guarantees it will never re-render the element (which*/
/* would wipe out the web component's work in this case).*/
- (
- <atom-text-editor
- class={className}
- mini
- onClick={this.props.onClick}
- onFocus={this.props.onFocus}
- onBlur={this.props.onBlur}
- />
- );
+ <atom-text-editor
+ class={className}
+ mini
+ onClick={this.props.onClick}
+ onFocus={this.props.onFocus}
+ onBlur={this.props.onBlur}
+ />;
}
getText(): string {
diff --git a/pkg/nuclide-ui/AtomTextEditor.js b/pkg/nuclide-ui/AtomTextEditor.js
index d2e3300..0b193b8 100644
--- a/pkg/nuclide-ui/AtomTextEditor.js
+++ b/pkg/nuclide-ui/AtomTextEditor.js
@@ -171,7 +171,7 @@ export class AtomTextEditor extends React.Component {
componentWillReceiveProps(nextProps: Props): void {
if (
nextProps.textBuffer !== this.props.textBuffer ||
- nextProps.readOnly !== this.props.readOnly
+ nextProps.readOnly !== this.props.readOnly
) {
const previousTextContents = this.getTextBuffer().getText();
const nextTextContents = nextProps.textBuffer == null
diff --git a/pkg/nuclide-ui/ChangedFilesList.js b/pkg/nuclide-ui/ChangedFilesList.js
index 10eea2a..26d0e07 100644
--- a/pkg/nuclide-ui/ChangedFilesList.js
+++ b/pkg/nuclide-ui/ChangedFilesList.js
@@ -102,10 +102,9 @@ export default class ChangedFilesList extends React.Component {
delay: 100,
placement: 'bottom',
})}
- onClick={() =>
- this.setState({
- visiblePagesCount: this.state.visiblePagesCount + 1,
- })}
+ onClick={() => this.setState({
+ visiblePagesCount: this.state.visiblePagesCount + 1,
+ })}
/>
: null;
diff --git a/pkg/nuclide-ui/Combobox.js b/pkg/nuclide-ui/Combobox.js
index 4a880ca..39c40cd 100644
--- a/pkg/nuclide-ui/Combobox.js
+++ b/pkg/nuclide-ui/Combobox.js
@@ -236,7 +236,7 @@ export class Combobox extends React.Component {
return -1;
} else if (
this.state.selectedIndex === -1 ||
- this.state.selectedIndex >= filteredOptions.length
+ this.state.selectedIndex >= filteredOptions.length
) {
// If there are options and the selected index is out of bounds,
// default to the first item.
@@ -281,12 +281,12 @@ export class Combobox extends React.Component {
const {relatedTarget} = event;
if (
relatedTarget == null ||
- // TODO(hansonw): Move this check inside AtomInput.
- // See https://github.com/atom/atom/blob/master/src/text-editor-element.coffee#L145
- relatedTarget.tagName === 'INPUT' &&
- relatedTarget.classList.contains('hidden-input') ||
- // Selecting a menu item registers on the document body.
- relatedTarget === document.body
+ // TODO(hansonw): Move this check inside AtomInput.
+ // See https://github.com/atom/atom/blob/master/src/text-editor-element.coffee#L145
+ relatedTarget.tagName === 'INPUT' &&
+ relatedTarget.classList.contains('hidden-input') ||
+ // Selecting a menu item registers on the document body.
+ relatedTarget === document.body
) {
return;
}
@@ -370,7 +370,7 @@ export class Combobox extends React.Component {
if (
this.state.error != null &&
- this.props.formatRequestOptionsErrorMessage != null
+ this.props.formatRequestOptionsErrorMessage != null
) {
const message = this.props.formatRequestOptionsErrorMessage(
this.state.error,
diff --git a/pkg/nuclide-ui/LazyNestedValueComponent.js b/pkg/nuclide-ui/LazyNestedValueComponent.js
index 5f3a917..89da998 100644
--- a/pkg/nuclide-ui/LazyNestedValueComponent.js
+++ b/pkg/nuclide-ui/LazyNestedValueComponent.js
@@ -169,12 +169,12 @@ class ValueComponent extends React.Component {
const nodeData = expandedValuePaths.get(path);
if (
!this.state.isExpanded &&
- nodeData != null &&
- nodeData.isExpanded &&
- this._shouldFetch() &&
- evaluationResult != null &&
- evaluationResult.objectId != null &&
- fetchChildren != null
+ nodeData != null &&
+ nodeData.isExpanded &&
+ this._shouldFetch() &&
+ evaluationResult != null &&
+ evaluationResult.objectId != null &&
+ fetchChildren != null
) {
invariant(evaluationResult.objectId != null);
this.setState({
@@ -187,9 +187,9 @@ class ValueComponent extends React.Component {
componentWillReceiveProps(nextProps: LazyNestedValueComponentProps): void {
if (
this._shouldFetch() &&
- this.state.isExpanded &&
- nextProps.evaluationResult != null &&
- nextProps.fetchChildren != null
+ this.state.isExpanded &&
+ nextProps.evaluationResult != null &&
+ nextProps.fetchChildren != null
) {
const {objectId} = nextProps.evaluationResult;
if (objectId == null) {
@@ -221,9 +221,9 @@ class ValueComponent extends React.Component {
if (!this.state.isExpanded) {
if (
this._shouldFetch() &&
- typeof fetchChildren === 'function' &&
- evaluationResult != null &&
- evaluationResult.objectId != null
+ typeof fetchChildren === 'function' &&
+ evaluationResult != null &&
+ evaluationResult.objectId != null
) {
newState.children = fetchChildren(evaluationResult.objectId);
}
diff --git a/pkg/nuclide-ui/Modal.js b/pkg/nuclide-ui/Modal.js
index 443a455..3f204b1 100644
--- a/pkg/nuclide-ui/Modal.js
+++ b/pkg/nuclide-ui/Modal.js
@@ -49,7 +49,7 @@ export class Modal extends React.Component {
// If the user clicks outside of the modal, close it.
if (
this._innerElement &&
- !this._innerElement.contains(((event.target: any): Node))
+ !this._innerElement.contains(((event.target: any): Node))
) {
this.props.onDismiss();
}
diff --git a/pkg/nuclide-ui/Portal.js b/pkg/nuclide-ui/Portal.js
index 757647d..09609e9 100644
--- a/pkg/nuclide-ui/Portal.js
+++ b/pkg/nuclide-ui/Portal.js
@@ -42,7 +42,7 @@ export class Portal extends React.Component {
_render(element: ?React.Element<any>, container: HTMLElement): void {
if (
this._container != null &&
- (container !== this._container || element == null)
+ (container !== this._container || element == null)
) {
ReactDOM.unmountComponentAtNode(this._container);
}
diff --git a/pkg/nuclide-ui/ResizableFlexContainer.js b/pkg/nuclide-ui/ResizableFlexContainer.js
index de33d11..196b5b5 100644
--- a/pkg/nuclide-ui/ResizableFlexContainer.js
+++ b/pkg/nuclide-ui/ResizableFlexContainer.js
@@ -39,7 +39,7 @@ function getChildrenFlexScales(children: ?React.Element<any>): Array<number> {
return child.props.initialFlexScale;
}
}) ||
- [],
+ [],
);
}
@@ -83,10 +83,11 @@ export class ResizableFlexContainer extends React.Component {
const flexScale = flexScales[i];
if (direction === FlexDirections.HORIZONTAL) {
lastPane = lastPane.splitRight({flexScale});
- } else
- /* direction === SplitDirections.VERTICAL */ {
- lastPane = lastPane.splitDown({flexScale});
- }
+ } else {
+ /* direction === SplitDirections.VERTICAL */ lastPane = lastPane.splitDown(
+ {flexScale},
+ );
+ }
this._panes.push(lastPane);
}
startingPane.setFlexScale(flexScales[0]);
diff --git a/pkg/nuclide-ui/Table.js b/pkg/nuclide-ui/Table.js
index 956b997..dd53b75 100644
--- a/pkg/nuclide-ui/Table.js
+++ b/pkg/nuclide-ui/Table.js
@@ -218,8 +218,8 @@ export class Table extends React.Component {
_handleResizerGlobalMouseMove(event: MouseEvent): void {
if (
this._resizeStartX == null ||
- this._tableWidth == null ||
- this._columnBeingResized == null
+ this._tableWidth == null ||
+ this._columnBeingResized == null
) {
return;
}
@@ -324,7 +324,7 @@ export class Table extends React.Component {
if (sortedColumn === key) {
sortIndicator = (
<span>
- <Icon icon={sortDescending ? 'triangle-down' : 'triangle-up'} />
+ <Icon icon={sortDescending ? 'triangle-down' : 'triangle-up'} />
</span>
);
}
diff --git a/pkg/nuclide-ui/Tree.js b/pkg/nuclide-ui/Tree.js
index 337bcd3..65b521a 100644
--- a/pkg/nuclide-ui/Tree.js
+++ b/pkg/nuclide-ui/Tree.js
@@ -34,9 +34,10 @@ export const TreeItem = (props: TreeItemProps) => {
)}
{...remainingProps}
>
- {selected && typeof children === 'string'
- ? // String children must be wrapped to receive correct styles when selected.
- <span>{children}</span>
+ {selected &&
+ typeof children ===
+ 'string' /* String children must be wrapped to receive correct styles when selected.*/
+ ? <span>{children}</span>
: children}
</li>
);
diff --git a/pkg/nuclide-ui/TreeRootComponent.js b/pkg/nuclide-ui/TreeRootComponent.js
index a7a34b9..f20923b 100644
--- a/pkg/nuclide-ui/TreeRootComponent.js
+++ b/pkg/nuclide-ui/TreeRootComponent.js
@@ -257,7 +257,7 @@ export class TreeRootComponent extends React.Component {
definition.shouldDisplay = () => {
if (
this.state.roots.length === 0 &&
- !definition.shouldDisplayIfTreeIsEmpty
+ !definition.shouldDisplayIfTreeIsEmpty
) {
return false;
}
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
index 6734eaf..6355d5e 100755
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/mru-item-view.js
@@ -75,7 +75,7 @@ export default class MRUItemView {
for (let i = 0; i < projectPaths.length; i++) {
if (
filePath === projectPaths[i] ||
- filePath.startsWith(projectPaths[i] + path.sep)
+ filePath.startsWith(projectPaths[i] + path.sep)
) {
return atom.project.getRepositories()[i];
}
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
index e80b755..4ac303a 100644
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-bar-view.js
@@ -567,7 +567,7 @@
(typeof item.isModified === 'function'
? item.isModified()
: void 0) &&
- item.getText != null
+ item.getText != null
) {
event.dataTransfer.setData('has-unsaved-changes', 'true');
return event.dataTransfer.setData('modified-text', item.getText());
diff --git a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
index ca0d796..333fdec 100644
--- a/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
+++ b/pkg/nuclide-ui/VendorLib/atom-tabs/lib/tab-view.js
@@ -453,10 +453,10 @@
return this.itemTitle.classList.add('icon', 'icon-' + this.iconName);
} else if (
this.path != null &&
- (this.iconName = FileIcons.getService().iconClassForPath(
- this.path,
- 'tabs',
- ))
+ (this.iconName = FileIcons.getService().iconClassForPath(
+ this.path,
+ 'tabs',
+ ))
) {
if (!Array.isArray(names = this.iconName)) {
names = names.toString().split(/\s+/g);
diff --git a/pkg/nuclide-unicode-datatip/lib/Unicode.js b/pkg/nuclide-unicode-datatip/lib/Unicode.js
index 330179f..4aa0ca7 100644
--- a/pkg/nuclide-unicode-datatip/lib/Unicode.js
+++ b/pkg/nuclide-unicode-datatip/lib/Unicode.js
@@ -38,8 +38,8 @@ export function decodeSurrogateCodePoints(
highSurrogate = codePoint;
} else if (
codePoint >= LOW_SURROGATE_START &&
- codePoint <= LOW_SURROGATE_END &&
- highSurrogate !== -1
+ codePoint <= LOW_SURROGATE_END &&
+ highSurrogate !== -1
) {
const decoded = 0x10000 +
(highSurrogate - HIGH_SURROGATE_START) * 0x400 +
diff --git a/pkg/nuclide-watchman-helpers/lib/WatchmanClient.js b/pkg/nuclide-watchman-helpers/lib/WatchmanClient.js
index 41f6041..74a6244 100644
--- a/pkg/nuclide-watchman-helpers/lib/WatchmanClient.js
+++ b/pkg/nuclide-watchman-helpers/lib/WatchmanClient.js
@@ -235,8 +235,8 @@ export default class WatchmanClient {
if (!watchmanVersion || watchmanVersion < '3.1.0') {
throw new Error(
'Watchman version: ' +
- watchmanVersion +
- ' does not support watch-project',
+ watchmanVersion +
+ ' does not support watch-project',
);
}
const response = await this._command('watch-project', directoryPath);
diff --git a/pkg/nuclide-working-sets-common/lib/WorkingSet.js b/pkg/nuclide-working-sets-common/lib/WorkingSet.js
index e488d36..1e044bc 100644
--- a/pkg/nuclide-working-sets-common/lib/WorkingSet.js
+++ b/pkg/nuclide-working-sets-common/lib/WorkingSet.js
@@ -62,9 +62,9 @@ export class WorkingSet {
} catch (e) {
logger.error(
'Failed to initialize a WorkingSet with URIs ' +
- uris.join(',') +
- '. ' +
- e.message,
+ uris.join(',') +
+ '. ' +
+ e.message,
);
this._uris = [];
this._root = null;
diff --git a/pkg/nuclide-workspace-views/lib/main.js b/pkg/nuclide-workspace-views/lib/main.js
index 875eb94..136d515 100644
--- a/pkg/nuclide-workspace-views/lib/main.js
+++ b/pkg/nuclide-workspace-views/lib/main.js
@@ -140,8 +140,7 @@ function createPackageStore(rawState: Object): Store {
const rootEpic = (actions, store) => combineEpics(...epics)(
actions,
store,
- )// Log errors and continue.
- .catch((err, stream) => {
+ ).catch((err, stream) => {
getLogger().error(err);
return stream;
});
diff --git a/pkg/nuclide-workspace-views/lib/redux/Epics.js b/pkg/nuclide-workspace-views/lib/redux/Epics.js
index 9bcd811..34415a8 100644
--- a/pkg/nuclide-workspace-views/lib/redux/Epics.js
+++ b/pkg/nuclide-workspace-views/lib/redux/Epics.js
@@ -87,8 +87,7 @@ export function trackActionsEpic(
actions: ActionsObservable<Action>,
store: Store,
): Observable<Action> {
- return actions.ofType(Actions.ITEM_CREATED)// Map to a tracking event.
- .map(action => {
+ return actions.ofType(Actions.ITEM_CREATED).map(action => {
invariant(action.type === Actions.ITEM_CREATED);
const {itemType} = action.payload;
// TODO: Appeal to `item` for custom tracking event here. Let's wait until we need that
diff --git a/pkg/sample-nux-example/lib/main.js b/pkg/sample-nux-example/lib/main.js
index 4b0078a..8632673 100644
--- a/pkg/sample-nux-example/lib/main.js
+++ b/pkg/sample-nux-example/lib/main.js
@@ -88,7 +88,7 @@ function generateTestNuxTour(
* NUX interaction. The NuxView will not progress to the next one in the
* NuxTour until the predicate evaluates to true.
*/
- // completionPredicate: () => true,,
+ // completionPredicate: () => true,,,
});
const nuxList = Array(numViews)
.fill()
@@ -113,7 +113,7 @@ function generateTestNuxTour(
* session. Only to be used for development purposes - the flow typing ensures
* that this cannot be set to true when shipping the NUX.
*/
- // developmentMode: true,,
+ // developmentMode: true,,,
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment