Skip to content

Commit d965603

Browse files
author
Ives van Hoorne
committed
Prettier
1 parent 9161f81 commit d965603

File tree

11 files changed

+37
-46
lines changed

11 files changed

+37
-46
lines changed

packages/app/scripts/build.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ function printFileSizes(stats, previousSizeMap) {
9797
// Create the production build and print the deployment instructions.
9898
function build(previousSizeMap) {
9999
console.log(
100-
`Creating a ${process.env.NODE_ENV === 'production'
101-
? 'production'
102-
: 'development'} build...`
100+
`Creating a ${
101+
process.env.NODE_ENV === 'production' ? 'production' : 'development'
102+
} build...`
103103
);
104104
webpack(config).run((err, stats) => {
105105
if (err) {

packages/app/src/app/components/Preview/DevTools/Tests/TestDetails/ErrorDetails/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,11 @@ const formatDiffMessage = (error: TestError, path: string) => {
4646
.replace(/(Difference:)/m, `<span style="color:${white}">$1</span>`)
4747
.replace(
4848
/(Expected.*\n)(.*)/m,
49-
`<span style="color:${
50-
white
51-
}">$1</span><span style="color:${theme.green()}">$2</span>`
49+
`<span style="color:${white}">$1</span><span style="color:${theme.green()}">$2</span>`
5250
)
5351
.replace(
5452
/(Received.*\n)(.*)/m,
55-
`<span style="color:${
56-
white
57-
}">$1</span><span style="color:${theme.red()}">$2</span>`
53+
`<span style="color:${white}">$1</span><span style="color:${theme.red()}">$2</span>`
5854
)
5955
.replace(/^(-.*)/gm, `<span style="color:${theme.red()}">$1</span>`)
6056
.replace(

packages/app/src/app/pages/Sandbox/Editor/Workspace/Advertisement/CodeSponsor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default ({ token, theme }: Props) => {
1616
<a href={linkHref} className="cs__blurb" target="_blank" rel="noopener">
1717
<strong>Rollbar</strong>{' '}
1818
<span>
19-
Real-time error monitoring, alerting, and analytics for software developers{' '}
19+
Real-time error monitoring, alerting, and analytics for software
20+
developers{' '}
2021
<span aria-label="rocket" role="img">
2122
🚀
2223
</span>

packages/app/src/app/pages/Sandbox/Editor/Workspace/Versions/PublishFields/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ export default class PublishFields extends React.PureComponent {
2323
minor;
2424
patch;
2525

26-
getVersion = (
27-
{
28-
major = this.state.major,
29-
minor = this.state.minor,
30-
patch = this.state.patch,
31-
} = {}
32-
) => `${major}.${minor}.${patch}`;
26+
getVersion = ({
27+
major = this.state.major,
28+
minor = this.state.minor,
29+
patch = this.state.patch,
30+
} = {}) => `${major}.${minor}.${patch}`;
3331

3432
isDuplicateVersion = (version = this.getVersion()) =>
3533
!!this.props.versions.find(v => v.version === version);

packages/app/src/app/pages/Terms/TOS.js

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ export default () => (
88
<p>Last updated: July 20, 2017</p>
99

1010
<p>
11-
These Terms and Conditions ({'"'}Terms{'"'}, {'"'}Terms and Conditions{'"'})
12-
govern your relationship with https://codesandbox.io website (the {'"'}Service{'"'})
13-
and the Sandbox creation service therein operated by Bas en Ives VOF ({'"'}us{'"'},{' '}
14-
{'"'}we{'"'}, or {'"'}our{'"'}).
11+
These Terms and Conditions ({'"'}Terms{'"'}, {'"'}Terms and Conditions{
12+
'"'
13+
}) govern your relationship with https://codesandbox.io website (the {'"'}Service{
14+
'"'
15+
}) and the Sandbox creation service therein operated by Bas en Ives VOF ({
16+
'"'
17+
}us{'"'}, {'"'}we{'"'}, or {'"'}our{'"'}).
1518
</p>
1619

1720
<p>
@@ -37,8 +40,9 @@ export default () => (
3740
<h2>Subscriptions</h2>
3841

3942
<p>
40-
Some parts of the Service are billed on a subscription basis ({'"'}Subscription(s){'"'}).
41-
You will be billed in advance on a recurring and periodic basis ({'"'}Billing
43+
Some parts of the Service are billed on a subscription basis ({'"'}Subscription(s){
44+
'"'
45+
}). You will be billed in advance on a recurring and periodic basis ({'"'}Billing
4246
Cycle{'"'}). Billing cycles are set on a monthly basis.
4347
</p>
4448

@@ -99,9 +103,10 @@ export default () => (
99103

100104
<p>
101105
Our Service allows you to post, link, store, share and otherwise make
102-
available certain information, text, graphics, videos, or other material ({'"'}Content{'"'}).
103-
You are responsible for the Content that you post to the Service,
104-
including its legality, reliability, and appropriateness.
106+
available certain information, text, graphics, videos, or other material ({
107+
'"'
108+
}Content{'"'}). You are responsible for the Content that you post to the
109+
Service, including its legality, reliability, and appropriateness.
105110
</p>
106111

107112
<p>

packages/app/src/sandbox/eval/loaders/eval.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ export default function(
2121
const globalsValues = Object.keys(globals).map(k => globals[k]);
2222

2323
try {
24-
const newCode = `(function evaluate(require, module, exports, process, setImmediate, Buffer, global${
25-
globalsCode
26-
}) {${code}\n})`;
24+
const newCode = `(function evaluate(require, module, exports, process, setImmediate, Buffer, global${globalsCode}) {${code}\n})`;
2725
// eslint-disable-next-line no-eval
2826
(0, eval)(newCode).apply(this, [
2927
require,

packages/app/src/sandbox/eval/transpilers/vue/loader.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ export default function(content: string, loaderContext: LoaderContext) {
186186
: getRequireString('styles', style, i, style.scoped);
187187

188188
output +=
189-
`module.hot && module.hot.accept([${
190-
requirePath
191-
}], function () {\n` +
189+
`module.hot && module.hot.accept([${requirePath}], function () {\n` +
192190
// 1. check if style has been injected
193191
` var oldLocals = cssModules["${moduleName}"]\n` +
194192
` if (!oldLocals) return\n` +
@@ -344,9 +342,9 @@ export default function(content: string, loaderContext: LoaderContext) {
344342
' delete Component.options._Ctor\n' +
345343
' }\n';
346344
}
347-
output += ` hotAPI.${functionalTemplate ? 'rerender' : 'reload'}("${
348-
moduleId
349-
}", Component.options)\n }\n`;
345+
output += ` hotAPI.${
346+
functionalTemplate ? 'rerender' : 'reload'
347+
}("${moduleId}", Component.options)\n }\n`;
350348
// dispose
351349
output +=
352350
' module.hot.dispose(function (data) {\n' +

packages/app/src/sandbox/react-error-overlay/components/suggestions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export function createSuggestions(error: SandboxError) {
2121
button.setAttribute('onmouseover', 'this.style.backgroundColor="#78CDF7"');
2222
button.setAttribute(
2323
'onmouseout',
24-
`this.style.backgroundColor="${suggestionsButtonStyle[
25-
'background-color'
26-
]}"`
24+
`this.style.backgroundColor="${
25+
suggestionsButtonStyle['background-color']
26+
}"`
2727
);
2828
applyStyles(button, suggestionsButtonStyle);
2929

packages/common/components/Select/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import styled from 'styled-components';
22

33
export default styled.select`
44
transition: 0.3s ease border-color;
5-
background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgNC45NSAxMCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xLjQxIDQuNjdsMS4wNy0xLjQ5IDEuMDYgMS40OUgxLjQxek0zLjU0IDUuMzNMMi40OCA2LjgyIDEuNDEgNS4zM2gyLjEzeiI+PC9wYXRoPjwvc3ZnPg==)
6-
no-repeat 90% 40%;
5+
background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgNC45NSAxMCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xLjQxIDQuNjdsMS4wNy0xLjQ5IDEuMDYgMS40OUgxLjQxek0zLjU0IDUuMzNMMi40OCA2LjgyIDEuNDEgNS4zM2gyLjEzeiI+PC9wYXRoPjwvc3ZnPg==);
76
background-color: rgba(0, 0, 0, 0.3);
87
color: white;
98
border: none;

packages/common/components/spacing/get-spacing.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@ export default function({
1212
const bottomMargin = [bottom, vertical, margin].find(s => s != null) || 0;
1313
const leftMargin = [left, horizontal, margin].find(s => s != null) || 0;
1414

15-
return `${topMargin}rem ${rightMargin}rem ${bottomMargin}rem ${
16-
leftMargin
17-
}rem`;
15+
return `${topMargin}rem ${rightMargin}rem ${bottomMargin}rem ${leftMargin}rem`;
1816
}

0 commit comments

Comments
 (0)