Skip to content

Commit 9847ad7

Browse files
committed
fix format
Signed-off-by: Dmitriy Nevzorov <[email protected]>
1 parent ea49336 commit 9847ad7

File tree

8 files changed

+51
-52
lines changed

8 files changed

+51
-52
lines changed

example/locales/de/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"Welcome to page 2 ()": "Willkommen auf Seite 2 ()",
1212
"You just hit a route that doesn't exist... the sadness.": "Du hast gerade eine Route getroffen, die nicht existiert... die Traurigkeit.",
1313
"Welcome to page 2": "Willkommen auf Seite 2"
14-
}
14+
}

example/locales/es/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"Welcome to page 2 ()": "Bienvenido a la página 2 ()",
1313
"You just hit a route that doesn't exist... the sadness.": "Acabas de llegar a una ruta que no existe... la tristeza.",
1414
"Welcome to page 2": "Bienvenido a la página 2"
15-
}
15+
}

example/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"NOT FOUND": "INTROUVABLE",
1212
"You just hit a route that doesn't exist... the sadness.": "Tu viens d'emprunter une route qui n'existe pas... la tristesse.",
1313
"Welcome to page 2": "Bienvenue à la page 2"
14-
}
14+
}

example/locales/it/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"Welcome to your new Gatsby site.": "Benvenuto nel tuo nuovo sito di Gatsby.",
1212
"You just hit a route that doesn't exist... the sadness.": "Hai appena fatto una strada che non esiste... la tristezza.",
1313
"Welcome to page 2": "Benvenuto a pagina 2"
14-
}
14+
}

example/src/components/image.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from "react"
2-
import { useStaticQuery, graphql } from "gatsby"
3-
import Img from "gatsby-image"
1+
import React from 'react';
2+
import {useStaticQuery, graphql} from 'gatsby';
3+
import Img from 'gatsby-image';
44

55
/*
66
* This component is built using `gatsby-image` to automatically serve optimized
@@ -16,17 +16,17 @@ import Img from "gatsby-image"
1616
const Image = () => {
1717
const data = useStaticQuery(graphql`
1818
query {
19-
placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
19+
placeholderImage: file(relativePath: {eq: "gatsby-astronaut.png"}) {
2020
childImageSharp {
2121
fluid(maxWidth: 300) {
2222
...GatsbyImageSharpFluid
2323
}
2424
}
2525
}
2626
}
27-
`)
27+
`);
2828

29-
return <Img fluid={data.placeholderImage.childImageSharp.fluid} />
30-
}
29+
return <Img fluid={data.placeholderImage.childImageSharp.fluid} />;
30+
};
3131

32-
export default Image
32+
export default Image;

example/src/components/layout.js

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* See: https://www.gatsbyjs.org/docs/use-static-query/
66
*/
77

8-
import React from "react"
9-
import PropTypes from "prop-types"
10-
import { useStaticQuery, graphql } from "gatsby"
8+
import React from 'react';
9+
import PropTypes from 'prop-types';
10+
import {useStaticQuery, graphql} from 'gatsby';
1111

12-
import Header from "./header"
13-
import "./layout.css"
12+
import Header from './header';
13+
import './layout.css';
1414

15-
const Layout = ({ children }) => {
15+
const Layout = ({children}) => {
1616
const data = useStaticQuery(graphql`
1717
query SiteTitleQuery {
1818
site {
@@ -21,7 +21,7 @@ const Layout = ({ children }) => {
2121
}
2222
}
2323
}
24-
`)
24+
`);
2525

2626
return (
2727
<>
@@ -30,9 +30,8 @@ const Layout = ({ children }) => {
3030
style={{
3131
margin: `0 auto`,
3232
maxWidth: 960,
33-
padding: `0 1.0875rem 1.45rem`,
34-
}}
35-
>
33+
padding: `0 1.0875rem 1.45rem`
34+
}}>
3635
<main>{children}</main>
3736
<footer>
3837
© {new Date().getFullYear()}, Built with
@@ -41,11 +40,11 @@ const Layout = ({ children }) => {
4140
</footer>
4241
</div>
4342
</>
44-
)
45-
}
43+
);
44+
};
4645

4746
Layout.propTypes = {
48-
children: PropTypes.node.isRequired,
49-
}
47+
children: PropTypes.node.isRequired
48+
};
5049

51-
export default Layout
50+
export default Layout;

example/src/components/seo.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
* See: https://www.gatsbyjs.org/docs/use-static-query/
66
*/
77

8-
import React from "react"
9-
import PropTypes from "prop-types"
10-
import { Helmet } from "react-helmet"
11-
import { useStaticQuery, graphql } from "gatsby"
8+
import React from 'react';
9+
import PropTypes from 'prop-types';
10+
import {Helmet} from 'react-helmet';
11+
import {useStaticQuery, graphql} from 'gatsby';
1212

13-
function SEO({ description, lang, meta, title }) {
14-
const { site } = useStaticQuery(
13+
function SEO({description, lang, meta, title}) {
14+
const {site} = useStaticQuery(
1515
graphql`
1616
query {
1717
site {
@@ -23,66 +23,66 @@ function SEO({ description, lang, meta, title }) {
2323
}
2424
}
2525
`
26-
)
26+
);
2727

28-
const metaDescription = description || site.siteMetadata.description
28+
const metaDescription = description || site.siteMetadata.description;
2929

3030
return (
3131
<Helmet
3232
htmlAttributes={{
33-
lang,
33+
lang
3434
}}
3535
title={title}
3636
titleTemplate={`%s | ${site.siteMetadata.title}`}
3737
meta={[
3838
{
3939
name: `description`,
40-
content: metaDescription,
40+
content: metaDescription
4141
},
4242
{
4343
property: `og:title`,
44-
content: title,
44+
content: title
4545
},
4646
{
4747
property: `og:description`,
48-
content: metaDescription,
48+
content: metaDescription
4949
},
5050
{
5151
property: `og:type`,
52-
content: `website`,
52+
content: `website`
5353
},
5454
{
5555
name: `twitter:card`,
56-
content: `summary`,
56+
content: `summary`
5757
},
5858
{
5959
name: `twitter:creator`,
60-
content: site.siteMetadata.author,
60+
content: site.siteMetadata.author
6161
},
6262
{
6363
name: `twitter:title`,
64-
content: title,
64+
content: title
6565
},
6666
{
6767
name: `twitter:description`,
68-
content: metaDescription,
69-
},
68+
content: metaDescription
69+
}
7070
].concat(meta)}
7171
/>
72-
)
72+
);
7373
}
7474

7575
SEO.defaultProps = {
7676
lang: `en`,
7777
meta: [],
78-
description: ``,
79-
}
78+
description: ``
79+
};
8080

8181
SEO.propTypes = {
8282
description: PropTypes.string,
8383
lang: PropTypes.string,
8484
meta: PropTypes.arrayOf(PropTypes.object),
85-
title: PropTypes.string.isRequired,
86-
}
85+
title: PropTypes.string.isRequired
86+
};
8787

88-
export default SEO
88+
export default SEO;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build:defs": "tsc --declaration --outDir dist --emitDeclarationOnly",
3333
"dev": "babel -w src --out-dir dist --extensions .ts,.tsx --ignore **/*.d.ts",
3434
"prepare": "NODE_ENV=production yarn run build:ts && yarn run build:defs",
35-
"format": "prettier --write **/*.{js,jsx,json,ts,tsx,md}",
35+
"format": "prettier --write '**/*.{js,jsx,json,ts,tsx,md}'",
3636
"release": "release-it"
3737
},
3838
"devDependencies": {

0 commit comments

Comments
 (0)