Skip to content

Commit 109dc9c

Browse files
Prettified everything!
1 parent 6742075 commit 109dc9c

35 files changed

+335
-333
lines changed

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package.json
2+
package-lock.json
3+
**/node_modules/**
4+
**/.yoga/**
5+
**/dist/**

oss

Submodule oss updated 58 files

packages/gatsby-theme/images.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare module '*.png'
2-
declare module '*.jpg'
3-
declare module '*.jpeg'
4-
declare module '*.gif'
1+
declare module '*.png';
2+
declare module '*.jpg';
3+
declare module '*.jpeg';
4+
declare module '*.gif';

packages/gatsby-theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// no-op
2-
export * from './src/components/shared/base';
2+
export * from './src/components/shared/base';

packages/gatsby-theme/src/assets/icons/GraphQLConf.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from 'react'
1+
import * as React from 'react';
22

3-
export default () =>
3+
export default () => (
44
<svg
55
width="18"
66
height="22"
@@ -29,3 +29,4 @@ export default () =>
2929
</linearGradient>
3030
</defs>
3131
</svg>
32+
);

packages/gatsby-theme/src/assets/icons/LinkArrow.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as React from 'react'
1+
import * as React from 'react';
22

3-
export default () =>
3+
export default () => (
44
<svg
55
width="10"
66
height="10"
@@ -14,3 +14,4 @@ export default () =>
1414
fill="#000"
1515
/>
1616
</svg>
17+
);

packages/gatsby-theme/src/components/Chapter.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ type Tutorial = {
1717
type FrontMatter = {
1818
pageTitle: string | null;
1919
description: string | null;
20-
}
20+
};
2121

22-
const Chapter: React.FunctionComponent<ChapterProps> = ({
23-
num, tutorial
24-
}) => {
22+
const Chapter: React.FunctionComponent<ChapterProps> = ({ num, tutorial }) => {
2523
return (
2624
<Card width={[1]} p={4} my={4} borderRadius={8} boxShadow="small">
2725
<Flex alignItems="center">
@@ -31,7 +29,6 @@ const Chapter: React.FunctionComponent<ChapterProps> = ({
3129
<Heading as="h2">{tutorial.frontmatter.pageTitle}</Heading>
3230
</Link>
3331
<Text>{tutorial.frontmatter.description}</Text>
34-
3532
</div>
3633
</Flex>
3734
</Card>

packages/gatsby-theme/src/components/Loader.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ export const CenteredLoader: React.SFC<{ height?: string }> = ({ height }) => {
169169
return (
170170
<div
171171
style={{
172-
minHeight: `${height ? height : "100%"}`,
173-
display: "flex",
174-
alignItems: "center",
175-
justifyContent: "center"
172+
minHeight: `${height ? height : '100%'}`,
173+
display: 'flex',
174+
alignItems: 'center',
175+
justifyContent: 'center',
176176
}}
177177
>
178178
<Loader />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
declare module 'gatsby-mdx';
2-
declare module 'prismjs/components/prism-core';
2+
declare module 'prismjs/components/prism-core';

packages/gatsby-theme/src/components/listing.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Link } from "gatsby";
2-
import * as React from "react";
3-
import { styled } from "../styles";
4-
import { useAllTutorialQuery } from "../hooks/useAllTutorialQuery";
5-
import { getTutorialSlug } from "../utils/getTutorialSlug";
1+
import { Link } from 'gatsby';
2+
import * as React from 'react';
3+
import { styled } from '../styles';
4+
import { useAllTutorialQuery } from '../hooks/useAllTutorialQuery';
5+
import { getTutorialSlug } from '../utils/getTutorialSlug';
66

77
const Post = styled.article`
88
box-shadow: 0 0.3rem 1rem rgba(25, 17, 34, 0.05);

0 commit comments

Comments
 (0)