Skip to content

Instantly share code, notes, and snippets.

@vjeux
Created January 18, 2017 23:44
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/682684c96091f359359e57b0a18de078 to your computer and use it in GitHub Desktop.
Save vjeux/682684c96091f359359e57b0a18de078 to your computer and use it in GitHub Desktop.
diff --git a/pkg/nuclide-diff-view/lib/DiffViewComponent.js b/pkg/nuclide-diff-view/lib/DiffViewComponent.js
index 428540f..1370d1c 100644
--- a/pkg/nuclide-diff-view/lib/DiffViewComponent.js
+++ b/pkg/nuclide-diff-view/lib/DiffViewComponent.js
@@ -228,11 +228,12 @@ export function pixelRangeForNavigationSection(
const lineHeight = textEditorElement.getModel().getLineHeightInPixels();
return {
top: textEditorElement.pixelPositionForBufferPosition([lineNumber, 0]).top,
- bottom: textEditorElement.pixelPositionForBufferPosition([
- lineNumber + lineCount - 1,
- 0,
- ]).top +
- lineHeight,
+ bottom:
+ textEditorElement.pixelPositionForBufferPosition([
+ lineNumber + lineCount - 1,
+ 0,
+ ]).top +
+ lineHeight,
};
}
diff --git a/pkg/nuclide-diff-view/lib/redux/Epics.js b/pkg/nuclide-diff-view/lib/redux/Epics.js
index e12d9e4..f5b0a84 100644
--- a/pkg/nuclide-diff-view/lib/redux/Epics.js
+++ b/pkg/nuclide-diff-view/lib/redux/Epics.js
@@ -117,8 +117,9 @@ function notifyCwdMismatch(
},
},
],
- detail: 'You can always switch your working directory\n' +
- 'from the file tree.',
+ detail:
+ 'You can always switch your working directory\n' +
+ 'from the file tree.',
dismissable: true,
},
);
diff --git a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js100644
--- a/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js
+++ b/pkg/nuclide-react-inspector/VendorLib/dev-tools/build/embed.js
@@ -728,18 +728,20 @@
boxWrap(dims, 'padding', this.padding);
assign(this.content.style, {
- height: box.height -
- dims.borderTop -
- dims.borderBottom -
- dims.paddingTop -
- dims.paddingBottom +
- 'px',
- width: box.width -
- dims.borderLeft -
- dims.borderRight -
- dims.paddingLeft -
- dims.paddingRight +
- 'px',
+ height:
+ box.height -
+ dims.borderTop -
+ dims.borderBottom -
+ dims.paddingTop -
+ dims.paddingBottom +
+ 'px',
+ width:
+ box.width -
+ dims.borderLeft -
+ dims.borderRight -
+ dims.paddingLeft -
+ dims.paddingRight +
+ 'px',
});
assign(this.node.style, {
diff --git a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js7c263 100644
--- a/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
+++ b/pkg/nuclide-react-native/lib/packager/PackagerActivation.js
@@ -63,9 +63,10 @@ export class PackagerActivation {
"Couldn't find a React Native project",
{
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.',
+ 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.',
},
);
return;
diff --git a/pkg/nuclide-remote-atom-rpc/bin/main.js b/pkg/nuclide-remote-atom-rpc/bin/main.js
index 423a492..3391b12 100644
--- a/pkg/nuclide-remote-atom-rpc/bin/main.js
+++ b/pkg/nuclide-remote-atom-rpc/bin/main.js
@@ -130,8 +130,9 @@ async function run() {
.demand(1, 'At least one file name is required.')
.option('a', {
alias: 'add',
- describe: 'Ignored, as --add as always implied. ' +
- 'Included for compatibility with atom CLI.',
+ describe:
+ 'Ignored, as --add as always implied. ' +
+ 'Included for compatibility with atom CLI.',
type: 'boolean',
})
.option('w', {
diff --git a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js798b23e 100644
--- a/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
+++ b/pkg/nuclide-remote-projects/lib/ConnectionDetailsPrompt.js
@@ -186,8 +186,9 @@ export default class ConnectionDetailsPrompt extends React.Component {
this.tip.style.zIndex = 10999;
return 'right';
},
- title: 'The settings most recently used to connect. To save settings permanently, ' +
- 'create a profile.',
+ title:
+ 'The settings most recently used to connect. To save settings permanently, ' +
+ 'create a profile.',
})}
/>
Most Recent
diff --git a/pkg/nuclide-remote-projects/lib/main.js b/pkg/nuclide-remote-projects/lib/main.js
index 442a665..d76ac99 100644
--- a/pkg/nuclide-remote-projects/lib/main.js
+++ b/pkg/nuclide-remote-projects/lib/main.js
@@ -167,9 +167,10 @@ 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?",
+ message:
+ "No more remote projects on the host: '" +
+ hostname +
+ "'. Would you like to shutdown Nuclide server there?",
buttons,
});
@@ -370,8 +371,9 @@ async function reloadRemoteProjects(
function shutdownServersAndRestartNuclide(): void {
atom.confirm({
- message: 'This will shutdown your Nuclide servers and restart Atom, ' +
- 'discarding all unsaved changes. Continue?',
+ message:
+ 'This will shutdown your Nuclide servers and restart Atom, ' +
+ 'discarding all unsaved changes. Continue?',
buttons: {
'Shutdown & Restart': async () => {
try {
diff --git a/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js b/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
index af24890..59db2c6 100644
--- a/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
+++ b/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js
@@ -47,22 +47,24 @@ export async function asyncExecuteSourceKitten(
atom.notifications.addError(
`Could not invoke SourceKitten at path \`${sourceKittenPath}\``,
{
- 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>`,
+ 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>`,
},
);
return null;
} else if (result.exitCode !== 0 || result.stdout.length === 0) {
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>`,
+ 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>`,
});
return null;
}
diff --git a/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js b/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js377 100644
--- a/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js
+++ b/pkg/nuclide-swift/lib/taskrunner/SwiftPMTaskRunnerActions.js
@@ -61,9 +61,10 @@ export default class SwiftPMTaskRunnerActions {
atom.notifications.addError(
'The YAML produced by the Swift package manager is malformed',
{
- description: `Nuclide could not parse the YAML file at \`${yamlPath}\`. ` +
- 'Please file a bug, and include the contents of the file in ' +
- 'your report.',
+ description:
+ `Nuclide could not parse the YAML file at \`${yamlPath}\`. ` +
+ 'Please file a bug, and include the contents of the file in ' +
+ 'your report.',
},
);
return;
diff --git a/pkg/nuclide-ui/AtomInput.js b/pkg/nuclide-ui/AtomInput.js
index 6f588bd..6fb4d35 100644
--- a/pkg/nuclide-ui/AtomInput.js
+++ b/pkg/nuclide-ui/AtomInput.js
@@ -190,23 +190,22 @@ export class AtomInput extends React.Component {
render(): React.Element<any> {
const className = classNames(this.props.className, {
'atom-text-editor-unstyled': this.props.unstyled,
- [`atom-text-editor-${maybeToString(this.props.size)}`]: this.props.size !=
- null,
+ [`atom-text-editor-${maybeToString(this.props.size)}`]:
+ this.props.size != null,
});
diff --git a/pkg/nuclide-ui/PanelComponentScroller.js b/pkg/nuclide-ui/PanelComponentScroller.js
index 25a7542..0b9f026 100644
--- a/pkg/nuclide-ui/PanelComponentScroller.js
+++ b/pkg/nuclide-ui/PanelComponentScroller.js
@@ -27,8 +27,8 @@ export class PanelComponentScroller extends React.Component {
? null
: {overflowX: this.props.overflowX};
const className = classnames('nuclide-ui-panel-component-scroller', {
- 'nuclide-ui-panel-component-scroller--column': this.props.flexDirection ===
- 'column',
+ 'nuclide-ui-panel-component-scroller--column':
+ this.props.flexDirection === 'column',
});
return (
diff --git a/pkg/nuclide-ui/Toolbar.js b/pkg/nuclide-ui/Toolbar.js
index 4c0188e..e258cf0 100644
--- a/pkg/nuclide-ui/Toolbar.js
+++ b/pkg/nuclide-ui/Toolbar.js
@@ -22,9 +22,8 @@ export const Toolbar = (props: Props) => {
const className = classnames(
'nuclide-ui-toolbar',
{
- [`nuclide-ui-toolbar--${maybeToString(
- props.location,
- )}`]: props.location != null,
+ [`nuclide-ui-toolbar--${maybeToString(props.location)}`]:
+ props.location != null,
},
props.className,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment