Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed May 10, 2018
1 parent 06f68ce commit 4b6e332
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
8 changes: 3 additions & 5 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2013-present, Facebook, Inc.
*
* @emails react-core
*/
*/

'use strict';

Expand All @@ -25,8 +25,7 @@ module.exports = {
'gatsby-plugin-react-next',
{
resolve: 'gatsby-plugin-crowdin',
options: {
},
options: {},
},
'gatsby-plugin-twitter',
{
Expand Down Expand Up @@ -76,8 +75,7 @@ module.exports = {
},
{
resolve: 'gatsby-plugin-crowdin',
options: {
},
options: {},
},
'gatsby-remark-use-jsx',
{
Expand Down
4 changes: 3 additions & 1 deletion plugins/gatsby-source-react-error-codes/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ exports.sourceNodes = async ({boundActionCreators}) => {
});
} catch (error) {
console.error(
`The gatsby-source-react-error-codes plugin has failed:\n${error.message}`,
`The gatsby-source-react-error-codes plugin has failed:\n${
error.message
}`,
);

process.exit(1);
Expand Down
3 changes: 2 additions & 1 deletion src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ class CodeEditor extends Component {
<input
checked={this.state.showJSX}
onChange={event =>
this.setState({showJSX: event.target.checked})}
this.setState({showJSX: event.target.checked})
}
type="checkbox"
/>{' '}
JSX?
Expand Down
5 changes: 3 additions & 2 deletions src/components/MarkdownPage/MarkdownPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ const MarkdownPage = ({
<div css={{marginTop: 80}}>
<a
css={sharedStyles.articleLayout.editLink}
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${markdownRemark
.fields.path}`}>
href={`https://github.com/reactjs/reactjs.org/tree/master/content/${
markdownRemark.fields.path
}`}>
Edit this page
</a>
</div>
Expand Down
8 changes: 2 additions & 6 deletions src/pages/acknowledgements.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ const Acknowlegements = ({data, location}) => (
</li>
<li>
<a href="http://christopheraue.net/">Christopher Aue</a> for
letting us use the <a href="http://reactjs.com/">
reactjs.com
</a>{' '}
letting us use the <a href="http://reactjs.com/">reactjs.com</a>{' '}
domain name and the{' '}
<a href="https://twitter.com/reactjs">@reactjs</a> username on
Twitter.
Expand All @@ -72,9 +70,7 @@ const Acknowlegements = ({data, location}) => (
<a href="https://github.com/react">react</a> org on GitHub.
</li>
<li>
<a href="https://github.com/voronianski">
Dmitri Voronianski
</a>{' '}
<a href="https://github.com/voronianski">Dmitri Voronianski</a>{' '}
for letting us use the{' '}
<a href="https://labs.voronianski.com/oceanic-next-color-scheme/">
Oceanic Next
Expand Down
10 changes: 6 additions & 4 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ type Size = $Keys<typeof SIZES>;
const media = {
between(smallKey: Size, largeKey: Size, excludeLarge: boolean = false) {
if (excludeLarge) {
return `@media (min-width: ${SIZES[smallKey]
.min}px) and (max-width: ${SIZES[largeKey].min - 1}px)`;
return `@media (min-width: ${
SIZES[smallKey].min
}px) and (max-width: ${SIZES[largeKey].min - 1}px)`;
} else {
if (SIZES[largeKey].max === Infinity) {
return `@media (min-width: ${SIZES[smallKey].min}px)`;
} else {
return `@media (min-width: ${SIZES[smallKey]
.min}px) and (max-width: ${SIZES[largeKey].max}px)`;
return `@media (min-width: ${SIZES[smallKey].min}px) and (max-width: ${
SIZES[largeKey].max
}px)`;
}
}
},
Expand Down

0 comments on commit 4b6e332

Please sign in to comment.