Skip to content

Commit 194a97c

Browse files
renovate[bot]GatsbyJS Bot
authored andcommitted
chore: update dependency prettier to v1.18.2 (#16933)
* chore: update dependency prettier to v1.18.2 * format with new prettier
1 parent 1c34c9b commit 194a97c

File tree

80 files changed

+151
-405
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+151
-405
lines changed

docs/docs/creating-a-transformer-plugin.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,7 @@ Cache keys should at least contain the contentDigest of the concerned node. For
276276

277277
```javascript:title=extend-node-type.js
278278
const htmlCacheKey = node =>
279-
`transformer-remark-markdown-html-${
280-
node.internal.contentDigest
281-
}-${pluginsCacheStr}-${pathPrefixCacheStr}`
279+
`transformer-remark-markdown-html-${node.internal.contentDigest}-${pluginsCacheStr}-${pathPrefixCacheStr}`
282280
```
283281

284282
Accessing and setting content in the cache is as simple as:

docs/docs/images/disqus-logo.svg

Lines changed: 1 addition & 1 deletion
Loading

examples/image-processing/src/pages/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ class Index extends React.Component {
140140
<li style={styles.column25}>
141141
<img
142142
src={cropBottomLeft.src}
143-
alt={`File ${
144-
cropBottomLeft.originalName
145-
} cropped to the bottom left`}
143+
alt={`File ${cropBottomLeft.originalName} cropped to the bottom left`}
146144
/>
147145
<p>
148146
<small>

examples/using-gatsby-image/src/components/image-gallery.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ const ImageGallery = edges => (
9595
<GridItem key={index}>
9696
<GridItemImage
9797
fluid={image.node.localFile.childImageSharp.fluid}
98-
title={`“${image.node.title}” by ${
99-
image.node.credit
100-
} (via unsplash.com)`}
98+
title={`“${image.node.title}” by ${image.node.credit} (via unsplash.com)`}
10199
/>
102100
<Badge>
103101
SVG

examples/using-gatsby-image/src/pages/background-color.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,14 @@ const BackgroundColor = ({ data, location }) => (
99
<Layout
1010
location={location}
1111
image={data.coverImage.localFile.childImageSharp.fluid}
12-
imageTitle={`“${data.coverImage.title}” by ${
13-
data.coverImage.credit
14-
} (via unsplash.com)`}
12+
imageTitle={`“${data.coverImage.title}” by ${data.coverImage.credit} (via unsplash.com)`}
1513
imageBackgroundColor="#F0C450"
1614
>
1715
<PageTitle>Background Color</PageTitle>
1816
<FloatingImage
1917
imageMobile={data.floatingImageMobile.localFile.childImageSharp.fixed}
2018
imageDesktop={data.floatingImage.localFile.childImageSharp.fixed}
21-
title={`“${data.floatingImage.title}” by ${
22-
data.floatingImage.credit
23-
} (via unsplash.com)`}
19+
title={`“${data.floatingImage.title}” by ${data.floatingImage.credit} (via unsplash.com)`}
2420
backgroundColor="#DB3225"
2521
/>
2622
<p>
@@ -39,9 +35,7 @@ const BackgroundColor = ({ data, location }) => (
3935
<Img
4036
fluid={data.fullWidthImage.localFile.childImageSharp.fluid}
4137
backgroundColor="#F9D6CE"
42-
title={`“${data.fullWidthImage.title}” by ${
43-
data.fullWidthImage.credit
44-
} (via unsplash.com)`}
38+
title={`“${data.fullWidthImage.title}” by ${data.fullWidthImage.credit} (via unsplash.com)`}
4539
/>
4640
</Layout>
4741
)

examples/using-gatsby-image/src/pages/blur-up.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ const BlurUp = ({ data, location }) => (
1010
<Layout
1111
location={location}
1212
image={data.coverImage.localFile.childImageSharp.fluid}
13-
imageTitle={`“${data.coverImage.title}” by ${
14-
data.coverImage.credit
15-
} (via unsplash.com)`}
13+
imageTitle={`“${data.coverImage.title}” by ${data.coverImage.credit} (via unsplash.com)`}
1614
>
1715
<PageTitle>Blur Up</PageTitle>
1816
<FloatingImage
1917
imageMobile={data.floatingImageMobile.localFile.childImageSharp.fixed}
2018
imageDesktop={data.floatingImage.localFile.childImageSharp.fixed}
21-
title={`“${data.floatingImage.title}” by ${
22-
data.floatingImage.credit
23-
} (via unsplash.com)`}
19+
title={`“${data.floatingImage.title}” by ${data.floatingImage.credit} (via unsplash.com)`}
2420
/>
2521

2622
<p>
@@ -46,9 +42,7 @@ const BlurUp = ({ data, location }) => (
4642
</p>
4743
<Img
4844
fluid={data.fullWidthImage.localFile.childImageSharp.fluid}
49-
title={`“${data.fullWidthImage.title}” by ${
50-
data.fullWidthImage.credit
51-
} (via unsplash.com)`}
45+
title={`“${data.fullWidthImage.title}” by ${data.fullWidthImage.credit} (via unsplash.com)`}
5246
/>
5347
</Layout>
5448
)

examples/using-gatsby-image/src/pages/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ const FeatureList = styled(`ul`)`
1414

1515
const FeatureListItem = styled.li({
1616
backgroundImage: `url(
17-
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='${
18-
colors.gatsby
19-
}' d='M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z' /%3E%3C/svg%3E")`,
17+
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='${colors.gatsby}' d='M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z' /%3E%3C/svg%3E")`,
2018
backgroundPosition: `0 .25em`,
2119
backgroundRepeat: `no-repeat`,
2220
backgroundSize: `1em`,

examples/using-gatsby-image/src/pages/prefer-webp.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@ const PreferWebp = ({ data, location }) => (
1010
<Layout
1111
location={location}
1212
image={data.coverImage.localFile.childImageSharp.fluid}
13-
imageTitle={`“${data.coverImage.title}” by ${
14-
data.coverImage.credit
15-
} (via unsplash.com)`}
13+
imageTitle={`“${data.coverImage.title}” by ${data.coverImage.credit} (via unsplash.com)`}
1614
>
1715
<PageTitle>Prefer WebP</PageTitle>
1816
<FloatingImage
1917
imageMobile={data.floatingImageMobile.localFile.childImageSharp.fixed}
2018
imageDesktop={data.floatingImage.localFile.childImageSharp.fixed}
21-
title={`“${data.floatingImage.title}” by ${
22-
data.floatingImage.credit
23-
} (via unsplash.com)`}
19+
title={`“${data.floatingImage.title}” by ${data.floatingImage.credit} (via unsplash.com)`}
2420
/>
2521
<p>
2622
WebP is a modern image format that provides both lossless and lossy
@@ -38,9 +34,7 @@ const PreferWebp = ({ data, location }) => (
3834
</p>
3935
<Img
4036
fluid={data.fullWidthImage.localFile.childImageSharp.fluid}
41-
title={`“${data.fullWidthImage.title}” by ${
42-
data.fullWidthImage.credit
43-
} (via unsplash.com)`}
37+
title={`“${data.fullWidthImage.title}” by ${data.fullWidthImage.credit} (via unsplash.com)`}
4438
/>
4539
<p />
4640
</Layout>

examples/using-gatsby-image/src/pages/traced-svg.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@ const TracedSVG = ({ data, location }) => (
1212
<Layout
1313
location={location}
1414
image={data.coverImage.localFile.childImageSharp.fluid}
15-
imageTitle={`“${data.coverImage.title}” by ${
16-
data.coverImage.credit
17-
} (via unsplash.com)`}
15+
imageTitle={`“${data.coverImage.title}” by ${data.coverImage.credit} (via unsplash.com)`}
1816
>
1917
<PageTitle>Traced SVG Placeholders</PageTitle>
2018
<FloatingImage
2119
imageMobile={data.floatingImageMobile.localFile.childImageSharp.fixed}
2220
imageDesktop={data.floatingImage.localFile.childImageSharp.fixed}
23-
title={`“${data.floatingImage.title}” by ${
24-
data.floatingImage.credit
25-
} (via unsplash.com)`}
21+
title={`“${data.floatingImage.title}” by ${data.floatingImage.credit} (via unsplash.com)`}
2622
/>
2723
<p>
2824
Generates a{` `}
@@ -44,9 +40,7 @@ const TracedSVG = ({ data, location }) => (
4440
<ImageGallery images={data.galleryImagesCropped.edges} />
4541
<Img
4642
fluid={data.fullWidthImage.localFile.childImageSharp.fluid}
47-
title={`“${data.fullWidthImage.title}” by ${
48-
data.fullWidthImage.credit
49-
} (via unsplash.com)`}
43+
title={`“${data.fullWidthImage.title}” by ${data.fullWidthImage.credit} (via unsplash.com)`}
5044
/>
5145
</Layout>
5246
)

examples/using-gatsby-image/src/utils/typography.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ const _options = {
4444
marginTop: rhythm(2),
4545
},
4646
a: {
47-
backgroundImage: `linear-gradient(to top, ${colors.ui.bright}, ${
48-
colors.ui.bright
49-
} 1px, rgba(0, 0, 0, 0) 2px)`,
47+
backgroundImage: `linear-gradient(to top, ${colors.ui.bright}, ${colors.ui.bright} 1px, rgba(0, 0, 0, 0) 2px)`,
5048
color: colors.gatsby,
5149
fontWeight: `bold`,
5250
textDecoration: `none`,

0 commit comments

Comments
 (0)